org.eclipse.emf.emfstore.internal.client.model.util
Class EMFStoreCommandWithResult<T>

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.EMFStoreCommandWithResult<T>
Type Parameters:
T - result type
All Implemented Interfaces:
org.eclipse.emf.common.command.Command
Direct Known Subclasses:
EMFStoreCommandWithResultAndException

public abstract class EMFStoreCommandWithResult<T>
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
EMFStoreCommandWithResult()
           
 
Method Summary
 T run()
          Deprecated. Use run(boolean) instead
 T run(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

EMFStoreCommandWithResult

public EMFStoreCommandWithResult()
Method Detail

run

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

Executes the command on the workspaces editing domain.

Returns:
the result

run

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

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


Copyright © 2016. All Rights Reserved.