|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.ui.common.RunInUI
public final class RunInUI
Utility class for executing Callable
s within the UI Thread.
Nested Class Summary | |
---|---|
static class |
RunInUI.WithException
The Callable to be executed may throw an exception. |
Method Summary | ||
---|---|---|
static void |
run(Callable<Void> callable)
Executes the given Callable and returns the result. |
|
static
|
runWithResult(Callable<T> callable)
Executes the given callable and returns the result. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void run(Callable<Void> callable)
Callable
and returns the result.
callable
- the Callable
to be executedpublic static <T> T runWithResult(Callable<T> callable)
T
- the return type of the callablecallable
- the callable to be execued
Callable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |