de.cau.cs.kieler.core.ui.errorhandler
Class GenericErrorHandler

java.lang.Object
  extended by org.eclipse.ui.statushandlers.AbstractStatusHandler
      extended by org.eclipse.ui.statushandlers.WorkbenchErrorHandler
          extended by 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 proposed yellow
(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.
 
Constructor Summary
GenericErrorHandler()
           
 
Method Summary
 void addListener(GenericErrorHandler.StatusListener listener)
          Add a new listener to the list of listeners.
 void handle(StatusAdapter statusAdapter, int style)
          
 void removeListener(GenericErrorHandler.StatusListener listener)
          Remove the listener from the list.
 
Methods inherited from class org.eclipse.ui.statushandlers.WorkbenchErrorHandler
configureStatusDialog, supportsNotification
 
Methods inherited from class org.eclipse.ui.statushandlers.AbstractStatusHandler
getId, getParam, getParams, setId, setParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericErrorHandler

public GenericErrorHandler()
Method Detail

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