UML

org.topcased.modeler.uml.alldiagram.commands
Class ReconnectAssociationEdgeCommand

java.lang.Object
  extended by ReconnectGraphEdgeCommand
      extended by org.topcased.modeler.uml.alldiagram.commands.ReconnectAssociationEdgeCommand

public class ReconnectAssociationEdgeCommand
extends ReconnectGraphEdgeCommand

This command handles the reconnection of associations links. Indeed they connect Type by updating their properties.


Field Summary
static int SOURCE
          Reconnecting the source end
static int TARGET
          Reconnectiong the target end
 
Constructor Summary
ReconnectAssociationEdgeCommand(org.eclipse.gef.ConnectionEditPart connection, int reconnectionEnd)
           
 
Method Summary
protected  GraphElement getOldGraphElement(org.eclipse.gef.ConnectionEditPart connection)
           
protected  void redoModel()
           
protected  void undoModel()
           
protected  void updateConnectors(GraphConnector newConnector, GraphConnector oldConnector, GraphConnector attachedConnector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE

public static final int SOURCE
Reconnecting the source end

See Also:
Constant Field Values

TARGET

public static final int TARGET
Reconnectiong the target end

See Also:
Constant Field Values
Constructor Detail

ReconnectAssociationEdgeCommand

public ReconnectAssociationEdgeCommand(org.eclipse.gef.ConnectionEditPart connection,
                                       int reconnectionEnd)
Method Detail

getOldGraphElement

protected GraphElement getOldGraphElement(org.eclipse.gef.ConnectionEditPart connection)

redoModel

protected void redoModel()

undoModel

protected void undoModel()

updateConnectors

protected void updateConnectors(GraphConnector newConnector,
                                GraphConnector oldConnector,
                                GraphConnector attachedConnector)

UML

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