net.refractions.udig.ui
Interface PostShutdownTask


public interface PostShutdownTask

Encapsulates a task that needs to be run after the workbench has shutdown. It can be submitted to the ShutdownTaskList object . Methods are NOT called in the Display thread.

Since:
1.1.0
Author:
Jesse

Method Summary
 int getProgressMonitorSteps()
          Returns the number of steps postShutdown(IProgressMonitor, IWorkbench) will use.
 void handlePostShutdownException(java.lang.Throwable t)
          Called if #postShutdown(IWorkbench) throws an exception
 void postShutdown(IProgressMonitor monitor, IWorkbench workbench)
          Called after shutdown is complete, at this point it is too late to cancel.
 

Method Detail

postShutdown

void postShutdown(IProgressMonitor monitor,
                  IWorkbench workbench)
                  throws java.lang.Exception
Called after shutdown is complete, at this point it is too late to cancel.

Parameters:
monitor - the progress monitor to use.
workbench - workbench that is shutting down
Throws:
java.lang.Exception

handlePostShutdownException

void handlePostShutdownException(java.lang.Throwable t)
Called if #postShutdown(IWorkbench) throws an exception

Parameters:
t - the exception

getProgressMonitorSteps

int getProgressMonitorSteps()
Returns the number of steps postShutdown(IProgressMonitor, IWorkbench) will use. This is called only once just before all shutdown tasks are run.

Returns:
the number of steps postShutdown(IProgressMonitor, IWorkbench) will use.