Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Force eclipse to load my plugin on start
Force eclipse to load my plugin on start [message #81292] Tue, 24 June 2003 08:31 Go to next message
Eclipse UserFriend
Hello. How can I force the Eclipse to load my plugin immidiatly after it has
started without waiting for any event that requires it such as open veiwer
from that plugin.

Thanks,
Asaf
Re: Force eclipse to load my plugin on start [message #81388 is a reply to message #81292] Tue, 24 June 2003 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mccull1.does.not.like.spam.us.ibm.com

Reference the startup extension point (in plugin.xml), and implement the
IStartup interface on the Plugin class.

-Andrew

<extension
id="myPlugin.startup"
name="myPlugin.startup"
point="org.eclipse.ui.startup">
</extension>

"Asaf" <asafr@cerylion.net> wrote in message
news:bd9cuv$hh8$1@rogue.oti.com...
> Hello. How can I force the Eclipse to load my plugin immidiatly after it
has
> started without waiting for any event that requires it such as open veiwer
> from that plugin.
>
> Thanks,
> Asaf
>
>
Re: Force eclipse to load my plugin on start [message #81407 is a reply to message #81292] Tue, 24 June 2003 09:42 Go to previous messageGo to next message
Eclipse UserFriend
All you need to do is have your plug-in implement the IStartup interface
and then add the method - public void earlyStartup(){ } to your plugin and
you will be all set.

you can also just put <extension point="org.eclipse.ui.startup"/>
in your plugin.xml file.

Greg
Re: Force eclipse to load my plugin on start [message #81559 is a reply to message #81407] Tue, 24 June 2003 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

However, be very sure you want to do this. It is time consuming and the
user can turn it off if they wish. It is actually considered to be
inconsiderate to do this unless absolutely necessary.

Do you really need to start at startup. Most of the time this is not
needed. Instead often builders are used instead, or if your plugin
implements a view or an editor, if that editor or view is activated your
plugin will be activated, as you already mentioned. Another way is from
actions. You can put actions on the toolbar/menu/popup menu that don't
activate your plugin until necessary.

There is also something else that gives you a snapshot of the resource
changes since the last time you were activated, but I don't remember
what it was.
Re: Force eclipse to load my plugin on start [message #81963 is a reply to message #81559] Wed, 25 June 2003 07:25 Go to previous messageGo to next message
Eclipse UserFriend
thanks for good tips
Asaf.
"Richard L. Kulp" <richkulp@NOSPAM.us.ibm.com> wrote in message
news:bd9oor$v38$1@rogue.oti.com...
> However, be very sure you want to do this. It is time consuming and the
> user can turn it off if they wish. It is actually considered to be
> inconsiderate to do this unless absolutely necessary.
>
> Do you really need to start at startup. Most of the time this is not
> needed. Instead often builders are used instead, or if your plugin
> implements a view or an editor, if that editor or view is activated your
> plugin will be activated, as you already mentioned. Another way is from
> actions. You can put actions on the toolbar/menu/popup menu that don't
> activate your plugin until necessary.
>
> There is also something else that gives you a snapshot of the resource
> changes since the last time you were activated, but I don't remember
> what it was.
>
Re: Force eclipse to load my plugin on start [message #81977 is a reply to message #81388] Wed, 25 June 2003 07:26 Go to previous message
Eclipse UserFriend
many thanks
Asaf
"Andrew McCullough" <mccull1@does.not.like.spam.us.ibm.com> wrote in message
news:bd9kfb$pbe$1@rogue.oti.com...
>
> Reference the startup extension point (in plugin.xml), and implement the
> IStartup interface on the Plugin class.
>
> -Andrew
>
> <extension
> id="myPlugin.startup"
> name="myPlugin.startup"
> point="org.eclipse.ui.startup">
> </extension>
>
> "Asaf" <asafr@cerylion.net> wrote in message
> news:bd9cuv$hh8$1@rogue.oti.com...
> > Hello. How can I force the Eclipse to load my plugin immidiatly after it
> has
> > started without waiting for any event that requires it such as open
veiwer
> > from that plugin.
> >
> > Thanks,
> > Asaf
> >
> >
>
>
Previous Topic:jaxp call does not work in plugin with jdk1.4.1
Next Topic:Unselect separate VM for ANT
Goto Forum:
  


Current Time: Sat Jun 07 14:09:23 EDT 2025

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

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

Back to the top