Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Plug-in stop() be terminated before completion.(How to workaround?)
Plug-in stop() be terminated before completion. [message #513158] Tue, 09 February 2010 06:42 Go to next message
Tony  is currently offline Tony Friend
Messages: 1
Registered: February 2010
Junior Member
I have a plugin need to do some clean up work upon the shutdown of the RCP. I tried to override the stop() of the Plugin class, but sometimes it's terminated before completion.

I notice in the Plugin API, there's a notes:
This method is intended to perform simple termination of the plug-in environment. The platform may terminate invocations that do not complete in a timely fashion.

So looks like it's designed to be so.

Does anyone have idea how to workaround it?

Thanks,
Re: Plug-in stop() be terminated before completion. [message #513197 is a reply to message #513158] Tue, 09 February 2010 10:44 Go to previous message
Michael Golovanov is currently offline Michael GolovanovFriend
Messages: 37
Registered: October 2009
Member
You can try to use IWorkbenchListener

PlatformUI.getWorkbech().addWorkbechListener

listener has methods for pre and post shutdown handling

Regards, Mike
Previous Topic:how (and when) are view constructed?
Next Topic:how to know which eclipse version i am using
Goto Forum:
  


Current Time: Wed Apr 24 17:35:58 GMT 2024

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

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

Back to the top