UML

org.topcased.modeler.uml.sequencediagram.commands.reconnect
Class MessageMoveCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.uml.sequencediagram.commands.reconnect.GraphEdgeMoveCommand
          extended by org.topcased.modeler.uml.sequencediagram.commands.reconnect.MessageMoveCommand

public class MessageMoveCommand
extends GraphEdgeMoveCommand

Command that moves a message


Constructor Summary
MessageMoveCommand(GraphEdgeEditPart edgeEdit, org.eclipse.draw2d.geometry.Point initialPos, org.eclipse.draw2d.geometry.Point newPos)
          Constructor
 
Method Summary
protected  void getValues()
          Set the correct new positions
protected  void setModelValues()
          Update the events
 
Methods inherited from class org.topcased.modeler.uml.sequencediagram.commands.reconnect.GraphEdgeMoveCommand
execute, getGraphEdgeEdit, getNewSourcePosition, getNewTargetPosition, redo, setValues, switchValues, undo
 
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

MessageMoveCommand

public MessageMoveCommand(GraphEdgeEditPart edgeEdit,
                          org.eclipse.draw2d.geometry.Point initialPos,
                          org.eclipse.draw2d.geometry.Point newPos)
Constructor

Parameters:
edgeEdit - the edit part of the graph edge to move
initialPos - the initial position of the connection
newPos - the new position of the connection
Method Detail

getValues

protected void getValues()
Set the correct new positions

Overrides:
getValues in class GraphEdgeMoveCommand
See Also:
GraphEdgeMoveCommand.getValues()

setModelValues

protected void setModelValues()
Update the events

Overrides:
setModelValues in class GraphEdgeMoveCommand
See Also:
GraphEdgeMoveCommand.setModelValues()

UML

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