Skip to main content



      Home
Home » Eclipse Projects » Equinox » Platform.getExtensionRegistry() return null
Platform.getExtensionRegistry() return null [message #104628] Fri, 01 February 2008 11:26 Go to next message
Eclipse UserFriend
Originally posted by: marco.aleroma.virgilio.it

Hello,
I'm using eclipse to develope a project (using OSGI ambient) in witch I
use some classes of eclipse expecially some plugin.
I have an error with the class org.eclipse.core.runtime.Platform. When I
execute the instruction:
IExtensionRegistry registry = Platform.getExtensionRegistry();
registry is null. I think that I must to initialize the registry but I
don't know very well how do it and what is this registry.

Can you help me, please?

Best regards.
Re: Platform.getExtensionRegistry() return null [message #105391 is a reply to message #104628] Wed, 20 February 2008 10:02 Go to previous message
Eclipse UserFriend
Hi Marco,
The extension registry is provided by the org.eclipse.equinox.registry
bundle. If you are getting "null" on the Platform.getExtensionRegistry() it
is most likely because this bundle is somehow absent or not activated in
your OSGi framework. Usually this bundle is activated by the
org.eclipse.core.runtime - calling a method on Platform class should have
triggered its activation.

The place where "default" extension registry gets created is
org.eclipse.core.internal.registry.osgi.Activator, method startRegistry().

Hope this helps.

- Oleg

"jama" <marco.aleroma@virgilio.it> wrote in message
news:d35d01528ea82497ceb70ddee47c633a$1@www.eclipse.org...
> Hello,
> I'm using eclipse to develope a project (using OSGI ambient) in witch I
> use some classes of eclipse expecially some plugin.
> I have an error with the class org.eclipse.core.runtime.Platform. When I
> execute the instruction:
> IExtensionRegistry registry = Platform.getExtensionRegistry();
> registry is null. I think that I must to initialize the registry but I
> don't know very well how do it and what is this registry.
>
> Can you help me, please?
>
> Best regards.
>
>
Previous Topic:Multiple versions of bundle
Next Topic:SOAP on Equinox
Goto Forum:
  


Current Time: Thu May 08 22:20:42 EDT 2025

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

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

Back to the top