de.cau.cs.kieler.core.ui.errorhandler
Class GenericErrorHandler
java.lang.Object
org.eclipse.ui.statushandlers.AbstractStatusHandler
org.eclipse.ui.statushandlers.WorkbenchErrorHandler
de.cau.cs.kieler.core.ui.errorhandler.GenericErrorHandler
public class GenericErrorHandler
- extends WorkbenchErrorHandler
Generic error handler, mainly taken from IDEWorkbenchErrorHandler. All
handled statuses are checked against severity and logged using logging
facility (by superclass).
As subclassing the IDEWorkbenchErrorHandler is restricted, this is a slightly
customized copy.
TODO: Augment by more useful error messages customized to KIELER users.
- Rating

- (2010-02-12)
Nested Class Summary |
static interface |
GenericErrorHandler.StatusListener
Classes implementing this interface will be notified when a non-fatal
exception passes through the error handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericErrorHandler
public GenericErrorHandler()
handle
public void handle(StatusAdapter statusAdapter,
int style)
-
- Overrides:
handle
in class WorkbenchErrorHandler
addListener
public void addListener(GenericErrorHandler.StatusListener listener)
- Add a new listener to the list of listeners.
- Parameters:
listener
- the listener
removeListener
public void removeListener(GenericErrorHandler.StatusListener listener)
- Remove the listener from the list.
- Parameters:
listener
- the listener