John
John

Reputation: 815

Class-visibility in eclipse plugin-project

I am working on an eclipse plugin with the following structure:

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

Answers (1)

flafoux
flafoux

Reputation: 2110

you need to export your package in the plugin you want to expose (my.plugin.one.ui) :

  • Open your MANIFEST.MF file,
  • runtime tab,
  • then add... button and add the package you want to expose, the other plugin should be able to see it

If you didn't do it, you also need to add a dependencies :

  • Go to your other plugin (my.plugin.one) and open your MANIFEST.MF file,
  • dependencies tab,
  • and add... button, select the the plugin my.plugin.one.ui

Upvotes: 2

Related Questions