Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:47 Go to next message
Guido Kuepper is currently offline Guido KuepperFriend
Messages: 17
Registered: July 2009
Junior Member
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 12:14 Go to previous messageGo to next message
Stepan Rutz is currently offline Stepan RutzFriend
Messages: 52
Registered: July 2009
Member
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 12:53 Go to previous messageGo to next message
Stepan Rutz is currently offline Stepan RutzFriend
Messages: 52
Registered: July 2009
Member
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 14:29 Go to previous messageGo to next message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
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 11:09 Go to previous message
Guido Kuepper is currently offline Guido KuepperFriend
Messages: 17
Registered: July 2009
Junior Member
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: Sun Dec 08 09:41:32 GMT 2024

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

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

Back to the top