Eclipse RCP - all possibilities to define dependen

2019-03-28 10:23发布

问题:

Is there somewhere a list of all possibilities, to define dependencies in an Eclipse RCP project? maybe filtered by resources?

Possible dependencies:

  • from other Eclipse RCP Plugins
  • by package, without explicitely defining the plugin
  • jar libs
  • ...

回答1:

as you said, you can use the following directives in the MANIFEST.MF to define dependencies

  • Require-Bundle (for depending on specified bundles)
  • Import-Package (for depending on packages available by export from other bundles)
  • Bundle-Classpath (for embedded paths(!) and JARs)

also, when you create a Fragment, it must define its Fragment-Host, of course, and that is also a dependency in a sense

in an RCP project you can setup Features, and you can specify dependencies to bundles for your RCP app in these features