如何在 Eclipse 中的选定资源上打开 Windows 资源管理器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1672655/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to open windows explorer on selected resource in Eclipse
提问by Gennady Shumakher
I was looking for a small plugin for Eclipse that would allow to open windows explorer on currently selected resource from Package Explorer tree.
我正在为 Eclipse 寻找一个小插件,它允许在包资源管理器树中当前选择的资源上打开 Windows 资源管理器。
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.
我知道 Aptana Studio 通过资源上的上下文菜单提供此功能,但它还有很多我不感兴趣的其他东西。
Are there other solutions?
还有其他解决方案吗?
采纳答案by laurie
I use this plugin, it seems ok
我用这个插件,感觉还行
New Eclipse Update Link https://fabioz.github.com/startexplorer/update/
新的 Eclipse 更新链接 https://fabioz.github.com/startexplorer/update/
Old link for reference
旧链接供参考
回答by Tristan
In Eclipse Lunaand later select a resource, then:
在Eclipse Luna和更高版本中选择一个资源,然后:
Alt + shift + W> System Explorer
Alt + shift + W> 系统资源管理器
or
或者
Right click > Show In > System Explorer
右键单击 > 显示在 > 系统资源管理器
The exact command that should be executed to open the System Explorercan be configured here:
可以在此处配置打开系统资源管理器应执行的确切命令:
Window > Preferences > General > Workspace > Command for launching system explorer
窗口 > 首选项 > 常规 > 工作区 > 启动系统资源管理器的命令
回答by èIT
Actually you can do that through the built in External tool manager. Here are the instructions : http://www.eclipsezone.com/eclipse/forums/t77655.htmlI'm trying to get it work with Nautilus. However it works under Windows as I tried it.
实际上,您可以通过内置的外部工具管理器来做到这一点。以下是说明:http://www.eclipsezone.com/eclipse/forums/t77655.html我正试图让它与 Nautilus 一起工作。然而,它在我尝试过的 Windows 下工作。
回答by EFalco
StartExplorer doesn't work under my Ubuntu, but ExploreFS works. You can find it here:
StartExplorer 在我的 Ubuntu 下不工作,但 ExploreFS 工作。你可以在这里找到它:
It supports Windows, Mac OS X, and Linux.
它支持 Windows、Mac OS X 和 Linux。
回答by Srujan Kumar Gulla
Download OpenExplorer jar file. I am using OpenExplorer_1.5.0.v201108051513.jar downloaded from https://github.com/samsonw/OpenExplorer/archives/master.
下载 OpenExplorer jar 文件。我正在使用从https://github.com/samsonw/OpenExplorer/archives/master下载的 OpenExplorer_1.5.0.v201108051513.jar 。
Copy this into your eclipse/plugins folder and restart Eclipse. This comes in handy. I would recommend eclipse users having this.
将其复制到您的 eclipse/plugins 文件夹中并重新启动 Eclipse。这个就派上用场了。我会推荐 eclipse 用户有这个。
回答by Tuan
Eclipse Exploreris 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.
Eclipse Explorer是一个 Eclipse 插件,可以帮助您在资源管理器中快速打开文件夹或选择资源。它支持按键辅助,可以打开公共资源和所有java元素位置,甚至库中的.jar。
Advance feature:
进阶功能:
- Support all Java element explorer
- Support key assitant (default Ctrl+ `)
- Support Windows and Linux platform
- Support auto selecting file(Windows only)
- 支持所有Java元素浏览器
- 支持按键助手(默认Ctrl+ `)
- 支持Windows和Linux平台
- 支持自动选择文件(仅限Windows)
回答by Long Rainbow
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}\
回答by mhaller
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 FileLocatorto 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:
使用 Eclipse PDE 创建一个新的插件项目。将您的 bundle 的 Activator 类连接到 Common Navigator API 以接收IResource
. 对于每个IResource
选定的对象,使用FileLocator获取文件 URI,您可以使用该URI 构造一个java.io.File
对象。然后可以使用Java 6 Desktop 集成在操作系统的本机文件资源管理器中打开它:
if (Desktop.isDesktopSupported()) {
Desktop desktop = Desktop.getDesktop();
desktop.open(new File("C:/"));
}
回答by RXSD
An easy way to open the directory in Windows Exploreris to select the file in your Project Explorer and press Alt+Shift+Wand press X.
在Windows 资源管理器中打开目录的一种简单方法是在项目资源管理器中选择文件,然后按Alt+Shift+W并按X。
回答by Joniale
I use EasyShell pluginfor Eclipse, it has that functionality and more.
我为 Eclipse使用EasyShell 插件,它具有该功能等等。
Have a look at that:
看看那个: