org.metaabm.commands
Class SetLabelCommand

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.edit.command.AbstractOverrideableCommand
          extended by org.eclipse.emf.edit.command.SetCommand
              extended by org.metaabm.commands.SetLabelCommand
All Implemented Interfaces:
org.eclipse.emf.common.command.Command, org.eclipse.emf.edit.command.OverrideableCommand

public class SetLabelCommand
extends org.eclipse.emf.edit.command.SetCommand


Nested Class Summary
static class SetLabelCommand.TargetTranslator
           
 
Nested classes/interfaces inherited from class org.eclipse.emf.edit.command.SetCommand
org.eclipse.emf.edit.command.SetCommand.PessimisticStrictCompoundCommand
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Field Summary
static java.util.List<SetLabelCommand.TargetTranslator> AGENT_TRANSLATORS
           
static java.util.List<SetLabelCommand.TargetTranslator> ID_TRANSLATORS
           
static java.util.List<SetLabelCommand.TargetTranslator> IMPLEMENTED_TRANSLATORS
           
static SetLabelCommand.TargetTranslator LABEL_TO_AGENT_COUNT_DESC_TRANSLATOR
           
static SetLabelCommand.TargetTranslator LABEL_TO_AGENT_COUNT_LABEL_TRANSLATOR
           
static SetLabelCommand.TargetTranslator LABEL_TO_AGENT_CREATOR_LABEL_TRANSLATOR
           
static SetLabelCommand.TargetTranslator LABEL_TO_CLASSNAME_TRANSLATOR
           
static SetLabelCommand.TargetTranslator LABEL_TO_ID_TRANSLATOR
           
static SetLabelCommand.TargetTranslator LABEL_TO_PLURAL_NAME_TRANSLATOR
           
static java.util.List<SetLabelCommand.TargetTranslator> NAMED_IMPLEMENTED_TRANSLATORS
           
static java.util.List<SetLabelCommand.TargetTranslator> NAMED_TRANSLATORS
           
static java.util.List<SetLabelCommand.TargetTranslator> PLURAL_TRANSLATORS
           
 
Fields inherited from class org.eclipse.emf.edit.command.SetCommand
canUndo, DESCRIPTION, ecorePackage, feature, index, LABEL, oldValue, owner, ownerList, removeCommand, UNSET_VALUE, value
 
Fields inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand
domain, overrideCommand
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
SetLabelCommand(org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value, int index)
           
 
Method Summary
static org.eclipse.emf.common.command.Command create(org.eclipse.emf.edit.domain.EditingDomain domain, java.lang.Object source, java.lang.Object value)
           
static org.eclipse.emf.common.command.Command create(org.eclipse.emf.edit.domain.EditingDomain domain, java.lang.Object source, java.lang.Object feature, java.lang.Object value)
          This creates a command to set the owner's feature to the specified value.
static org.eclipse.emf.common.command.Command create(org.eclipse.emf.edit.domain.EditingDomain domain, java.lang.Object source, java.lang.Object feature, java.lang.Object value, int index)
          This creates a command to set the owner's feature to the specified value.
 void doExecute()
           
 void doRedo()
           
 void doUndo()
           
 java.util.List<SetLabelCommand.TargetTranslator> translatorsFor(IID source, org.eclipse.emf.ecore.EStructuralFeature feature)
           
 
Methods inherited from class org.eclipse.emf.edit.command.SetCommand
doCanUndo, doGetAffectedObjects, doGetResult, getFeature, getIndex, getOldValue, getOwner, getOwnerList, getValue, prepare, toString
 
Methods inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand
canExecute, canUndo, dispose, doCanExecute, doDispose, doGetChildrenToCopy, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo, updateEMap
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
chain, setDescription, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.command.Command
chain
 

Field Detail

LABEL_TO_ID_TRANSLATOR

public static final SetLabelCommand.TargetTranslator LABEL_TO_ID_TRANSLATOR

