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

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gmf.runtime.lite.commands.AbstractWrappingCommand
          extended by 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.


Constructor Summary
CompositeWrappingCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain, String label)
           
 
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.gmf.runtime.lite.commands.AbstractWrappingCommand
canExecute, canUndo, dispose, execute, getEditingDomain, redo, 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

CompositeWrappingCommand

public CompositeWrappingCommand(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
                                String label)
Method Detail

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.