Hi, I am trying to make my plugin implement persistence across application shutdowns. Typically, you do this by having your plugin implement ISaveParticipant and register itself as a save participant using

ISavedState lastState = ResourcesPlugin.getWorkspace().addSaveParticipant(plugin,this);

 

In order for the save method of the ISaveParticipant to be called at exit (to save the plugin’s state), the application’s WorkbenchAdvisor (UDIGWorkbenchAdvisor in this case) must override

preShutdown() and call ResourcesPlugin.getWorkspace().save(true,new NullProgressMonitor());

 

UDIGWorkbenchAdvisor currently does not do this. Can someone do this for me, or is there some other way to implement persistence?

 

Thank you.

Lewis

 

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

Reply via email to