importeclipse-pluginequinoxgroovyshelleclipse-classpath

How can I import plugin projects from my workspace without specifying them?


I am developing an scripting environment for EMF and need to import the model plugin so that my script is able to use classes generated by the model, but in order to do that I need to explicitly add the plugin to my imports.

Can I do that automatically? Like adding all workspace plugins to my imports at runtime?


Solution

  • You can use DynamicImport-Package: * attribute in the bundle manifest to make all exported packages visible.

    Note that packages imported via DynamicImport-Package are resolved every time a class from the package is needed. Consider selective dynamic import DynamicImport-Package: *;dynamic=mymodel or buddy policy as better alternatives.