LABEL_TO_PLURAL_NAME_TRANSLATOR

public static final SetLabelCommand.TargetTranslator LABEL_TO_PLURAL_NAME_TRANSLATOR

LABEL_TO_AGENT_CREATOR_LABEL_TRANSLATOR

public static final SetLabelCommand.TargetTranslator LABEL_TO_AGENT_CREATOR_LABEL_TRANSLATOR

LABEL_TO_AGENT_COUNT_LABEL_TRANSLATOR

public static final SetLabelCommand.TargetTranslator LABEL_TO_AGENT_COUNT_LABEL_TRANSLATOR

LABEL_TO_AGENT_COUNT_DESC_TRANSLATOR

public static final SetLabelCommand.TargetTranslator LABEL_TO_AGENT_COUNT_DESC_TRANSLATOR

LABEL_TO_CLASSNAME_TRANSLATOR

public static final SetLabelCommand.TargetTranslator LABEL_TO_CLASSNAME_TRANSLATOR

ID_TRANSLATORS

public static final java.util.List<SetLabelCommand.TargetTranslator> ID_TRANSLATORS

IMPLEMENTED_TRANSLATORS

public static final java.util.List<SetLabelCommand.TargetTranslator> IMPLEMENTED_TRANSLATORS

NAMED_TRANSLATORS

public static final java.util.List<SetLabelCommand.TargetTranslator> NAMED_TRANSLATORS

NAMED_IMPLEMENTED_TRANSLATORS

public static final java.util.List<SetLabelCommand.TargetTranslator> NAMED_IMPLEMENTED_TRANSLATORS

AGENT_TRANSLATORS

public static final java.util.List<SetLabelCommand.TargetTranslator> AGENT_TRANSLATORS

PLURAL_TRANSLATORS

public static final java.util.List<SetLabelCommand.TargetTranslator> PLURAL_TRANSLATORS
Constructor Detail

SetLabelCommand

public SetLabelCommand(org.eclipse.emf.edit.domain.EditingDomain domain,
                       org.eclipse.emf.ecore.EObject owner,
                       org.eclipse.emf.ecore.EStructuralFeature feature,
                       java.lang.Object value,
                       int index)
Method Detail

translatorsFor

public java.util.List<SetLabelCommand.TargetTranslator> translatorsFor(IID source,
                                                                       org.eclipse.emf.ecore.EStructuralFeature feature)

create

public static org.eclipse.emf.common.command.Command create(org.eclipse.emf.edit.domain.EditingDomain domain,
                                                            java.lang.Object source,
                                                            java.lang.Object feature,
                                                            java.lang.Object value)
This creates a command to set the owner's feature to the specified value. It is recommended to use the index form from ItemProvider.createSetCommand in order to ensure proper overriding behavior.


create

public static org.eclipse.emf.common.command.Command create(org.eclipse.emf.edit.domain.EditingDomain domain,
                                                            java.lang.Object source,
                                                            java.lang.Object value)

create

public static org.eclipse.emf.common.command.Command create(org.eclipse.emf.edit.domain.EditingDomain domain,
                                                            java.lang.Object source,
                                                            java.lang.Object feature,
                                                            java.lang.Object value,
                                                            int index)
This creates a command to set the owner's feature to the specified value.


doExecute

public void doExecute()
Specified by:
doExecute in interface org.eclipse.emf.edit.command.OverrideableCommand
Overrides:
doExecute in class org.eclipse.emf.edit.command.SetCommand

doRedo

public void doRedo()
Specified by:
doRedo in interface org.eclipse.emf.edit.command.OverrideableCommand
Overrides:
doRedo in class org.eclipse.emf.edit.command.SetCommand

doUndo

public void doUndo()
Specified by:
doUndo in interface org.eclipse.emf.edit.command.OverrideableCommand
Overrides:
doUndo in class org.eclipse.emf.edit.command.SetCommand