Package org.eclipse.ui
Interface IWorkbenchListener
public interface IWorkbenchListener
Interface for listening to workbench lifecycle events.
This interface may be implemented by clients.
- Since:
- 3.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidpostShutdown(IWorkbench workbench) Performs arbitrary finalization after the workbench stops running.booleanpreShutdown(IWorkbench workbench, boolean forced) Notifies that the workbench is about to shut down.
-
Method Details
-
preShutdown
Notifies that the workbench is about to shut down.This method is called immediately prior to workbench shutdown before any windows have been closed.
The listener may veto a regular shutdown by returning
false, although this will be ignored if the workbench is being forced to shut down.Since other workbench listeners may veto the shutdown, the listener should not dispose resources or do any other work during this notification that would leave the workbench in an inconsistent state.
- Parameters:
workbench- the workbenchforced-trueif the workbench is being forced to shutdown,falsefor a regular close- Returns:
trueto allow the workbench to proceed with shutdown,falseto veto a non-forced shutdown
-
postShutdown
Performs arbitrary finalization after the workbench stops running.This method is called during workbench shutdown after all windows have been closed.
- Parameters:
workbench- the workbench
-