org.eclipse.gmf.runtime.lite.commands
Class CompositeWrappingCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.eclipse.gmf.runtime.lite.commands.AbstractWrappingCommand
org.eclipse.gmf.runtime.lite.commands.CompositeWrappingCommand
public class CompositeWrappingCommand
- extends AbstractWrappingCommand
GEF Command that wraps an unlimited number of EMF Commands that should be executed
in a context of one transaction.
Method Summary |
void |
add(org.eclipse.emf.common.command.Command command)
|
void |
add(org.eclipse.gef.commands.Command command)
Adds a GEF command. |
protected org.eclipse.core.commands.operations.IUndoableOperation |
getOperation()
|
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 |
CompositeWrappingCommand
public CompositeWrappingCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
String label)
add
public void add(org.eclipse.emf.common.command.Command command)
add
public void add(org.eclipse.gef.commands.Command command)
- Adds a GEF command. If the command is a wrapper command for an EMF command, it will be executed in
the same transaction context.
getOperation
protected org.eclipse.core.commands.operations.IUndoableOperation getOperation()
- Specified by:
getOperation
in class AbstractWrappingCommand
Copyright © 2012. All Rights Reserved.