Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JavaPlugin.getDefault() is null ?
JavaPlugin.getDefault() is null ? [message #210757] Mon, 25 July 2005 04:41 Go to next message
Eclipse UserFriend
Originally posted by: david.nitenberg.gmail.com

How come that when I write JavaPlugin.getDefault() in my Plugin, it
returns me a Null pointer ?

Could someone explain it to me please ?
David
Re: JavaPlugin.getDefault() is null ? - Please HELP [message #210845 is a reply to message #210757] Tue, 26 July 2005 06:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.nitenberg.gmail.com

I am writting a plugin for eclipse and I need to call the method
GetterSetterUtil.getGetterStub. But everytyme, I get an exception of a
null pointer resulting from the fact that JavaPlugin.getDefault() returns
null !
I really don't understand where does that come from...
Do I have to add some statements before calling
GetterSetterUtil.getGetterStub or am I doing something wrong ?

Could someone please help me ?

David
Re: JavaPlugin.getDefault() is null ? [message #211862 is a reply to message #210757] Tue, 09 August 2005 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

David wrote:

> How come that when I write JavaPlugin.getDefault() in my Plugin, it
> returns me a Null pointer ?
>
> Could someone explain it to me please ?
> David
>
Looks like the Java UI plug-in was not correctly loaded and hence it is
not there (null). Check your .log. Did you specify the Java UI plug-in
as required?

Dani
Re: JavaPlugin.getDefault() is null ? [message #213251 is a reply to message #211862] Wed, 24 August 2005 10:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.nitenberg.gmail.com

I am not sure to understand what you mean by the Java UI plug-in... Is it
org.eclipse.ui or org.eclipse.jdt.ui or something else?
Where would I have to specify this Java UI plug-in ?

I've checked my .log but didn't find anything interisting...
Re: JavaPlugin.getDefault() is null ? [message #213274 is a reply to message #213251] Wed, 24 August 2005 12:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

David wrote:

> I am not sure to understand what you mean by the Java UI plug-in... Is
> it org.eclipse.ui or org.eclipse.jdt.ui or something else?
> Where would I have to specify this Java UI plug-in ?

JavaPlugin is code which resides in org.eclipse.jdt.ui (i.e. the Java UI
plug-in) and since you use code from it you have to declare it as
required plug-in.

Dani

>
> I've checked my .log but didn't find anything interisting...
>
Re: JavaPlugin.getDefault() is null ? [message #213380 is a reply to message #213274] Thu, 25 August 2005 09:34 Go to previous message
Eclipse UserFriend
Originally posted by: david.nitenberg.gmail.com

Thanx a lot Daniel, it finaly worked !!
Previous Topic:What font "name" is the Package Explorer tree using?
Next Topic:Automatic source code formatting
Goto Forum:
  


Current Time: Sun Apr 27 10:24:46 EDT 2025

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

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

Back to the top