How best to maintain an Eclipse RCP plugin target?

爱⌒轻易说出口 提交于 2019-12-06 08:02:57

I would recommend to keep all components separately and not copy them into a single folder. You can use Target Definition editor (see File / New / Other... / Target Definition). So, after downloading all the pieces, you can unpack them locally and assemble your Target Platform using Target Definition editor.

You can also do the same using Window / Preferences / Plugin Development / Target Platform preference page. There you can select previously created target definition or specify base Eclipse install and then use "Add..." button to add additional components from local folders or remote sites.

Also, as far as I know the PDE team is currently working on expanding Target platform support in Eclipse 3.5. I think they are planning to allow to select Target Definition per-launch configuration and per-project.

Im not sure if i understand you right, so please let me know if not.

When i use third party libraries, i create a plugin for every single one.

Example:

xstream library:

  • Import the jars (also the source code)
  • Add the jars to the MANIFEST Bundle-ClassPath
  • Add all xtream packages to the MANIFEST Export-Package

When a plugin needs the code of the xstream library it has to depend on the xtream plugin. Because the packages are public, every plugin can use the source code of it.

When a new version of xtream is comming, you only have to update the jars and not the dependend plugins. Sometimes you have to update the export packages of the third party plugin.

All depended plugins you dont have to change.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!