|
Re: FooPlugin.getDefault() returns null from code running inside the Foo plug-in [message #292716 is a reply to message #292715] |
Tue, 11 October 2005 15:40 |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
Paul Keyser <rolarenfan@earthlink.net> wrote:
> I create in Eclipse 3.1 a plug-in called "Foo", and its
> AbstractUIPlugin class, called FooPlugin, contains (as always) a
> method getDefault() to return the singleton instance of FooPlugin.
> Somewhere else in the code of the Foo plug-in I call
> FooPlugin.getDefault() -- for example, to be able to write to the log
> -- but the return value is null. Every time.
> In most of my plug-ins this has never happened, not once. Why would
> it be happening in the Foo plug-in? I.e., where should I look for the
> difference that is causing this?
Perhaps FooPlugin has not been started?
Is the code calling FooPlugin.getDefault() within FooPlugin or is it from
some other plugin?
--
Sunil
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03452 seconds