Package org.eclipse.ui.statushandlers
Class WorkbenchErrorHandler
java.lang.Object
org.eclipse.ui.statushandlers.AbstractStatusHandler
org.eclipse.ui.statushandlers.WorkbenchErrorHandler
This is a default workbench error handler.
- Since:
- 3.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureStatusDialog(WorkbenchStatusDialogManager statusDialog) This methods should be overridden to configureWorkbenchStatusDialogManagerbehavior.voidhandle(StatusAdapter statusAdapter, int style) HandlesStatusAdapterobjects based on the set style.booleansupportsNotification(int type) This methods indicates if particular notification type is supported and ifStatusManager.fireNotification(int, StatusAdapter[])will be called after the event occurs.
-
Constructor Details
-
WorkbenchErrorHandler
public WorkbenchErrorHandler()
-
-
Method Details
-
supportsNotification
public boolean supportsNotification(int type) Description copied from class:AbstractStatusHandlerThis methods indicates if particular notification type is supported and ifStatusManager.fireNotification(int, StatusAdapter[])will be called after the event occurs. Only known notification types should be accepted, whereas unknown types should be always rejected.- Overrides:
supportsNotificationin classAbstractStatusHandler- Parameters:
type- - a notification type that should be checked.- Returns:
- true if particular event notification is supported, false otherwise
-
handle
Description copied from class:AbstractStatusHandlerHandlesStatusAdapterobjects based on the set style.- Specified by:
handlein classAbstractStatusHandler- Parameters:
statusAdapter- the status adapter. May not benull.style- style constant. Acceptable values are defined inStatusManagerand can be combined with logical OR.- See Also:
-
configureStatusDialog
This methods should be overridden to configureWorkbenchStatusDialogManagerbehavior. It is advised to use only following methods ofWorkbenchStatusDialogManager: Default configuration does nothing.- Parameters:
statusDialog- a status dialog to be configured.- Since:
- 3.4
-