Reputation: 815
I am working on an eclipse plugin with the following structure:
my.plugin.one
my.plugin.one.ui
my.plugin.two
my.plugin.three
my.plugin.three.ui
Inside my.plugin.one.ui
I have a class MyFirstClass
and inside my.plugin.one
MySecondClass
.
I now would like to use an instance of MyFirstClass
in MySecondClass
but it is not visible. How can I implement that?
Upvotes: 0
Views: 286
Reputation: 2110
you need to export your package in the plugin you want to expose (my.plugin.one.ui
) :
MANIFEST.MF
file, runtime
tab, add...
button
and add the package you want to expose, the other plugin should be
able to see itIf you didn't do it, you also need to add a dependencies :
my.plugin.one
) and open your MANIFEST.MF
file,dependencies
tab,add...
button, select the the plugin my.plugin.one.ui
Upvotes: 2