开发者

Merging two eclipse plugins

I'm currently learning how to make some plugins for eclipse.

I first developed a plugin for the KNIME project . This project contains a plugin.xml and a MANIFEST.MF file:

(...)
Bundle-Activator: project1.MyNodePlugin
(...)

The second project is a "preferences panel" that was generated with an eclipse wizard. It also contains a MANIFEST.MF & a plugin.xml:

(...)
Bundle-Activator: project2.Activator
(...)

I want my project project1 (KNIME) to use some data from my preference panel.

How should I merge the two projects (MANIFEST.MF ?) ?

开发者_高级运维

How can I get the preferences of the project2 from the project1 ?

Thanks


Try this approach:

  1. Implement all the classes which you need to manage your preferences (i.e. POJOs to save the values) in project1.

  2. Add project1 as dependency to project2.

  3. Export the classes in project1.

The last two steps make the classes visible in project2 where you can use them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