|
|
|
|
|
Re: start a plugin programatically [message #305610 is a reply to message #305605] |
Thu, 06 July 2006 14:00  |
Eclipse User |
|
|
|
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?
>>>
>>>
>>>
|
|
|
Powered by
FUDForum. Page generated in 0.03992 seconds