Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Platform.getExtensionRegistry() return null
Platform.getExtensionRegistry() return null [message #324727] Thu, 31 January 2008 06:25 Go to next message
Eclipse UserFriend
Originally posted by: marco.aleroma.virgilio.it

Hello,
I'm using eclipse to develope a project 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 #324773 is a reply to message #324727] Thu, 31 January 2008 15:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

That seems odd. What type of application are you running your code in? =
=

Is it a full Eclipse Runtime application or are you trying something =

different like an OSGI or RCP app? You aren't by any chance setting =

eclipse.createRegistry=3Dfalse anywhere on the command line?

Mark.


On Thu, 31 Jan 2008 06:25:18 -0500, jama <marco.aleroma@virgilio.it> wro=
te:

> Hello,
> I'm using eclipse to develope a project 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 =3D 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 #324788 is a reply to message #324773] Fri, 01 February 2008 05:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marco.aleroma.virgilio.it

Thanks for the answer.
I don't know very well what the registry must to contain and how it must
to be set! I run in an ambient OSGI but I don't have understand if I must
to load anything on the registry.
I've seen that perhaps I must to use the BundleContex, it's true? How can
I create and set this object?
Re: Platform.getExtensionRegistry() return null [message #324814 is a reply to message #324788] Fri, 01 February 2008 10:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

Sorry - you are beyond me. I have never done an OSGI-only application. I
didn't think you had to do anything special, but you may need to start or
initialize something if you are doing low-level OSGI. You can probably
glean some info from the source for
org.eclipse.core.internal.registry.osgi.Activator, but you may be better
off asking your questions inf the eclipse.technology.equinox newsgroup.

Mark.

On Fri, 01 Feb 2008 05:35:20 -0500, jama <marco.aleroma@virgilio.it> wrote:

> Thanks for the answer.
> I don't know very well what the registry must to contain and how it must
> to be set! I run in an ambient OSGI but I don't have understand if I
> must to load anything on the registry.
> I've seen that perhaps I must to use the BundleContex, it's true? How
> can I create and set this object?
>
>
Re: Platform.getExtensionRegistry() return null [message #324921 is a reply to message #324814] Mon, 04 February 2008 10:03 Go to previous message
Eclipse UserFriend
Originally posted by: marco.aleroma.virgilio.it

I have seen that the instruction Platform.getExtensionRegistry() always
return null. But it's impossible because in the installation of eclipse
the registry contain a lot of plug-in.

How is it possible?
Previous Topic:Forcing the refresh of a decoration
Next Topic:Goto Matching Bracket not working for JSP or JS file..?
Goto Forum:
  


Current Time: Fri Sep 19 02:51:42 EDT 2025

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

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

Back to the top