Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to create config.ini file to accept any eclipse plugins in my rcp
How to create config.ini file to accept any eclipse plugins in my rcp [message #45089] Thu, 05 February 2009 04:34 Go to next message
zubin Missing name is currently offline zubin Missing nameFriend
Messages: 32
Registered: July 2009
Member
How can I create a config.ini file to accept any eclipse plug in my own
rcp? Current, I am using pde to build and on my product file, I list all
the required plugins in plug-ins and fragments list and checked "generate
a default config.ini file". So far it works great. But i wanted to take
one more step that my rcp application can accept any other eclipse plugin
(for example, If a eclipse plugin with a view and I place this plguin to
plugin folder in my rcp application, i should be able to layout the view
just like eclipse ide).

now, if i add a plugin to my rcp(a.jar) and add this plugin to my
config.ini (osgi.bundles=a) file it will works.

Thanks for reading. any help is appreciated.
Re: How to create config.ini file to accept any eclipse plugins in my rcp [message #45192 is a reply to message #45089] Thu, 05 February 2009 07:45 Go to previous messageGo to next message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
The eclipse IDE 'reads' the extensions (for example to the view
extension-point) and goes further with this information. Look at
org.eclipse.ui.workbench -> WorkbenchPlugin -> getViewRegistry()

zubin wrote:

> How can I create a config.ini file to accept any eclipse plug in my own
> rcp? Current, I am using pde to build and on my product file, I list all
> the required plugins in plug-ins and fragments list and checked "generate
> a default config.ini file". So far it works great. But i wanted to take
> one more step that my rcp application can accept any other eclipse plugin
> (for example, If a eclipse plugin with a view and I place this plguin to
> plugin folder in my rcp application, i should be able to layout the view
> just like eclipse ide).

> now, if i add a plugin to my rcp(a.jar) and add this plugin to my
> config.ini (osgi.bundles=a) file it will works.

> Thanks for reading. any help is appreciated.
Re: How to create config.ini file to accept any eclipse plugins in my rcp [message #45382 is a reply to message #45192] Thu, 05 February 2009 15:01 Go to previous messageGo to next message
zubin Missing name is currently offline zubin Missing nameFriend
Messages: 32
Registered: July 2009
Member
Thanks. I will try that. but one more question, do I need to modify the
config.ini file?

Currently, I need to set all the plugins I want to use on my rcp on
config.ini file.


osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start ,com.casenet.configstudio,com.ibm.icu,javax.servlet,org.ecli pse.core.commands,org.eclipse.core.contenttype,org.eclipse.c ore.databinding,org.eclipse.core.expressions,org.eclipse.cor e.jobs,org.eclipse.core.runtime.compatibility.auth,org.eclip se.core.runtime.compatibility.registry,org.eclipse.equinox.a pp,org.eclipse.equinox.preferences,org.eclipse.equinox.regis try,org.eclipse.help,org.eclipse.jface,org.eclipse.jface.dat abinding,org.eclipse.osgi.services,org.eclipse.swt,org.eclip se.swt.win32.win32.x86,org.eclipse.ui,org.eclipse.ui.workben ch,org.eclipse.equinox.launcher,org.eclipse.equinox.launcher .win32.win32.x86
osgi.bundles.defaultStartLevel=4

Thanks,
Re: How to create config.ini file to accept any eclipse plugins in my rcp [message #45444 is a reply to message #45382] Thu, 05 February 2009 16:29 Go to previous messageGo to next message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
try
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
in config.ini

Your application class should be started out of the equinox framework (it
contains a start(IApplicationContext context) method). This could be your
"first bit" ;)

zubin wrote:

> Thanks. I will try that. but one more question, do I need to modify the
> config.ini file?

> Currently, I need to set all the plugins I want to use on my rcp on
> config.ini file.


>
osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start ,com.casenet.configstudio,com.ibm.icu,javax.servlet,org.ecli pse.core.commands,org.eclipse.core.contenttype,org.eclipse.c ore.databinding,org.eclipse.core.expressions,org.eclipse.cor e.jobs,org.eclipse.core.runtime.compatibility.auth,org.eclip se.core.runtime.compatibility.registry,org.eclipse.equinox.a pp,org.eclipse.equinox.preferences,org.eclipse.equinox.regis try,org.eclipse.help,org.eclipse.jface,org.eclipse.jface.dat abinding,org.eclipse.osgi.services,org.eclipse.swt,org.eclip se.swt.win32.win32.x86,org.eclipse.ui,org.eclipse.ui.workben ch,org.eclipse.equinox.launcher,org.eclipse.equinox.launcher .win32.win32.x86
> osgi.bundles.defaultStartLevel=4

> Thanks,
Re: How to create config.ini file to accept any eclipse plugins in my rcp [message #45476 is a reply to message #45089] Thu, 05 February 2009 19:17 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
All bundles must be installed into the OSGi runtime. This is what the
list in the config.ini osgi.bundles is. If a bundle is not listed in
the osgi.bundles list, someone else must arrange for it to be installed
into osgi.

Because it is a little cumbersome to have all the bundles listed in the
config.ini file, Eclipse has used a configurator bundle to do this.

In Eclipse 3.3 and earlier, this was org.eclipse.update.configurator.
When it was installed and started, it then went and scanned the plugins
directory and installed everything it found there. This is how eclipse
had the behaviour of anything in the plugins folder magically appeared
at runtime.

Starting in 3.4, the bundles that are installed are managed by p2. We
now used org.eclipse.equinox.simpleconfigurator. Simpleconfigurator
only installs bundles that are listed in a
configuration/org.eclipse.equinox.simpleconfigurator/bundles .info file.
No automatic scanning of the plugins folder happening here.

But because everybody was spoiled by being able to copy bundles into the
plugins folder, there is the org.eclipse.equinox.p2.reconciler.dropins
bundle that if it is set up will scan directories and install the things
it finds. Unfortunately I don't have any details on how the dropins
bundle works, but it will require your product to be properly p2 enabled.

-Andrew

zubin wrote:
> How can I create a config.ini file to accept any eclipse plug in my own
> rcp? Current, I am using pde to build and on my product file, I list
> all the required plugins in plug-ins and fragments list and checked
> "generate a default config.ini file". So far it works great. But i
> wanted to take one more step that my rcp application can accept any
> other eclipse plugin (for example, If a eclipse plugin with a view and I
> place this plguin to plugin folder in my rcp application, i should be
> able to layout the view just like eclipse ide).
>
> now, if i add a plugin to my rcp(a.jar) and add this plugin to my
> config.ini (osgi.bundles=a) file it will works.
> Thanks for reading. any help is appreciated.
>
>
>
Re: How to create config.ini file to accept any eclipse plugins in my rcp [message #591453 is a reply to message #45089] Thu, 05 February 2009 07:45 Go to previous message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
The eclipse IDE 'reads' the extensions (for example to the view
extension-point) and goes further with this information. Look at
org.eclipse.ui.workbench -> WorkbenchPlugin -> getViewRegistry()

zubin wrote:

> How can I create a config.ini file to accept any eclipse plug in my own
> rcp? Current, I am using pde to build and on my product file, I list all
> the required plugins in plug-ins and fragments list and checked "generate
> a default config.ini file". So far it works great. But i wanted to take
> one more step that my rcp application can accept any other eclipse plugin
> (for example, If a eclipse plugin with a view and I place this plguin to
> plugin folder in my rcp application, i should be able to layout the view
> just like eclipse ide).

> now, if i add a plugin to my rcp(a.jar) and add this plugin to my
> config.ini (osgi.bundles=a) file it will works.

> Thanks for reading. any help is appreciated.
Re: How to create config.ini file to accept any eclipse plugins in my rcp [message #591502 is a reply to message #45192] Thu, 05 February 2009 15:01 Go to previous message
zubin Missing name is currently offline zubin Missing nameFriend
Messages: 32
Registered: July 2009
Member
Thanks. I will try that. but one more question, do I need to modify the
config.ini file?

Currently, I need to set all the plugins I want to use on my rcp on
config.ini file.


osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start ,com.casenet.configstudio,com.ibm.icu,javax.servlet,org.ecli pse.core.commands,org.eclipse.core.contenttype,org.eclipse.c ore.databinding,org.eclipse.core.expressions,org.eclipse.cor e.jobs,org.eclipse.core.runtime.compatibility.auth,org.eclip se.core.runtime.compatibility.registry,org.eclipse.equinox.a pp,org.eclipse.equinox.preferences,org.eclipse.equinox.regis try,org.eclipse.help,org.eclipse.jface,org.eclipse.jface.dat abinding,org.eclipse.osgi.services,org.eclipse.swt,org.eclip se.swt.win32.win32.x86,org.eclipse.ui,org.eclipse.ui.workben ch,org.eclipse.equinox.launcher,org.eclipse.equinox.launcher .win32.win32.x86
osgi.bundles.defaultStartLevel=4

Thanks,
Re: How to create config.ini file to accept any eclipse plugins in my rcp [message #591522 is a reply to message #45382] Thu, 05 February 2009 16:29 Go to previous message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
try
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
in config.ini

Your application class should be started out of the equinox framework (it
contains a start(IApplicationContext context) method). This could be your
"first bit" ;)

zubin wrote:

> Thanks. I will try that. but one more question, do I need to modify the
> config.ini file?

> Currently, I need to set all the plugins I want to use on my rcp on
> config.ini file.


>
osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start ,com.casenet.configstudio,com.ibm.icu,javax.servlet,org.ecli pse.core.commands,org.eclipse.core.contenttype,org.eclipse.c ore.databinding,org.eclipse.core.expressions,org.eclipse.cor e.jobs,org.eclipse.core.runtime.compatibility.auth,org.eclip se.core.runtime.compatibility.registry,org.eclipse.equinox.a pp,org.eclipse.equinox.preferences,org.eclipse.equinox.regis try,org.eclipse.help,org.eclipse.jface,org.eclipse.jface.dat abinding,org.eclipse.osgi.services,org.eclipse.swt,org.eclip se.swt.win32.win32.x86,org.eclipse.ui,org.eclipse.ui.workben ch,org.eclipse.equinox.launcher,org.eclipse.equinox.launcher .win32.win32.x86
> osgi.bundles.defaultStartLevel=4

> Thanks,
Re: How to create config.ini file to accept any eclipse plugins in my rcp [message #591527 is a reply to message #45089] Thu, 05 February 2009 19:17 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
All bundles must be installed into the OSGi runtime. This is what the
list in the config.ini osgi.bundles is. If a bundle is not listed in
the osgi.bundles list, someone else must arrange for it to be installed
into osgi.

Because it is a little cumbersome to have all the bundles listed in the
config.ini file, Eclipse has used a configurator bundle to do this.

In Eclipse 3.3 and earlier, this was org.eclipse.update.configurator.
When it was installed and started, it then went and scanned the plugins
directory and installed everything it found there. This is how eclipse
had the behaviour of anything in the plugins folder magically appeared
at runtime.

Starting in 3.4, the bundles that are installed are managed by p2. We
now used org.eclipse.equinox.simpleconfigurator. Simpleconfigurator
only installs bundles that are listed in a
configuration/org.eclipse.equinox.simpleconfigurator/bundles .info file.
No automatic scanning of the plugins folder happening here.

But because everybody was spoiled by being able to copy bundles into the
plugins folder, there is the org.eclipse.equinox.p2.reconciler.dropins
bundle that if it is set up will scan directories and install the things
it finds. Unfortunately I don't have any details on how the dropins
bundle works, but it will require your product to be properly p2 enabled.

-Andrew

zubin wrote:
> How can I create a config.ini file to accept any eclipse plug in my own
> rcp? Current, I am using pde to build and on my product file, I list
> all the required plugins in plug-ins and fragments list and checked
> "generate a default config.ini file". So far it works great. But i
> wanted to take one more step that my rcp application can accept any
> other eclipse plugin (for example, If a eclipse plugin with a view and I
> place this plguin to plugin folder in my rcp application, i should be
> able to layout the view just like eclipse ide).
>
> now, if i add a plugin to my rcp(a.jar) and add this plugin to my
> config.ini (osgi.bundles=a) file it will works.
> Thanks for reading. any help is appreciated.
>
>
>
Previous Topic:PDE Builder and project registered builders
Next Topic:PDE Builder and project registered builders
Goto Forum:
  


Current Time: Thu Mar 28 13:43:42 GMT 2024

Powered by FUDForum. Page generated in 0.02406 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top