|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.util.SafeRunnable
Implements a default implementation of ISafeRunnable.
The default implementation of handleException
opens a message dialog.
Constructor Summary | |
SafeRunnable()
Creates a new instance of SafeRunnable with a default error message. |
|
SafeRunnable(String message)
Creates a new instance of SafeRunnable with the given error message. |
Method Summary | |
static boolean |
getIgnoreErrors(boolean flag)
Flag to avoid interactive error dialogs during automated testing. |
void |
handleException(Throwable e)
Handles an exception thrown by this runnable's run
method. |
static void |
setIgnoreErrors(boolean flag)
Flag to avoid interactive error dialogs during automated testing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.ISafeRunnable |
run |
Constructor Detail |
public SafeRunnable()
public SafeRunnable(String message)
message
- the error message to useMethod Detail |
public void handleException(Throwable e)
ISafeRunnable
run
method. The processing done here should be specific to the
particular usecase for this runnable. Generalized exception
processing (e.g., logging in the platform's log) is done by the
Platform's run mechanism.
handleException
in interface ISafeRunnable
e
- an exception which occurred during processing
the body of this runnable (i.e., in run()
)Platform.run(org.eclipse.core.runtime.ISafeRunnable)
public static boolean getIgnoreErrors(boolean flag)
public static void setIgnoreErrors(boolean flag)
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |