org.eclipse.emf.emfstore.internal.client.model.util
Class EMFStoreCommandWithParameterAndResult<T,U>

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand
          extended by org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommandWithParameterAndResult<T,U>
Type Parameters:
T - result type
U - parameter type
All Implemented Interfaces:
org.eclipse.emf.common.command.Command

public abstract class EMFStoreCommandWithParameterAndResult<T,U>
extends AbstractEMFStoreCommand

Command that can buffer a result for later retrieval.

Author:
koegel

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Constructor Summary
EMFStoreCommandWithParameterAndResult()
           
 
Method Summary
 T run(U parameter)
          Deprecated. Use run(boolean) instead
 T run(U parameter, boolean ignoreExceptions)
          Executes the command on the workspaces editing domain.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand
canUndo, execute, getRuntimeException, redo, shouldIgnoreExceptions
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canExecute, chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, setDescription, setLabel, toString, undo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EMFStoreCommandWithParameterAndResult

public EMFStoreCommandWithParameterAndResult()
Method Detail

run

@Deprecated
public T run(U parameter)
Deprecated. Use run(boolean) instead

Executes the command on the workspaces editing domain.

Parameters:
parameter - the parameter
Returns:
the result

run

public T run(U parameter,
             boolean ignoreExceptions)
Executes the command on the workspaces editing domain.

Parameters:
parameter - the parameter
ignoreExceptions - true if any thrown exception in the execution of the command should be ignored.
Returns:
the result


Copyright © 2016. All Rights Reserved.