Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Any guidelines for plugins that require a long startup?
Any guidelines for plugins that require a long startup? [message #330300] Thu, 24 July 2008 14:09 Go to next message
Eclipse UserFriend
Our plugin has to do a bunch of work (seconds) before it is usable. It
seems reasonable that our plugin's start method should return quickly and
defer this work until those services are really needed.

My question is, if we moved this work out of the plugin start, then how
can we declare our plugin "unusable" if those services turn out to not be
available after all. Just call the plugin's stop method at that time?
Re: Any guidelines for plugins that require a long startup? [message #330326 is a reply to message #330300] Fri, 25 July 2008 09:09 Go to previous messageGo to next message
Eclipse UserFriend
> My question is, if we moved this work out of the plugin start, then how
> can we declare our plugin "unusable" if those services turn out to not be
> available after all.

Try setting a global "initNeeded" flag == true in the start method. After
that, any of the methods that get invoked can check the flag and do the
initialization at the point that that the user invokes one of the services
you provide.

> Just call the plugin's stop method at that time?
Re: Any guidelines for plugins that require a long startup? [message #330332 is a reply to message #330326] Fri, 25 July 2008 11:28 Go to previous message
Eclipse UserFriend
My question was not how to do this. We know how to do our initialization
post plugin's start. The question is: If/when we do take out
intitialization outside of plugin's start, then what is the proper way of
telling Eclipse that our plugin is unusable in the case that the plugin is
loaded and the intialization later fails. Currently, if initialization
fails, we just raise an exception and Eclipse notices that the plugin is
unusable, it gives a nice message to the user, etc.
Previous Topic:Any issues accessing a common project (via cvs) with 3.4 and 3.3?
Next Topic:Lazy Virtual Tables and Views
Goto Forum:
  


Current Time: Fri May 09 18:34:08 EDT 2025

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

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

Back to the top