Modelers

org.topcased.modeler.commands
Class ReconnectEdgeToTargetCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.commands.ReconnectGraphEdgeCommand
          extended by org.topcased.modeler.commands.ReconnectEdgeToNodeCommand
              extended by org.topcased.modeler.commands.ReconnectEdgeToTargetCommand

public abstract class ReconnectEdgeToTargetCommand
extends ReconnectEdgeToNodeCommand

Sets the reference of a target node to the given edge


Constructor Summary
ReconnectEdgeToTargetCommand(org.eclipse.gef.ConnectionEditPart connection, java.lang.String featureName)
           
 
Method Summary
protected  GraphElement getOldGraphElement(org.eclipse.gef.ConnectionEditPart connection)
           
protected  void updateConnectors(GraphConnector newConnector, GraphConnector oldConnector, GraphConnector attachedConnector)
          Updates anchors and edges within these connectors.
 
Methods inherited from class org.topcased.modeler.commands.ReconnectEdgeToNodeCommand
doContainer, getObjectToUpdate, redoModel, setContainerRef, undoContainer, undoModel
 
Methods inherited from class org.topcased.modeler.commands.ReconnectGraphEdgeCommand
canExecute, execute, getEdge, getNewElement, getOldElement, initializeConnectors, redo, setNewElement, undo
 
Methods inherited from class org.eclipse.gef.commands.Command
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

ReconnectEdgeToTargetCommand

public ReconnectEdgeToTargetCommand(org.eclipse.gef.ConnectionEditPart connection,
                                    java.lang.String featureName)
Method Detail

getOldGraphElement

protected GraphElement getOldGraphElement(org.eclipse.gef.ConnectionEditPart connection)
Specified by:
getOldGraphElement in class ReconnectGraphEdgeCommand
Returns:
Returns the current end element of the given edge
See Also:
org.topcased.modeler.ecore.ediagram.commands.ReconnectGraphEdgeCommand#getOldGraphElement(org.eclipse.gef.ConnectionEditPart)

updateConnectors

protected void updateConnectors(GraphConnector newConnector,
                                GraphConnector oldConnector,
                                GraphConnector attachedConnector)
Description copied from class: ReconnectGraphEdgeCommand
Updates anchors and edges within these connectors. Subclasses may remove and add elements depending usage

Specified by:
updateConnectors in class ReconnectGraphEdgeCommand
Parameters:
newConnector - The connectors of the new element
oldConnector - The connectors of the old element
See Also:
org.topcased.modeler.ecore.ediagram.commands.ReconnectGraphEdgeCommand#updateConnectors(org.topcased.modeler.di.model.GraphConnector, org.topcased.modeler.di.model.GraphConnector)

Modelers

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