You can always call PlatformUI.getWorkbench().isClosing() to test if the workbench is closing.  

You can also put a bit of code in the stop() method of you plugin as it is called during shutdown.  There is also some listeners in PlatformUI.getWorkbench for listening to windows opening and closing.

Jesse
On 28-Mar-06, at 4:31 AM, M.S.Bachler wrote:

Hi!

Does anyone know how I can add a listener to / pick up that the application is closing.

I want to prompt the user to upload files when they exit uDig but have not been able to work out how I can detect this.

I tried putting code in the stop method for my Plugin, but that did not seem to work.

Thoughts?

Michelle

_______________________________________________
User-friendly Desktop Internet GIS (uDig)

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to