|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PreShutdownTask
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.
Method Summary | |
---|---|
int |
getProgressMonitorSteps()
Returns the number of steps preShutdown(IProgressMonitor, IWorkbench, boolean) will use. |
boolean |
handlePreShutdownException(java.lang.Throwable t,
boolean forced)
called if preShutdown(IProgressMonitor, IWorkbench, boolean) throws an exception. |
boolean |
preShutdown(IProgressMonitor monitor,
IWorkbench workbench,
boolean forced)
Called before shutdown is complete. |
Method Detail |
---|
boolean preShutdown(IProgressMonitor monitor, IWorkbench workbench, boolean forced) throws java.lang.Exception
monitor
- monitor for showing progress of task. The beginTask method will set the task name but the number of steps is ignored.workbench
- workbench that is shutting downforced
- if the shutdown is forced. If it is forced then shutdown cannot be canceled
java.lang.Exception
- if an exception is thrown it will be passed to handlePreShutdownException(Throwable, boolean)
boolean handlePreShutdownException(java.lang.Throwable t, boolean forced)
preShutdown(IProgressMonitor, IWorkbench, boolean)
throws an exception.
t
- the exception.forced
- if the shutdown is forced. If it is forced then shutdown cannot be canceled
int getProgressMonitorSteps()
preShutdown(IProgressMonitor, IWorkbench, boolean)
will use.
This is called only once just before all shutdown tasks are run.
preShutdown(IProgressMonitor, IWorkbench, boolean)
will use.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |