Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » start a plugin programatically
start a plugin programatically [message #305595] Thu, 06 July 2006 10:47 Go to next message
Eclipse UserFriend
Anyone know how I can load a plugin programatically from another plugin?
Re: start a plugin programatically [message #305597 is a reply to message #305595] Thu, 06 July 2006 11:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.bettsockentraeger.de

Platform.getBundle("some id").start();

Where some id is the id of the plugin you want to activate.

If you have Eclipse-LazyStart: true it is enough to call a method on the
plugin to get it to start.

jkenny wrote:
> Anyone know how I can load a plugin programatically from another plugin?
Re: start a plugin programatically [message #305600 is a reply to message #305597] Thu, 06 July 2006 11:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

However there is a problem when using .start(). As I understand it, by
default, if you use bundle.start(), it records this fact and it will
force an automatic start of the bundle immediately on the next restart
of Eclipse, even if not needed. So you should be very careful about
doing this.

The best way is to use Eclipse-LazyStart and just executing a method on
a class from that bundle. That will start the bundle but it won't force
it to be started on the next restart of Eclipse.

Stefan Langer wrote:
> Platform.getBundle("some id").start();
>
> Where some id is the id of the plugin you want to activate.
>
> If you have Eclipse-LazyStart: true it is enough to call a method on the
> plugin to get it to start.
>
> jkenny wrote:
>
>> Anyone know how I can load a plugin programatically from another plugin?

--
Thanks,
Rich Kulp
Re: start a plugin programatically [message #305604 is a reply to message #305600] Thu, 06 July 2006 12:36 Go to previous messageGo to next message
Eclipse UserFriend
Is Eclipse-LazyStart available before 3.2?



Rich Kulp wrote:

> However there is a problem when using .start(). As I understand it, by
> default, if you use bundle.start(), it records this fact and it will
> force an automatic start of the bundle immediately on the next restart
> of Eclipse, even if not needed. So you should be very careful about
> doing this.
>
> The best way is to use Eclipse-LazyStart and just executing a method on
> a class from that bundle. That will start the bundle but it won't force
> it to be started on the next restart of Eclipse.
>
> Stefan Langer wrote:
>
>> Platform.getBundle("some id").start();
>>
>> Where some id is the id of the plugin you want to activate.
>>
>> If you have Eclipse-LazyStart: true it is enough to call a method on
>> the plugin to get it to start.
>>
>> jkenny wrote:
>>
>>> Anyone know how I can load a plugin programatically from another plugin?
>
>
Re: start a plugin programatically [message #305605 is a reply to message #305604] Thu, 06 July 2006 12:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

I think it was called Eclipse-AutoStart in 3.1.

jkenny wrote:
> Is Eclipse-LazyStart available before 3.2?
>
>
>
> Rich Kulp wrote:
>
>> However there is a problem when using .start(). As I understand it,
>> by default, if you use bundle.start(), it records this fact and it
>> will force an automatic start of the bundle immediately on the next
>> restart of Eclipse, even if not needed. So you should be very careful
>> about doing this.
>>
>> The best way is to use Eclipse-LazyStart and just executing a method
>> on a class from that bundle. That will start the bundle but it won't
>> force it to be started on the next restart of Eclipse.
>>
>> Stefan Langer wrote:
>>
>>> Platform.getBundle("some id").start();
>>>
>>> Where some id is the id of the plugin you want to activate.
>>>
>>> If you have Eclipse-LazyStart: true it is enough to call a method on
>>> the plugin to get it to start.
>>>
>>> jkenny wrote:
>>>
>>>> Anyone know how I can load a plugin programatically from another
>>>> plugin?
>>
>>
Re: start a plugin programatically [message #305610 is a reply to message #305605] Thu, 06 July 2006 14:00 Go to previous message
Eclipse UserFriend
Works as advertised - thanks to all those who replied.

Ed Merks wrote:

> I think it was called Eclipse-AutoStart in 3.1.
>
> jkenny wrote:
>
>> Is Eclipse-LazyStart available before 3.2?
>>
>>
>>
>> Rich Kulp wrote:
>>
>>> However there is a problem when using .start(). As I understand it,
>>> by default, if you use bundle.start(), it records this fact and it
>>> will force an automatic start of the bundle immediately on the next
>>> restart of Eclipse, even if not needed. So you should be very careful
>>> about doing this.
>>>
>>> The best way is to use Eclipse-LazyStart and just executing a method
>>> on a class from that bundle. That will start the bundle but it won't
>>> force it to be started on the next restart of Eclipse.
>>>
>>> Stefan Langer wrote:
>>>
>>>> Platform.getBundle("some id").start();
>>>>
>>>> Where some id is the id of the plugin you want to activate.
>>>>
>>>> If you have Eclipse-LazyStart: true it is enough to call a method on
>>>> the plugin to get it to start.
>>>>
>>>> jkenny wrote:
>>>>
>>>>> Anyone know how I can load a plugin programatically from another
>>>>> plugin?
>>>
>>>
>>>
Previous Topic:Graphic errors in editor
Next Topic:Contributing an action to the menu
Goto Forum:
  


Current Time: Sun Sep 14 00:05:53 EDT 2025

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

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

Back to the top