|
Eclipse eRCP Release 1.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.util.SafeRunnable
Implements a default implementation of ISafeRunnable.
The default implementation of handleException
opens a message dialog.
Note: This class can open an error dialog and should not be used outside of the UI Thread.
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()
Flag to avoid interactive error dialogs during automated testing. |
static boolean |
getIgnoreErrors(boolean flag)
Deprecated. use getIgnoreErrors() |
static ISafeRunnableRunner |
getRunner()
Returns the safe runnable runner. |
void |
handleException(Throwable e)
|
static void |
run(ISafeRunnable runnable)
Runs the given safe runnable using the safe runnable runner. |
static void |
setIgnoreErrors(boolean flag)
Flag to avoid interactive error dialogs during automated testing. |
static void |
setRunner(ISafeRunnableRunner runner)
Sets the safe runnable runner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SafeRunnable()
public SafeRunnable(String message)
message
- the error message to useMethod Detail |
public void handleException(Throwable e)
public static boolean getIgnoreErrors(boolean flag)
public static boolean getIgnoreErrors()
public static void setIgnoreErrors(boolean flag)
public static ISafeRunnableRunner getRunner()
public static void setRunner(ISafeRunnableRunner runner)
runner
- the runner to set, or null
to reset to the default runnerpublic static void run(ISafeRunnable runnable)
SafeRunnable.getRunner().run(runnable)
.
runnable
- the runnable to run
|
Eclipse eRCP Release 1.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |