public class WorkbenchErrorHandler extends AbstractStatusHandler
WorkbenchAdvisor.getWorkbenchErrorHandler()
Constructor and Description |
---|
WorkbenchErrorHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureStatusDialog(WorkbenchStatusDialogManager statusDialog)
This methods should be overridden to configure
WorkbenchStatusDialogManager behavior. |
void |
handle(StatusAdapter statusAdapter,
int style)
Handles
StatusAdapter objects based on the set style. |
boolean |
supportsNotification(int type)
This methods indicates if particular notification type is supported and
if
StatusManager.fireNotification(int, StatusAdapter[]) will be
called after the event occurs. |
public boolean supportsNotification(int type)
AbstractStatusHandler
StatusManager.fireNotification(int, StatusAdapter[])
will be
called after the event occurs. Only known notification types should be
accepted, whereas unknown types should be always rejected.supportsNotification
in class AbstractStatusHandler
type
- - a notification type that should be checked.public void handle(StatusAdapter statusAdapter, int style)
AbstractStatusHandler
StatusAdapter
objects based on the set style.handle
in class AbstractStatusHandler
statusAdapter
- the status adapter. May not be null
.style
- style constant. Acceptable values are defined in
StatusManager
and can be combined with logical OR.StatusManager.BLOCK
,
StatusManager.NONE
,
StatusManager.SHOW
,
StatusManager.LOG
protected void configureStatusDialog(WorkbenchStatusDialogManager statusDialog)
WorkbenchStatusDialogManager
behavior. It is advised to use only
following methods of WorkbenchStatusDialogManager
:
Default configuration does nothing.statusDialog
- a status dialog to be configured.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.