org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands
Class EMFStoreBasicCommandStack

java.lang.Object
  extended by org.eclipse.emf.common.command.BasicCommandStack
      extended by org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack
All Implemented Interfaces:
org.eclipse.emf.common.command.CommandStack, ESCommandStack

public class EMFStoreBasicCommandStack
extends org.eclipse.emf.common.command.BasicCommandStack
implements ESCommandStack

Basic Command Stack for EMFStore. Allows tracking of command start and end.

Author:
koegel

Constructor Summary
EMFStoreBasicCommandStack()
          Default constructor.
 
Method Summary
 void addCommandStackObserver(ESCommandObserver observer)
          Add a command stack observer.
 void execute(org.eclipse.emf.common.command.Command command)
           
 void redo()
           
 void removeCommandStackObserver(ESCommandObserver observer)
          Remove COmmand stack observer.
 void undo()
           
 
Methods inherited from class org.eclipse.emf.common.command.BasicCommandStack
addCommandStackListener, canRedo, canUndo, flush, getMostRecentCommand, getRedoCommand, getUndoCommand, isSaveNeeded, removeCommandStackListener, saveIsDone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFStoreBasicCommandStack

public EMFStoreBasicCommandStack()
Default constructor.

Method Detail

undo

public void undo()
Specified by:
undo in interface org.eclipse.emf.common.command.CommandStack
Overrides:
undo in class org.eclipse.emf.common.command.BasicCommandStack

redo

public void redo()
Specified by:
redo in interface org.eclipse.emf.common.command.CommandStack
Overrides:
redo in class org.eclipse.emf.common.command.BasicCommandStack

execute

public void execute(org.eclipse.emf.common.command.Command command)
Specified by:
execute in interface org.eclipse.emf.common.command.CommandStack
Overrides:
execute in class org.eclipse.emf.common.command.BasicCommandStack

addCommandStackObserver

public void addCommandStackObserver(ESCommandObserver observer)
Add a command stack observer.

Specified by:
addCommandStackObserver in interface ESCommandStack
Parameters:
observer - the observer
See Also:
ESCommandStack.addCommandStackObserver(org.eclipse.emf.emfstore.client.changetracking.ESCommandObserver)

removeCommandStackObserver

public void removeCommandStackObserver(ESCommandObserver observer)
Remove COmmand stack observer.

Specified by:
removeCommandStackObserver in interface ESCommandStack
Parameters:
observer - the observer
See Also:
ESCommandStack.removeCommandStackObserver(org.eclipse.emf.emfstore.client.changetracking.ESCommandObserver)


Copyright © 2015. All Rights Reserved.