Over the past year, I scoured Google for an Eclipse plugin that would launch the terminal in a specific folder for me. I was picturing something that added a right-click context menu option for opening any folder in a project in the console so I could do command line stuff on it.
I would do a bunch of searches and find nothing, give up for a few months until I needed the functionality again, do a bunch of searches, give up, and so on…
Finally, one day I found a page hinting at the External Tools toolbar menu option:
(If you don’t see this in your toolbar, right click on it–>customize perspective–>check the box next to External Tools)
Once you find that button, click the down arrow on it and then select the “Open External Tools Dialog…” menu item.
Click “Program” and then click the “New” button.
The configuration I used in Ubuntu with Eclipse 3.3 is pictured below. I’m sure it will work with any recent Eclipse and any OS (Windows, Mac, Unix flavor), just change the name of the process that you are launching.
Location: /usr/bin/gnome-terminal
Working Directory: ${resource_loc}
Arguments: –geometry=118×33+25+10
October 22nd, 2008 at 6:43 pm
After you do this, how do you open the terminal?
October 22nd, 2008 at 8:39 pm
Click “Organize Favorites” under that “External Tools” button. Click Add, then choose “Terminal”.
Now, after selecting a folder, click that “External Tools” button, then choose “Terminal” and you will be in that directory in a terminal.
February 15th, 2010 at 2:07 pm
very cool — is there any way to launch it from a context menu?
February 16th, 2010 at 9:29 am
I don’t know of a way to add it without creating a plugin for it. I looked through the Customize Perspectize dialog and didn’t see anything for External Tools in the context menu
February 17th, 2010 at 11:57 am
Thanks!
I also added nautilus, but in that case the path is set as arguments.
Location: /usr/bin/nautilus
Arguments: ${resource_loc}
February 20th, 2010 at 12:27 pm
Finally I found it, http://code.google.com/p/eclipse-openinterminal/
September 28th, 2010 at 12:42 am
Nice. Do you think this could be extended to launch a project within a terminal?
Is there a way to extract/construct the required cmd-line using this facility?
September 28th, 2010 at 9:21 am
You can run a command in the opened terminal by adding a –command=_____ argument. I’m not sure what you mean by the second question…
April 30th, 2011 at 3:24 am
I use this pluginbox.sourceforge.net
August 27th, 2011 at 6:09 am
Thanks for your useful tip.
But I fail to configure it with “The specified location is not a directory” error which occurs when I fill Working Directory field with ${resource_loc}.
August 27th, 2011 at 6:13 am
I have fixed my problem myself using ${container_loc} instead of ${resource_loc}.
It work well now!
(And I’m using SpringSource Tool Suite 2.7.1 based on Eclipse 3.7.)
February 23rd, 2013 at 12:14 pm
I have a peculiar problem!
If I do not have: -e ./program as argument to the gnome-terminal then the colors works well in e.g. ncurses.
If I however do use -e ./program , the I do not get colors in ncurses.
Does anyone have a clue how to fix this?