org.eclipse.emf.emfstore.internal.client.ui.common
Class RunInUI.WithException
java.lang.Object
org.eclipse.emf.emfstore.internal.client.ui.common.RunInUI.WithException
- Enclosing class:
- RunInUI
public static class RunInUI.WithException
- extends Object
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. |
RunInUI.WithException
public RunInUI.WithException()
runWithResult
public static <T> T runWithResult(Callable<T> callable)
throws ESException
- Executes the given callable and returns the result.
- Type Parameters:
T - the return type of the callable- Parameters:
callable - the callable to be execued
- Returns:
- the return value of the
Callable
- Throws:
ESException - in case an error occurs during execution of the callable
run
public static void run(Callable<Void> callable)
throws ESException
- Executes the given callable and returns the result.
- Parameters:
callable - the callable to be execued
- Throws:
ESException - in case an error occurs during execution of the callable
Copyright © 2015. All Rights Reserved.