| net.refractions.udig.ui.PreShutdownTask
PreShutdownTask | public interface PreShutdownTask (Code) | | Encapsulates a task that needs to be run at shutdown but before the workbench has been shutdown.
It can be submitted to the
ShutdownTaskList .
Methods are NOT called in the Display thread.
author: Jesse since: 1.1.0 |
preShutdown | boolean preShutdown(IProgressMonitor monitor, IWorkbench workbench, boolean forced) throws Exception(Code) | | Called before shutdown is complete. if !forced then the shutdown can be cancelled if false is returned.
Parameters: monitor - monitor for showing progress of task. The beginTask method will set the task name but the number of steps is ignored. Parameters: workbench - workbench that is shutting down Parameters: forced - if the shutdown is forced. If it is forced then shutdown cannot be cancelled true if shutdown is permitted or false if not. ignored if forced==true. throws: Exception - if an exception is thrown it will be passed to PreShutdownTask.handlePreShutdownException(Throwable,boolean) |
|
|