引用非插件项目到eclipse插件项目 [英] reference non plugin project to eclipse plugin project
问题描述
这是一个我不能更改的jar,所以我必须使用它。
谢谢
Ido
最安全的方法是从现有的jar文件创建一个新的插件:
选择新项目 - >插件开发 - >现有JAR存档中的插件
然后选择jar文件在Galileo上添加外部 ),为项目命名并填写一些插件属性(可选),并选择是否要解压缩jar或保持原样。我保留复选框...
就是这样。 Eclipse将自动生成一个导出所有包的插件项目,以便它可以在您的插件或rcp项目中使用。
Can I add a reference from an eclipse plugin project to a non plugin jar? This is a jar that I can not change, so i have to use it as is.
Thank you Ido
The safest approach would be to create a new plugin from your existing jar file:
Select New project -> Plug-In Development -> Plug-in from existing JAR Archives
Then choose the jar file(s) ('Add Externals' on Galileo), name the project and fill in some plug-in properties (optional) and choose whether you want to unzip the jar or keep it as it is. I keep the checkbox checked...
And that's it. Eclipse will autogenerate a plugin project that exports all packages so that it can be used in your plug-in or rcp project.
这篇关于引用非插件项目到eclipse插件项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!