EGF Engine
Release 0.1.0

org.eclipse.egf.model.edit.command
Class AddModelElementCommand

java.lang.Object
  extended by CompoundCommand
      extended by org.eclipse.egf.model.edit.command.AbstractModelElementCommand
          extended by org.eclipse.egf.model.edit.command.AddModelElementCommand

public class AddModelElementCommand
extends AbstractModelElementCommand

Implements an Add command that modifies a NamedModelElementWithId object with forwarding model element changes to related plug-in file.


Constructor Summary
AddModelElementCommand(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, ...
 
Methods inherited from class org.eclipse.egf.model.edit.command.AbstractModelElementCommand
doExecute, execute, getDetailedLabel, getLabel, setPluginChangeCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddModelElementCommand

public AddModelElementCommand(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)

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.