|Re: Retrieve the AbstractUIPlugin from Bundle [message #757845 is a reply to message #757108]
||Wed, 16 November 2011 14:41
| Daniel KrÃ¼gler
Registered: July 2009
On 2011-11-16 15:17, Jonathan wrote:|
> Last question: why can I retrieve the "org.osgi.framework.Bundle"
> object, and I can't retrieve the AbstractUIPlugIn object ? Although it
> reprensent the same thing (one in a pure Osgi context, and the other in
> the Eclipse UI context)... am I wrong ?
You are wrong: The AbstractUIPlugIn type corresponds to the osgi
interface BundleActivator. An osgi Bundle allows you to create an osgi
BundleActivator, but it does not store a reference to it. It would be
useless anyway, because not all BundleActivator's are singletons.
HTH & Greetings from Bremen,
Powered by FUDForum
. Page generated in 0.04121 seconds