Class 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$
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand

        org.eclipse.emf.common.command.AbstractCommand.NonDirtying
    • Constructor Detail

      • ExecuteCommand

        public ExecuteCommand​(OperationInstance operationInstance,
                              MetamodelExtent extent)
        Default constructor
        Parameters:
        operationInstance - Operation instance
        extent - Class extent
    • Method Detail

      • getChanges

        public List<Change> getChanges​(List<PrimitiveChange> changes)
        Provide a representation of the change it causes
        Specified by:
        getChanges in interface IChangeProvider
        Parameters:
        changes - The primitive changes which were recorded
        Returns:
        Change representation