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 ?

Tristan
  • 8,733
  • 7
  • 48
  • 96

6 Answers6

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/

Tristan
  • 8,733
  • 7
  • 48
  • 96
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/

Shane Gannon
  • 6,770
  • 7
  • 41
  • 64
4

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

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

Shane Gannon
  • 6,770
  • 7
  • 41
  • 64
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.

WesternGun
  • 11,303
  • 6
  • 88
  • 157
  • 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... – WesternGun Jun 16 '15 at 21:18
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.

1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
  • +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. – smwikipedia Jan 09 '16 at 08:54
0

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

  • 1
    Why the downvote? It's not fancy, not best(in newer version), but works under any condition, compatible in all version and platforms. – WesternGun Sep 23 '15 at 20:47
  • It does work. But OP apparently wants something more convenient. +1 for encouragement. – smwikipedia Jan 09 '16 at 08:56