UML

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

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

public class MessageEdgeReconnectCommand
extends GraphEdgeReconnectCommand

Comand to reconnect the messages


Constructor Summary
MessageEdgeReconnectCommand(BaseEditPart newEdit, MessageEditPart edgeEdit, boolean isStart, org.eclipse.draw2d.geometry.Point newP)
          Contructor
 
Method Summary
protected  void getOldValues()
          Set the correct new position
protected  void setModelValues()
          Update the events
 
Methods inherited from class org.topcased.modeler.uml.sequencediagram.commands.reconnect.GraphEdgeReconnectCommand
execute, getGraphEdge, getGraphEdgeEdit, getNewNode, getNewNodeEdit, getNewPos, getOldNode, getOldNodeEdit, getOldPos, isMovingStartAnchor, redo, setNewPos, 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

MessageEdgeReconnectCommand

public MessageEdgeReconnectCommand(BaseEditPart newEdit,
                                   MessageEditPart edgeEdit,
                                   boolean isStart,
                                   org.eclipse.draw2d.geometry.Point newP)
Contructor

Parameters:
newEdit - the edit part of the new receiving node
edgeEdit - the edit part of the graph edge
isStart - set it to true if the source is reconnected
newP - the new position of the connector
Method Detail

getOldValues

protected void getOldValues()
Set the correct new position

Overrides:
getOldValues in class GraphEdgeReconnectCommand
See Also:
GraphEdgeReconnectCommand.getOldValues()

setModelValues

protected void setModelValues()
Update the events

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

UML

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