Hakkar
Hakkar

Reputation: 2431

Organize imports for Eclipse plugin files

I've been playing around with Eclipse plugin development in Java and have noticed that classes referenced by my plugin.xml refuse to automatically include imports for classes within my source folder.

Any file that is not referenced by plugin.xml works fine with organize imports or quick fix. But when the file is referenced by plugin.xml, I have to type in the package import manually. I'm guessing this is a feature to help you manage dependencies, but I don't want it to work like that.

Is there any setting that can change this behaviour?

Upvotes: 0

Views: 405

Answers (1)

Srinivas M.V.
Srinivas M.V.

Reputation: 6608

Some of the referenced plugin packages will not be exported . Instead of manually importing the packages .

Try this ,

Under Runtime tab of the referenced plugin plugin.xml export the packages so that it is visible in the referencing plugin.

Hope this helps !!!

Upvotes: 1

Related Questions