|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.model.util.ModelErrorHandler
public class ModelErrorHandler
A StatusHandler that displays error messages for KielerModelException Status causes at the corresponding Diagram object as a problem marker. Other exceptions and styles (BLOCK, LOG) are handled like the default Status handler.
Field Summary |
---|
Fields inherited from interface de.cau.cs.kieler.core.ui.errorhandler.GenericErrorHandler.StatusListener |
---|
DONT_CARE |
Constructor Summary | |
---|---|
ModelErrorHandler()
|
Method Summary | |
---|---|
static void |
addMarker(String msg,
EObject target)
Add a problem marker to a given EObject to indicate problems graphically in the diagram. |
static void |
clearMarker(EObject target)
Remove all custom problem markers from a given EObject to indicate problems graphically in the diagram. |
static void |
disable()
Disable the error handler. |
void |
earlyStartup()
|
static void |
enable()
Enable the error handler. |
static boolean |
isEnabled()
Check whether the error handler is enabled. |
int |
reroute(StatusAdapter statusAdapter,
int style)
Reroute the exception to the given listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelErrorHandler()
Method Detail |
---|
public static void enable()
public static void disable()
public static boolean isEnabled()
public int reroute(StatusAdapter statusAdapter, int style)
GenericErrorHandler.StatusListener.DONT_CARE
style.
reroute
in interface GenericErrorHandler.StatusListener
statusAdapter
- the status adapterstyle
- the style
public static void addMarker(String msg, EObject target)
msg
- String message of the markertarget
- target objectpublic static void clearMarker(EObject target)
target
- target objectpublic void earlyStartup()
earlyStartup
in interface IStartup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |