public abstract class AbstractStatusHandler extends Object
Status handlers are part of the status handling facility. The facility is responsible for handling errors and other important issues in Eclipse based applications. The handlers are responsible for presenting this errors by logging or showing error dialogs.
All status handlers extends
handle(StatusAdapter status, int style).
This method handles statuses due to handling style. The style indicates how
status handler should handle a status.
For acceptable styles check
Handlers shoudn't be used directly but through the
chooses which handler should be used for handling. There are two ways for
adding handlers to the handling flow. First using extension point
org.eclipse.ui.statusHandlers, second by the workbench
advisor and its method
If a handler is associated with a product, it is used instead of this defined
A status handler has the id and a set of parameters. The handler can use them
during handling. If the handler is added as an extension, both are set during
initialization of the handler using elements and attributes of
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the id of the handler.
Returns the value of the handler's parameter identified by the given key, or
Returns all parameters of the handler.
Sets the id for the handler.
Sets the parameters for the handler.
This methods indicates if particular notification type is supported and if
public abstract void handle(StatusAdapter statusAdapter, int style)
StatusAdapterobjects based on the set style.
public Map getParams()
nullif this handler has no such parameter.
key- the name of the property
nullif this handler has no such parameter
public void setParams(Map params)
org.eclipse.ui.statushandlers extension, the parameters are set during initialization of the handler using
params- the parameters to set
public String getId()
public void setId(String id)
id- the id to set
public boolean supportsNotification(int type)
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.
type- - a notification type that should be checked.
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.