Modelers

org.topcased.modeler.commands
Class ReconnectSourceToTargetCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.commands.ReconnectGraphEdgeCommand
          extended by org.topcased.modeler.commands.ReconnectNodeToNodeCommand
              extended by org.topcased.modeler.commands.ReconnectSourceToTargetCommand

public abstract class ReconnectSourceToTargetCommand
extends ReconnectNodeToNodeCommand

TODO Comment this method


Field Summary
 
Fields inherited from class org.topcased.modeler.commands.ReconnectNodeToNodeCommand
SOURCE, TARGET
 
Constructor Summary
ReconnectSourceToTargetCommand(org.eclipse.gef.ConnectionEditPart connection, java.lang.String featureName, int direction)
           
 
Method Summary
protected  void redoModel()
          Update the model after at the end of the redo() method.
protected  void undoModel()
          Update the model at the end of the undo() method.
protected  void updateConnectors(GraphConnector newConnector, GraphConnector oldConnector, GraphConnector attachedConnector)
          Updates anchors and edges within these connectors.
 
Methods inherited from class org.topcased.modeler.commands.ReconnectNodeToNodeCommand
doDirectReference, doInverseReference, getFixedEnd, getObjectToUpdate, getOldGraphElement, getReconnectionEndType, undoDirectReference, undoInverseReference
 
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

ReconnectSourceToTargetCommand

public ReconnectSourceToTargetCommand(org.eclipse.gef.ConnectionEditPart connection,
                                      java.lang.String featureName,
                                      int direction)
Parameters:
domain -
connection -
featureName -
direction -
Method Detail

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:
ReconnectGraphEdgeCommand.updateConnectors(org.topcased.modeler.di.model.GraphConnector, org.topcased.modeler.di.model.GraphConnector, org.topcased.modeler.di.model.GraphConnector)

redoModel

protected void redoModel()
Description copied from class: ReconnectGraphEdgeCommand
Update the model after at the end of the redo() method. This method should be overriden by subclasses.

Specified by:
redoModel in class ReconnectGraphEdgeCommand
See Also:
ReconnectGraphEdgeCommand.redoModel()

undoModel

protected void undoModel()
Description copied from class: ReconnectGraphEdgeCommand
Update the model at the end of the undo() method. This method should be overriden by subclasses.

Specified by:
undoModel in class ReconnectGraphEdgeCommand
See Also:
ReconnectGraphEdgeCommand.undoModel()

Modelers

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