views:

375

answers:

2

I was looking for a small plugin for Eclipse that would allow to open windows explorer on currently selected resource from Package Explorer tree.

I know that Aptana Studio provides this functionality via context menu on the resource, but it has tons of other stuff that I am not interested to.

Are there other solutions?

A: 

Create a new Plug-In project using Eclipse PDE. Hook your bundle's Activator class into the Common Navigator API to receive selections for IResource. For each IResource selected, use the FileLocator to get a file URI, with which you can construct a java.io.File object. This can then be opened in the operating system's native file explorer using Java 6 Desktop integration:

 if (Desktop.isDesktopSupported()) {
  Desktop desktop = Desktop.getDesktop();
  desktop.open(new File("C:/"));
 }
mhaller
I would prefer to have this command available in the context menu. What are the relevant interfaces for that?
Gennady Shumakher
+2  A: 

I use this plugin, it seems ok

http://sourceforge.net/projects/startexplorer/

laurie
Thanks! Exactly what I was looking for.
Gennady Shumakher