|Re: Adding Plugin to RCP application [message #879415 is a reply to message #877930]
||Thu, 31 May 2012 07:22
|| Libor Jelinek
Registered: January 2012
Location: Prague, Czech Rep.
it never works like this. Placing some JAR'd plug-ins to plugin/
subfolder of your RCP app is not enought.
OSGi framework running under the cover will not detect them or even
start them automatically. There are a couple of approaches:
1) By default, only bundles listed in osgi.bundles property in
configuration/config.ini file are started. Have a look on your current
list and add new plug-ins as needed.
2) Employ org.eclipse.equinox.update.configurator
Update configurator gives you "auto-discovery" feature. It will install
and start everything what is found in plugins/ subfolder.
Firstly copy org.eclipse.update.configurator_3.*.jar from your Eclipse
IDE installation to your app's plugins/.
In such case, to config.ini's osgi.bundles will look like:
3) Employ org.eclipse.equinox.simpleconfigurator
To cite from
"Part of p2. As the name suggests, it is quite simple: it install
everything it finds listed in its configuration file (specified by the
org.eclipse.equinox.simpleconfigurator.configUrl property, usually
Editing the bundles.info file to add plug-ins to your product is not
really any easier than editing the osgi.bundles list. The difference
here is that p2 manages bundles.info for you. In fact, if your product
is p2 enabled for updating and installing plug-ins, then any changes
made manually are likely to be lost when p2 updates or installs new
On 05/28/2012 07:10 AM, Sarang Mising name wrote:
> I'm designing an RCP application which can be extended by adding plugins
> to it. To simplify my qestion I'll take example of RCP email client
> template and hello world template plugin. If I just copy "hello world"
> plugin (jar) in plugins folder of my RCP application (e.g. RCP email
> client) then I expected that RCP application will be able to bring up
> the hello world plugin and hence add a new menu item (contributed by
> this plugin) . However, this doesn't work. RCP application doesn't even
> load the hello world plugin. Am I missing something? Request suggestion..
Powered by FUDForum
. Page generated in 0.01611 seconds