org.eclipse.emf.emfstore.internal.client.model.util
Class AbstractEMFStoreCommand

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand
All Implemented Interfaces:
org.eclipse.emf.common.command.Command
Direct Known Subclasses:
EMFStoreCommand, EMFStoreCommandWithParameter, EMFStoreCommandWithParameterAndResult, EMFStoreCommandWithResult

public abstract class AbstractEMFStoreCommand
extends org.eclipse.emf.common.command.AbstractCommand

Super class for all commands.

Author:
wesendon

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Constructor Summary
AbstractEMFStoreCommand()
           
 
Method Summary
 boolean canUndo()
          
 void execute()
          
 RuntimeException getRuntimeException()
          Get the runtime exception that occurred during command execution.
 void redo()
          
 boolean shouldIgnoreExceptions()
          Return whether the command should ignore exceptions during command execution.
 
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

AbstractEMFStoreCommand

public AbstractEMFStoreCommand()
Method Detail

getRuntimeException

public RuntimeException getRuntimeException()
Get the runtime exception that occurred during command execution. Returns null if there was no exception

Returns:
the exception or null

shouldIgnoreExceptions

public boolean shouldIgnoreExceptions()
Return whether the command should ignore exceptions during command execution.

Returns:
true, if exceptions should be ignored.

canUndo

public boolean canUndo()

Specified by:
canUndo in interface org.eclipse.emf.common.command.Command
Overrides:
canUndo in class org.eclipse.emf.common.command.AbstractCommand
See Also:
AbstractCommand.canUndo()

execute

public void execute()

See Also:
Command.execute()

redo

public void redo()

See Also:
Command.redo()


Copyright © 2015. All Rights Reserved.