org.eclipse.gmf.runtime.lite.commands
Class AbstractWrappingCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gmf.runtime.lite.commands.AbstractWrappingCommand
Direct Known Subclasses:
CompositeWrappingCommand, WrappingCommand

public abstract class AbstractWrappingCommand
extends org.eclipse.gef.commands.Command

Abstract command that wraps a EMF command and is a GEF command.


Constructor Summary
AbstractWrappingCommand(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
           
 
Method Summary
 boolean canExecute()
           
 boolean canUndo()
           
 void dispose()
           
 void execute()
           
protected  org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
           
protected abstract  org.eclipse.core.commands.operations.IUndoableOperation getOperation()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
chain, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWrappingCommand

public AbstractWrappingCommand(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Method Detail

execute

public void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command

canExecute

public boolean canExecute()
Overrides:
canExecute in class org.eclipse.gef.commands.Command

undo

public void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command

canUndo

public boolean canUndo()
Overrides:
canUndo in class org.eclipse.gef.commands.Command

redo

public void redo()
Overrides:
redo in class org.eclipse.gef.commands.Command

dispose

public void dispose()
Overrides:
dispose in class org.eclipse.gef.commands.Command

getEditingDomain

protected final org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()

getOperation

protected abstract org.eclipse.core.commands.operations.IUndoableOperation getOperation()


Copyright © 2012. All Rights Reserved.