EGF Engine
Release 0.1.0

org.eclipse.egf.core.ui.command
Class ChangeRecorderWrapperCommand

java.lang.Object
  extended by CompoundCommand
      extended by org.eclipse.egf.model.edit.command.AbstractModelElementCommand
          extended by org.eclipse.egf.core.ui.command.ChangeRecorderWrapperCommand

public class ChangeRecorderWrapperCommand
extends AbstractModelElementCommand

Provides a support to have undo, redo mechanism for model element object changes performed through a change recorder.


Constructor Summary
ChangeRecorderWrapperCommand(ChangeDescription changes, EditingDomain editingDomain_p, EObject modelElement_p, EStructuralFeature feature_p, Object value_p)
          Constructor.
 
Method Summary
protected  Command getCrudCommand(EditingDomain editingDomain_p, EObject modelElement_p, EStructuralFeature feature_p, Object value_p)
          Get the initial EMF CRUD command to execute : SetCommand, AddCommand, ...
 String getLabel()
           
 
Methods inherited from class org.eclipse.egf.model.edit.command.AbstractModelElementCommand
doExecute, execute, getDetailedLabel, setPluginChangeCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeRecorderWrapperCommand

public ChangeRecorderWrapperCommand(ChangeDescription changes,
                                    EditingDomain editingDomain_p,
                                    EObject modelElement_p,
                                    EStructuralFeature feature_p,
                                    Object value_p)
Constructor.

Parameters:
editingDomain_p -
modelElement_p -
feature_p -
value_p -
Method Detail

getCrudCommand

protected Command getCrudCommand(EditingDomain editingDomain_p,
                                 EObject modelElement_p,
                                 EStructuralFeature feature_p,
                                 Object value_p)
Description copied from class: AbstractModelElementCommand
Get the initial EMF CRUD command to execute : SetCommand, AddCommand, ...

Specified by:
getCrudCommand in class AbstractModelElementCommand
Returns:
See Also:
org.eclipse.egf.model.edit.command.AbstractModelElementCommand#getCrudCommand(org.eclipse.emf.edit.domain.EditingDomain, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, java.lang.Object)

getLabel

public String getLabel()
Overrides:
getLabel in class AbstractModelElementCommand
See Also:
AbstractModelElementCommand.getLabel()

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.