I have an eclipse plugin in which I want to use the latest CDT
plugin extension points ( I have a .target
file where I configure the version).
Assume that my plugin is installed in an eclipse based product
(with a different .target
file) which comes with an older CDT
version (which doesn't have the extension points required by my plugin).
What is happening when the plugin is installed in that product?
Does the plugin come with it's own CDT
dependencies and there won't be any problems?
Will eclipse load the CDT plugin based on the requirements of the plugin?
The MANIFEST.MF of a plug-in specifies its dependencies. Eclipse will resolve these when it loads the plug-in from the currently installed plug-ins.
The Require-Bundle
in the MANIFEST.MF specifies which other plug-ins are required and can specify which versions of the plug-in are acceptable.
The MANIFEST.MF can also use Import-Package
to name packages that it needs without saying which plug-in contains them,