Eclipse插件EasyExplore 打开文件所在目录

来源:互联网 发布:淘宝国庆节活动 编辑:程序博客网 时间:2024/05/03 12:24


EasyExplore的作用是:在Eclipse中,能够容易的打开任意文件或文件夹所在目录。

    


官方下载地址:http://nchc.dl.sourceforge.net/project/easystruts/Easy%20Explorer%20for%20Eclipse/easy-explore-1.0.4/org.sf.easyexplore_1.0.4.jar


放到plugins目录下即可,通过其他方式安装插件亦可。

默认行为:打开选中文件所在目录,但是在打开的资源浏览器中不会选中当前的文件。

配置选中文件:

【Window】-【Preference】-【Easy Explore】,把Target修改为:

explorer.exe /select, {0}


如此,配置完毕。


PS:

对于官方下载的EasyExplore来说,配置了select选项后,当打开某文件所在目录时,打开的是此文件所在父文件夹的目录,且选中的亦是父文件夹,此情况下,可修改EasyExplore的源代码,重新编译此插件。

修改的源代码为:注释掉了EasyExploreAction类的

///*  53 */       if (this.selected instanceof IFile) {///*  54 */         directory = directory.getParentFile();///*     */       }///*  56 */       if (this.selected instanceof File) {///*  57 */         directory = directory.getParentFile();///*     */       }

重新编译后的EasyExplore插件下载地址:

http://download.csdn.net/detail/xuefeng0707/5292802


PS:

如果Eclipse之前安装过了官方的EasyExplore插件,需要删掉Eclipse目录下的easyexplore.jar,在Eclipse目录下搜索easyexplore.jar,然后删掉它。




原创粉丝点击