org.metaabm.commands
Class SetGenerateCommand

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.SetGenerateCommand
All Implemented Interfaces:
org.eclipse.emf.common.command.Command, org.eclipse.emf.edit.command.OverrideableCommand

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

On generation, creates agent activities if they do not already exist

Author:
milesparker

Nested Class Summary
 
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
 
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
SetGenerateCommand(org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.emf.ecore.EObject owner, java.lang.Object value)
           
 
Method Summary
 void doExecute()
           
 void doRedo()
           
 void doUndo()
           
 
Methods inherited from class org.eclipse.emf.edit.command.SetCommand
create, create, 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
 

Constructor Detail

SetGenerateCommand

public SetGenerateCommand(org.eclipse.emf.edit.domain.EditingDomain domain,
                          org.eclipse.emf.ecore.EObject owner,
                          java.lang.Object value)
Method Detail

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