How to open windows explorer on selected resource in Eclipse

EclipseEclipse Plugin

Eclipse Problem Overview


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?

Eclipse Solutions


Solution 1 - Eclipse

Solution 2 - Eclipse

In Eclipse Luna and later select a resource, then:

Alt + shift + W > System Explorer

or

Right click > Show In > System Explorer

The exact command that should be executed to open the System Explorer can be configured here:

Window > Preferences > General > Workspace > Command for launching system explorer

Solution 3 - Eclipse

Actually you can do that through the built in External tool manager. Here are the instructions : http://www.eclipsezone.com/eclipse/forums/t77655.html I'm trying to get it work with Nautilus. However it works under Windows as I tried it.

Solution 4 - Eclipse

StartExplorer doesn't work under my Ubuntu, but ExploreFS works. You can find it here:

http://junginger.biz/eclipse/

It supports Windows, Mac OS X, and Linux.

Solution 5 - Eclipse

Download OpenExplorer jar file. I am using OpenExplorer_1.5.0.v201108051513.jar downloaded from https://github.com/samsonw/OpenExplorer/archives/master.

Copy this into your eclipse/plugins folder and restart Eclipse. This comes in handy. I would recommend eclipse users having this.

Solution 6 - Eclipse

Eclipse Explorer is an eclipse plugin helping you to open the folder or select resource in explorer quickly. It supports key assist, can open common resource and all java element location, even .jar in library.

Advance feature:

  • Support all Java element explorer
  • Support key assitant (default Ctrl + ` )
  • Support Windows and Linux platform
  • Support auto selecting file(Windows only)

Solution 7 - Eclipse

An easy way to open the directory in Windows Explorer is to select the file in your Project Explorer and press Alt+Shift+W and press X .

Solution 8 - Eclipse

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:/"));
	}

Solution 9 - Eclipse

open explorer in eclipse
	- in eclipse -> external tools configurations
	- in program tree -> new
		name: OpenExplore
		localtion: C:\Windows\explorer.exe
		Arguments: /select,${selected_resource_loc}\

Solution 10 - Eclipse

The command configured by default on a Linux platform (dbus-send ...) fails on CentOS 6 and CentOS 7. Changing it to nautilus "${selected_resource_parent_loc}" makes it work. I got this info from this documentation page, which I got from this bug report.

I'm creating an RCP app, and I don't want my users to have to manually change this setting. Using plug-in spy I found the relevant preference store and key. So this non-API call will set the preference programmatically:

    IDEWorkbenchPlugin.getDefault().getPreferenceStore().setValue(IDEInternalPreferences.WORKBENCH_SYSTEM_EXPLORER,
"nautilus \"${selected_resource_parent_loc}\"");

With newer versions of nautilus you can specify ${selected_resource_loc} instead, in which case it opens the parent folder with the specified resource selected. I observed this with nautilus v 3.14, but version 2.28 throws an error is the resource is not a folder.

Solution 11 - Eclipse

I use EasyShell plugin for Eclipse, it has that functionality and more.

Have a look at that:

https://anb0s.github.io/EasyShell/

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGennady ShumakherView Question on Stackoverflow
Solution 1 - EclipselaurieView Answer on Stackoverflow
Solution 2 - EclipseTristanView Answer on Stackoverflow
Solution 3 - Eclipse猫ITView Answer on Stackoverflow
Solution 4 - EclipseEFalcoView Answer on Stackoverflow
Solution 5 - EclipseSrujan Kumar GullaView Answer on Stackoverflow
Solution 6 - EclipseTunaView Answer on Stackoverflow
Solution 7 - EclipseandrefilipeosView Answer on Stackoverflow
Solution 8 - EclipsemhallerView Answer on Stackoverflow
Solution 9 - EclipseLong RainbowView Answer on Stackoverflow
Solution 10 - EclipseMidnightJavaView Answer on Stackoverflow
Solution 11 - EclipseJonialeView Answer on Stackoverflow