95

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?

1
  • Alt Shift W (Or right click from Project Explorer to get to 'Show in' context menu). Then System Explorer. (It's like this in Spring Tool Suite 4 based on Eclipse Java Development Tools Version: 3.18.100.v20190916-1045)
    – JGFMK
    Nov 10, 2019 at 8:11

11 Answers 11

85

I use this plugin, it seems ok

New Eclipse Update Link https://fabioz.github.com/startexplorer/update/

Old link for reference

8
  • 10
    Nice plugin! I think Eclipse should definitely include this handy tool in their standard release.
    – Zorayr
    May 24, 2012 at 22:24
  • 5
    Ok, the license that came up on the install for that made me seriously laugh out loud and the desire to share with co-workers. Apr 11, 2013 at 14:26
  • 1
    Great plugin - does exactly what I wanted (...apart from the swearing in the licence, which made me wonder if it was legit!) Nov 29, 2013 at 14:09
  • This plugin installed for me on Eclipse Indigo but the context menu actions never ever appeared, even after restarting Eclipse twice. Anyone else experience this problem? Jan 8, 2015 at 12:14
  • 6
    @CiaranGallagher, in the Package Explorer, right click some file/directory/folder. In the context menu, select Show In -> System Explorer. This should open up Windows Explorer.
    – Abdull
    Jan 30, 2015 at 14:26
61

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

3
  • The command that's there by default (dbus-send ...) fails on CentOS 6 and CentOS 7. I can change it to 'nautilus "${selected_resource_parent_loc}"' and that works. But I'm creating an RCP app, and I don't want my users to have to manually do this. Does anyone know either why dbus-send fails, or what the preference key is for this so I can change it programmatically? Feb 24, 2017 at 21:24
  • FYI more info here: help.eclipse.org/luna/…, which I got from the bug report here: bugs.eclipse.org/bugs/show_bug.cgi?id=442562 Feb 24, 2017 at 21:26
  • Found the pref key with plug-in spy. Details in a separate answer from me Feb 24, 2017 at 21:43
23

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.

3
  • 1
    Great, works in Windows! No need to install an external plugin.
    – nephewtom
    Apr 9, 2013 at 13:50
  • This works for me, but is there anyway to then access the newly created program via the context menu for the selected resource? That would be ideal.
    – Josh
    Oct 28, 2013 at 18:34
  • Works great! did the same config for my Python editor
    – Mike R
    Apr 10, 2014 at 21:39
19

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.

1
  • I'm using eclipse juno and startexplorer 1.5.1 works for me under Ubuntu 12 now
    – Tuna
    Oct 19, 2013 at 15:39
4

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.

0
2

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)
0
2

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 .

1

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:/"));
    }
1
  • I would prefer to have this command available in the context menu. What are the relevant interfaces for that? Nov 4, 2009 at 10:26
1
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}\
0

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.

0

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

Have a look at that:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.