Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Platform.getExtensionRegistry() return null
Platform.getExtensionRegistry() return null [message #104628] Fri, 01 February 2008 16: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 15:02 Go to previous message
Oleg Besedin is currently offline Oleg BesedinFriend
Messages: 41
Registered: July 2009
Member
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: Sun Oct 24 10:35:46 GMT 2021

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

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

Back to the top