Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPlatform.getExtensionRegistry() return null
https://www.eclipse.org/forums/index.php/mv/msg/32250/104628/#msg_104628
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.]]>2008-02-01T16:26:30-00:00Re: Platform.getExtensionRegistry() return null
https://www.eclipse.org/forums/index.php/mv/msg/32250/105391/#msg_105391
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.
>
>]]>Oleg Besedin2008-02-20T15:02:37-00:00