Home » Eclipse Projects » Plugin Development Environment (PDE) » How to create config.ini file to accept any eclipse plugins in my rcp
| |
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 |
zubin Missing name 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 |
Matthias Kappeller 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 |
Andrew Niefer 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 #591502 is a reply to message #45192] |
Thu, 05 February 2009 15:01 |
zubin Missing name 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 |
Matthias Kappeller 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 |
Andrew Niefer 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.
>
>
>
|
|
|
Goto Forum:
Current Time: Sat Dec 21 11:34:43 GMT 2024
Powered by FUDForum. Page generated in 0.04818 seconds
|