SysML

org.topcased.modeler.sysml.internalblockdiagram.commands
Class ItemFlowNameUpdateCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.sysml.internalblockdiagram.commands.ItemFlowNameUpdateCommand

public class ItemFlowNameUpdateCommand
extends org.eclipse.gef.commands.Command


Constructor Summary
ItemFlowNameUpdateCommand(EdgeObjectOffsetEditableLabel itemFlowNameFigure, org.eclipse.uml2.uml.Connector connector, java.util.Map data)
          Create a command for updating parameters on a given requirement
 
Method Summary
 void execute()
          Get the old values and set the new ones
protected  void getOldValues()
          Get the old values
 void redo()
          Set the new values
protected  void setValues()
          Set the values on the ItemFlow
protected  void switchValues()
          Switch the old and new values
 void undo()
          Set the old values
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemFlowNameUpdateCommand

public ItemFlowNameUpdateCommand(EdgeObjectOffsetEditableLabel itemFlowNameFigure,
                                 org.eclipse.uml2.uml.Connector connector,
                                 java.util.Map data)
Create a command for updating parameters on a given requirement

Parameters:
req - the requirement to update
data - the datas to set
Method Detail

getOldValues

protected void getOldValues()
Get the old values


setValues

protected void setValues()
Set the values on the ItemFlow


switchValues

protected void switchValues()
Switch the old and new values


execute

public void execute()
Get the old values and set the new ones

Overrides:
execute in class org.eclipse.gef.commands.Command
See Also:
Command.execute()

redo

public void redo()
Set the new values

Overrides:
redo in class org.eclipse.gef.commands.Command
See Also:
Command.redo()

undo

public void undo()
Set the old values

Overrides:
undo in class org.eclipse.gef.commands.Command
See Also:
Command.undo()

SysML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.