Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Plugin class constructor and start method
Plugin class constructor and start method [message #447426] Wed, 05 April 2006 06:47 Go to next message
Eclipse UserFriend
Hi NG,

we just found a strange behaviour in one of our self developed eclipse
plugins (webstartable app, using manifest.mf):

The constructor of the class is instantiated twice, without calling
start after the second instantiation. This has the effect that the
bundle, provided by the context which is provided through the start
method, as null after completion of initialization. So we can't access
the bundle any more. Any hint what we are doing wrong?

Thanks in advance

Guido Kuepper
Re: Plugin class constructor and start method [message #447428 is a reply to message #447426] Wed, 05 April 2006 08:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Guido,
is the bundle a singleton ?

Eg do you have the following line in your Manifest.MF ?

Bundle-SymbolicName: org.bla.bundelname; singleton:=true

Regards,
Stepan

Guido Küpper schrieb:
> Hi NG,
>
> we just found a strange behaviour in one of our self developed eclipse
> plugins (webstartable app, using manifest.mf):
>
> The constructor of the class is instantiated twice, without calling
> start after the second instantiation. This has the effect that the
> bundle, provided by the context which is provided through the start
> method, as null after completion of initialization. So we can't access
> the bundle any more. Any hint what we are doing wrong?
>
> Thanks in advance
>
> Guido Kuepper
Re: Plugin class constructor and start method [message #447429 is a reply to message #447426] Wed, 05 April 2006 08:53 Go to previous messageGo to next message
Eclipse UserFriend
Another idea.

Add the followining instance initializer code into your plugin class


{
new Throwable().printStackTrace();
}


That will show you where from the instances are created.

/Stepan


Guido Küpper schrieb:
> Hi NG,
>
> we just found a strange behaviour in one of our self developed eclipse
> plugins (webstartable app, using manifest.mf):
>
> The constructor of the class is instantiated twice, without calling
> start after the second instantiation. This has the effect that the
> bundle, provided by the context which is provided through the start
> method, as null after completion of initialization. So we can't access
> the bundle any more. Any hint what we are doing wrong?
>
> Thanks in advance
>
> Guido Kuepper
Re: Plugin class constructor and start method [message #447433 is a reply to message #447426] Wed, 05 April 2006 10:29 Go to previous messageGo to next message
Eclipse UserFriend
Another idea: is your plug-in registered for early startup? See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=128178#c13

Boris

"Guido K
Re: Plugin class constructor and start method [message #447588 is a reply to message #447433] Tue, 11 April 2006 07:09 Go to previous message
Eclipse UserFriend
Boris Bokowski schrieb:
> Another idea: is your plug-in registered for early startup? See
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=128178#c13
>

That's the point, thanks a lot!

Guido
Previous Topic:manifest mf for multiple os's
Next Topic:file path in plugin when runtime
Goto Forum:
  


Current Time: Fri Jun 13 07:25:14 EDT 2025

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

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

Back to the top