Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top