StatusManager is the entry point for all statuses to be reported in the user interface.
Handlers shoudn't be used directly but through the StatusManager singleton which keeps the status handling policy and chooses handlers. StatusManager.getManager().handle(IStatus)
and handle(IStatus status, int style)
are the methods are the primary access points to the StatusManager.
Acceptable styles (can be combined with logical OR)
Handlers are intended to be accessed via the status manager. The StatusManager chooses which handler should be used for a particular error. 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 {@link WorkbenchAdvisor#getWorkbenchErrorHandler()}. If a handler is associated with a product, it is used instead of this defined in advisor.
|
|