Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDynamically enable/disable Plugins/Bundles
https://www.eclipse.org/forums/index.php/mv/msg/32984/106960/#msg_106960
Background:
-----------
There is an RCP app that consists of many eclipse plugins. Eclipse features will be defined to club together related plugins for distribution.
The RCP app works in the context of "projects". A project is worked on using known versions of installed plugins. e.g. ProjectA may be created/worked on using Plugin1:Version1.0, and ProjectB may be created/worked on using Plugin1:Version2.0.
When a user works on ProjectA, Plugin1:Version1.0 must be activated and used. When a user switches to ProjectB, Plugin1:Version1.0 must be deactivated(disabled?) and Plugin1:Version2.0 must be activated and used.
How can this be achieved?
Possible Solution:
------------------
It appears that the Eclipse update site mechanism works in a similar way, enabling newly downloaded plugins and disabling older ones. In addition, when one manually navigates to Help-->Software Updates-->Manage Configuration, one can disable a feature downloaded from an update site and disable it. This disables all referenced plugins as well.
Can anyone point to code that implements above logic, so that it may be reused?
Using OSGi APIs directly may be an alternative, but i keep landing into Classloader problems with it.
Any other solutions to the above problem are welcome.
TIA,
Kind Regards,
-abhi]]>Missing name Mising name2008-03-28T09:17:24-00:00