Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Forcing start of a plugin
Forcing start of a plugin [message #437034] Tue, 20 September 2005 18:26 Go to next message
Markus Wolf is currently offline Markus WolfFriend
Messages: 153
Registered: July 2009
Senior Member
Hi there,

is there a way to force the start of a plugin.
My plugin is resolved but not activated when I test it.
Adding a bundle header 'Eclipse-AutoStart: true' is not enought.

Thanks
Markus Wolf
--
>
> emedia-solutions wolf
> Wedeler Landstrasse 63
> 22559 Hamburg
>
>> phone: (+49) 40 550 083 70
>> web: http://www.emedia-solutions-wolf.de
>> mail: markus@emedia-solutions-wolf.de
>> pgp: http://wwwkeys.de.pgp.net
>
Re: Forcing start of a plugin [message #437036 is a reply to message #437034] Tue, 20 September 2005 18:28 Go to previous messageGo to next message
Markus Wolf is currently offline Markus WolfFriend
Messages: 153
Registered: July 2009
Senior Member
> is there a way to force the start of a plugin.
> My plugin is resolved but not activated when I test it.
> Adding a bundle header 'Eclipse-AutoStart: true' is not enought.
>
Shame on me. I should read the newsgorup before I post here....
*feels ashamed*
--
>
> emedia-solutions wolf
> Wedeler Landstrasse 63
> 22559 Hamburg
>
>> phone: (+49) 40 550 083 70
>> web: http://www.emedia-solutions-wolf.de
>> mail: markus@emedia-solutions-wolf.de
>> pgp: http://wwwkeys.de.pgp.net
>
Re: Forcing start of a plugin [message #437038 is a reply to message #437034] Tue, 20 September 2005 19:06 Go to previous messageGo to next message
Markus Wolf is currently offline Markus WolfFriend
Messages: 153
Registered: July 2009
Senior Member
One questions comes to my mind when I implemented the IStartup interface.
Why does it depends on org.eclipse.ui? With that I get a dependency on
ui plugins and jface.
This is just bad for my case, because I want to use eclipse in a
headless environment and it makes no sense to that IStartup is needing a
graphical user interface. *confused*

Can anyone clear my mind on this?

Regards
Markus Wolf
--
>
> emedia-solutions wolf
> Wedeler Landstrasse 63
> 22559 Hamburg
>
>> phone: (+49) 40 550 083 70
>> web: http://www.emedia-solutions-wolf.de
>> mail: markus@emedia-solutions-wolf.de
>> pgp: http://wwwkeys.de.pgp.net
>
Re: Forcing start of a plugin [message #437041 is a reply to message #437038] Wed, 21 September 2005 02:21 Go to previous messageGo to next message
sck is currently offline sckFriend
Messages: 70
Registered: July 2009
Member
I am not sure why did that...

But, I can give you the following idea to do that...if you always want the
plug-in to be loaded at start up,

1) create a dummy class in the plug-in that has to be loaded at start up.
2) have your RCP plugin create an instace of this dummy class.

-Sridhar

"Markus Wolf" <markus@emedia-solutions-wolf.de> wrote in message
news:dgpmjp$rdr$1@news.eclipse.org...
> One questions comes to my mind when I implemented the IStartup interface.
> Why does it depends on org.eclipse.ui? With that I get a dependency on
> ui plugins and jface.
> This is just bad for my case, because I want to use eclipse in a
> headless environment and it makes no sense to that IStartup is needing a
> graphical user interface. *confused*
>
> Can anyone clear my mind on this?
>
> Regards
> Markus Wolf
> --
>>
>> emedia-solutions wolf
>> Wedeler Landstrasse 63
>> 22559 Hamburg
>>
>>> phone: (+49) 40 550 083 70
>>> web: http://www.emedia-solutions-wolf.de
>>> mail: markus@emedia-solutions-wolf.de
>>> pgp: http://wwwkeys.de.pgp.net
>>
Re: Forcing start of a plugin [message #437126 is a reply to message #437041] Thu, 22 September 2005 00:39 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
or call Plugin.getDefault() in window advisor
or see Eclipse-AutoStart directive in MANIFEST.MF
Sridhar wrote:

> I am not sure why did that...
>
> But, I can give you the following idea to do that...if you always want the
> plug-in to be loaded at start up,
>
> 1) create a dummy class in the plug-in that has to be loaded at start up.
> 2) have your RCP plugin create an instace of this dummy class.
>
> -Sridhar
>
> "Markus Wolf" <markus@emedia-solutions-wolf.de> wrote in message
> news:dgpmjp$rdr$1@news.eclipse.org...
>> One questions comes to my mind when I implemented the IStartup interface.
>> Why does it depends on org.eclipse.ui? With that I get a dependency on
>> ui plugins and jface.
>> This is just bad for my case, because I want to use eclipse in a
>> headless environment and it makes no sense to that IStartup is needing a
>> graphical user interface. *confused*
>>
>> Can anyone clear my mind on this?
>>
>> Regards
>> Markus Wolf
>> --
>>>
>>> emedia-solutions wolf
>>> Wedeler Landstrasse 63
>>> 22559 Hamburg
>>>
>>>> phone: (+49) 40 550 083 70
>>>> web: http://www.emedia-solutions-wolf.de
>>>> mail: markus@emedia-solutions-wolf.de
>>>> pgp: http://wwwkeys.de.pgp.net
>>>
Re: Forcing start of a plugin [message #437145 is a reply to message #437126] Thu, 22 September 2005 16:52 Go to previous messageGo to next message
Markus Wolf is currently offline Markus WolfFriend
Messages: 153
Registered: July 2009
Senior Member
That's a good idea. Thanks. :-)

> or call Plugin.getDefault() in window advisor
> or see Eclipse-AutoStart directive in MANIFEST.MF
btw. Just setting Eclipse-AutoStart to true is not enought.

Markus Wolf
--
>
> emedia-solutions wolf
> Wedeler Landstrasse 63
> 22559 Hamburg
>
>> phone: (+49) 40 550 083 70
>> web: http://www.emedia-solutions-wolf.de
>> mail: markus@emedia-solutions-wolf.de
>> pgp: http://wwwkeys.de.pgp.net
>
Re: Forcing start of a plugin [message #437154 is a reply to message #437145] Fri, 23 September 2005 02:46 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Markus Wolf wrote:

> That's a good idea. Thanks. :-)
>
>> or call Plugin.getDefault() in window advisor
>> or see Eclipse-AutoStart directive in MANIFEST.MF
> btw. Just setting Eclipse-AutoStart to true is not enought.
>
> Markus Wolf

there is Platform.getPlugin(), but loading plugin on startup isn't good idea
Re: Forcing start of a plugin [message #437155 is a reply to message #437154] Fri, 23 September 2005 06:44 Go to previous message
Markus Wolf is currently offline Markus WolfFriend
Messages: 153
Registered: July 2009
Senior Member
> there is Platform.getPlugin(), but loading plugin on startup isn't good idea
>
I know. I also know about lazy loading, start-up time and everything
else. But sometimes it is just neccessary.
--
>
> emedia-solutions wolf
> Wedeler Landstrasse 63
> 22559 Hamburg
>
>> phone: (+49) 40 550 083 70
>> web: http://www.emedia-solutions-wolf.de
>> mail: markus@emedia-solutions-wolf.de
>> pgp: http://wwwkeys.de.pgp.net
>
Previous Topic:Unhandled event loop exception
Next Topic:Page not available when view is initialized
Goto Forum:
  


Current Time: Mon Dec 09 06:30:26 GMT 2024

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

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

Back to the top