Package org.eclipse.ui.statushandlers
Class WorkbenchErrorHandler
- java.lang.Object
-
- org.eclipse.ui.statushandlers.AbstractStatusHandler
-
- org.eclipse.ui.statushandlers.WorkbenchErrorHandler
-
public class WorkbenchErrorHandler extends AbstractStatusHandler
This is a default workbench error handler.- Since:
- 3.3
- See Also:
WorkbenchAdvisor.getWorkbenchErrorHandler()
-
-
Constructor Summary
Constructors Constructor Description WorkbenchErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureStatusDialog(WorkbenchStatusDialogManager statusDialog)
This methods should be overridden to configureWorkbenchStatusDialogManager
behavior.void
handle(StatusAdapter statusAdapter, int style)
HandlesStatusAdapter
objects based on the set style.boolean
supportsNotification(int type)
This methods indicates if particular notification type is supported and ifStatusManager.fireNotification(int, StatusAdapter[])
will be called after the event occurs.
-
-
-
Method Detail
-
supportsNotification
public boolean supportsNotification(int type)
Description copied from class:AbstractStatusHandler
This 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:
supportsNotification
in classAbstractStatusHandler
- Parameters:
type
- - a notification type that should be checked.- Returns:
- true if particular event notification is supported, false otherwise
-
handle
public void handle(StatusAdapter statusAdapter, int style)
Description copied from class:AbstractStatusHandler
HandlesStatusAdapter
objects based on the set style.- Specified by:
handle
in classAbstractStatusHandler
- Parameters:
statusAdapter
- the status adapter. May not benull
.style
- style constant. Acceptable values are defined inStatusManager
and can be combined with logical OR.- See Also:
StatusManager.BLOCK
,StatusManager.NONE
,StatusManager.SHOW
,StatusManager.LOG
-
configureStatusDialog
protected void configureStatusDialog(WorkbenchStatusDialogManager statusDialog)
This methods should be overridden to configureWorkbenchStatusDialogManager
behavior. It is advised to use only following methods ofWorkbenchStatusDialogManager
: Default configuration does nothing.- Parameters:
statusDialog
- a status dialog to be configured.- Since:
- 3.4
-
-