博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
解决eclipse插件openextern无法打开依赖jar包的问题
阅读量:7271 次
发布时间:2019-06-29

本文共 748 字,大约阅读时间需要 2 分钟。

适用于eclipse4.x.x,本人环境为eclipse4.2.0

 1、openextern

官网:http://code.google.com/p/openextern/

源代码:svn checkout http://openextern.googlecode.com/svn/trunk/ openextern-read-only

问题:无法打开maven、jar等外部jar包依赖的问题

2、问题解决

导入eclipse中,进行调试;发现能够获取路径;在BaseOpenAction.java中,发现方法public String getSelectedFolderPath(ISelection selection)的ISelection已经获取到路径,但不属于判断的资源类型,返回为空。 所以只需要做如下处理即可。

 
  1. /** 
  2.              * dependency jar folder 
  3.              */ 
  4.             String fullname = sel.toString(); 
  5.             int firstIndexOfBlank = fullname.indexOf(" "); 
  6.             String fullJarPath = fullname.substring(0, firstIndexOfBlank); 
  7.             if(!"".equals(fullJarPath)){ 
  8.                 return fullJarPath; 
  9.             } 

3、打包发布

在eclipse中开发plugin时,可以借助eclipse ide生成build.xml,再执行ant build.update.jar即可。

本文转自 tianya23 51CTO博客,原文链接:http://blog.51cto.com/tianya23/1055274,如需转载请自行联系原作者

你可能感兴趣的文章
基于.net开发chrome核心浏览器【二】
查看>>
LeetCode - Isomorphic Strings
查看>>
android UI 仿 win 8 模块化 标题,并实现 可长按拖动交换图片位置、可点击,且伴随动画特效...
查看>>
Maven发布工程到公共库
查看>>
@RenderBody、@RenderSection、@RenderPage、Html.RenderPartial、Html.RenderAction的作用和区别...
查看>>
MSMQ实现自定义序列化存储
查看>>
如何修改vs2010中html的默认模板
查看>>
给参加学术会议的人一些宝贵建议
查看>>
jdbc链接mysql转
查看>>
Could not execute method of the activity Android
查看>>
使用solrj操作solr索引库
查看>>
【原创】Kafka producer原理 (Scala版同步producer)
查看>>
在运行时切换 WinForm 程序的界面语言 System.ComponentModel.ComponentResourceManager .ApplyResources...
查看>>
SSH框架总结(帧分析+环境结构+示例源代码下载)
查看>>
FME2014汉化问题
查看>>
【Servlet和JSP-学习-1】基础知识
查看>>
使用CSS3制图
查看>>
Pizza pieces
查看>>
OC 数据类型之间的转换方法
查看>>
Javascript J更深层次的理解avascript 基础知识
查看>>