org.eclipse.emf.emfstore.client.util
Class RunESCommand

java.lang.Object
  extended by org.eclipse.emf.emfstore.client.util.RunESCommand

public final class RunESCommand
extends Object

Utility class for automatically wrapping changes against a model element in a command within an EMFStore project.

Author:
emueller

Nested Class Summary
static class RunESCommand.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
<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
 

Method Detail

run

public static void run(Callable<Void> callable)
Executes the given Callable and returns the result.

Parameters:
callable - the callable to be executed

runWithResult

public static <T> T runWithResult(Callable<T> callable)
Executes the given Callable and returns the result.

Type Parameters:
T - the return type of the callable
Parameters:
callable - the callable to be executed
Returns:
the return value of the callable


Copyright © 2015. All Rights Reserved.