Class ExecuteCommand
- java.lang.Object
-
- org.eclipse.emf.common.command.AbstractCommand
-
- org.eclipse.emf.edit.command.ChangeCommand
-
- org.eclipse.emf.edapt.history.instantiation.ExecuteCommand
-
- All Implemented Interfaces:
org.eclipse.emf.common.command.Command
,IChangeProvider
public class ExecuteCommand extends org.eclipse.emf.edit.command.ChangeCommand implements IChangeProvider
A generic command to execute an operation instance (saving the changes in order to be undoable)- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Constructor Summary
Constructors Constructor Description ExecuteCommand(OperationInstance operationInstance, MetamodelExtent extent)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Change>
getChanges(List<PrimitiveChange> changes)
Provide a representation of the change it causes-
Methods inherited from class org.eclipse.emf.edit.command.ChangeCommand
dispose, execute, getChangeRecorder, redo, undo
-
-
-
-
Constructor Detail
-
ExecuteCommand
public ExecuteCommand(OperationInstance operationInstance, MetamodelExtent extent)
Default constructor- Parameters:
operationInstance
- Operation instanceextent
- Class extent
-
-
Method Detail
-
getChanges
public List<Change> getChanges(List<PrimitiveChange> changes)
Provide a representation of the change it causes- Specified by:
getChanges
in interfaceIChangeProvider
- Parameters:
changes
- The primitive changes which were recorded- Returns:
- Change representation
-
-