org.eclipse.emf.emfstore.internal.client.ui.common
Class RunInUI.WithException

java.lang.Object
  extended by 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.


Constructor Summary
RunInUI.WithException()
           
 
Method Summary
static void run(Callable<Void> callable)
          Executes the given callable and returns the result.
static
<T> T
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
 

Constructor Detail

RunInUI.WithException

public RunInUI.WithException()
Method Detail

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.