Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Understanding OSGi bundles start and activation (+ Eclipse runlevels)
Understanding OSGi bundles start and activation (+ Eclipse runlevels) [message #72342] Tue, 22 August 2006 07:55 Go to next message
Eclipse UserFriend
Originally posted by: marforio.gmail.com

I've got some problems in understanding which are the 'fases' of an OSGi bundle
(a plugin). The keywords that are not clear are:

a. INSTALLED
b. STARTED
c. ACTIVATED

For example, when you 'start' the workbench plugin (org.eclipse.ui.workbench) is
it activated? It doesn't seem to me, because if you then 'start' the jdt.ui
plugin (org.eclipse.jdt.ui) it spits out an error () which resolves to the
method getWorkbench() of the class PlatformUI that happens when the workspaces
is not yet ... 'activated'?

All I'm trying to do is loading the org.eclipse.jdt.ui plugin at eclipse start,
editing the config.ini and adding these entries in the osgi.bundles:

org.eclipse.ui.workbench@4:start
org.eclipse.jdt.ui@4:start

I'd really appreciate some clarifications on these points as they're not so
clear in my mind! Also some links to good documentation of the Eclipse
start-level are really welcome! (Or if someone is so kind to give me some
explanations about them, too!)

Thank you in advance

-Claudio
Re: Understanding OSGi bundles start and activation (+ Eclipse runlevels) [message #74541 is a reply to message #72342] Tue, 10 October 2006 12:52 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com

Can you say why you are trying to do this? In general you do not have
to manually start bundles in Eclipse. Most/many have the
Eclipse-LazyStart: true
header in their manifest. This means that Equinox will start them as
needed where "needed" is defined as on class load.

Jeff

Claudio Marforio wrote:
> I've got some problems in understanding which are the 'fases' of an OSGi
> bundle (a plugin). The keywords that are not clear are:
>
> a. INSTALLED
> b. STARTED
> c. ACTIVATED
>
> For example, when you 'start' the workbench plugin
> (org.eclipse.ui.workbench) is it activated? It doesn't seem to me,
> because if you then 'start' the jdt.ui plugin (org.eclipse.jdt.ui) it
> spits out an error () which resolves to the method getWorkbench() of the
> class PlatformUI that happens when the workspaces is not yet ...
> 'activated'?
>
> All I'm trying to do is loading the org.eclipse.jdt.ui plugin at eclipse
> start, editing the config.ini and adding these entries in the osgi.bundles:
>
> org.eclipse.ui.workbench@4:start
> org.eclipse.jdt.ui@4:start
>
> I'd really appreciate some clarifications on these points as they're not
> so clear in my mind! Also some links to good documentation of the
> Eclipse start-level are really welcome! (Or if someone is so kind to
> give me some explanations about them, too!)
>
> Thank you in advance
>
> -Claudio
Previous Topic:prevent bundles from installing or resolving?
Next Topic:Producer interface BundleException
Goto Forum:
  


Current Time: Thu Apr 25 17:01:48 GMT 2024

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

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

Back to the top