Open directory containing a source file via Eclipse
Asked Answered
C

6

9

In Visual Studio, or MyEclipse, you have a button which is able to locate a source file on disk, and open the containing directory in Windows explorer.

This is useful, for example, to browse images, or to use an other tool when a conflict occurs in CVS or SVN.

What would be the way to do it in Eclipse with a free plugin, or without any plugin ?

Centonze answered 16/10, 2011 at 12:44 Comment(2)
Similar to #1673155Burkholder
@MuhammadAnnaqeeb This thread exactly works.Freda
C
8

I found it :

"In eclipse, it is common requirement to open the folder containing source file but there is no direct method to do that like in Visual studio of Microsoft."

http://shivasoft.in/blog/others/tips/locate-source-file-on-local-disc-in-eclipse-external-tool/

Centonze answered 19/10, 2011 at 8:44 Comment(0)
E
5

An actual plugin can be found at http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/

And version 1.5 can be found here http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/

Eureka answered 14/4, 2013 at 14:48 Comment(4)
Thank you. this is the best solution, works on eclipse 4.3.2 .Burkholder
new link for version 1.5 is cloud.github.com/downloads/samsonw/OpenExplorer/…Burkholder
Didn't seem to work in Eclipse CDT Kepler for me. Tried putting the jar in both the plugins and dropins directories, and trying to add via Help->Install New Software, but nothing worked.Cadent
Unfortunately, it doesn't work with Eclipse 4.5.1 Mars.1Freda
E
4

One that I've since upgraded to & find more useful

http://basti1302.github.io/startexplorer/

Eureka answered 12/11, 2013 at 21:54 Comment(1)
For Windows users definitely the best.Ophthalmitis
L
4

I always do this: right click on file/folder, show in..., system explorer. Done.

I guess we don't need a plugin to do that, or I am misunderstanding the question?? I am using Luna 4.4.2 on Windows 7.

Louise answered 16/6, 2015 at 7:52 Comment(1)
Well, I just found that was new, and I am having issues in Luna and they are suggesting me to use Mars, the newest version...how fast...Louise
G
1

On Mac you can follow this steps to add it without a plug-in:

  1. Click the disclosure icon to the right of the External Tools icon:
    External Tools

  2. Select External Tools Configuration:
    External Tools Pop Up menu

  3. The External Tools Configuration window will appear. Select Programs and then click New Launch Configuration:
    External Tools Configuration Window

  4. This will create a new launch configuration. Enter a name of the configuration in the name field:
    Launch Configuration Field

  5. In the Location field enter the path to the Open Finder, "/usr/bin/open" without quotes:
    Location field value

  6. In the Arguments field enter the following argument, "${container_loc}" with quotes:
    Arguments field value

  7. Click Apply. It should look like the following:
    External Tools Configuration Window filled in

  8. Switch to the build tab and deselect Build before launch:
    enter image description here

  9. Switch to the Common tab and select the External Tools checkbox in Favorites. Click Apply again and close out of the window.
    External Configurations Window Commons Tab

You are done. Now to use:

  1. Select a file or folder in Eclipse Package Explorer.

  2. Click the disclosure icon to the right of the External Tools icon:
    External Tools

  3. Select the Open Containing Folder from the drop down menu:
    Open Containing Folder

You're file or folder should open in Finder.

PRO TIP: After you use the external tool once you can click the External Tools icon again and it will run the last used external tool. In other words, you won't need to select it from the pop up menu each time.

Gilthead answered 20/11, 2014 at 3:8 Comment(1)
+1 This answer works well on Windows, too. Though unfortunately, there's no shortcut key for binding an external tool. But it is already fairly good.Freda
C
0

You can also look up the source directory by right clicking on the project, going to properties, and looking at "Location: ... "

Clumsy answered 30/10, 2014 at 19:42 Comment(2)
Why the downvote? It's not fancy, not best(in newer version), but works under any condition, compatible in all version and platforms.Louise
It does work. But OP apparently wants something more convenient. +1 for encouragement.Freda

© 2022 - 2024 — McMap. All rights reserved.