Modelers

org.topcased.modeler.commands
Class CreateTypedEdgeCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.commands.CreateGraphEdgeCommand
          extended by org.topcased.modeler.commands.CreateTypedEdgeCommand

public abstract class CreateTypedEdgeCommand
extends CreateGraphEdgeCommand

Handle edge creation

creation : 15 juin 2005


Constructor Summary
CreateTypedEdgeCommand(org.eclipse.gef.EditDomain domain, GraphEdge newObj, GraphElement src, boolean needModelUpdate)
          The constructor
 
Method Summary
protected  EObject getContainerEObject()
          Retrieve the container EObject from the container Type parameter
protected  void redoModel()
          Update the model after at the end of the redo() method.
 void setSourceTargetData(SourceTargetData data)
          Update the source target data
protected  void undoModel()
          Update the model at the end of the undo() method.
 
Methods inherited from class org.topcased.modeler.commands.CreateGraphEdgeCommand
canExecute, execute, getContainer, getEdge, getEditDomain, getSource, getTarget, initName, initName, isUpdateModel, redo, setTarget, 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

CreateTypedEdgeCommand

public CreateTypedEdgeCommand(org.eclipse.gef.EditDomain domain,
                              GraphEdge newObj,
                              GraphElement src,
                              boolean needModelUpdate)
The constructor

Parameters:
domain - the edit domain
newObj - the edge
src - the graph element source
needModelUpdate -
Method Detail

setSourceTargetData

public void setSourceTargetData(SourceTargetData data)
Update the source target data

Parameters:
data -

getContainerEObject

protected EObject getContainerEObject()
Retrieve the container EObject from the container Type parameter

Returns:
the EObject

redoModel

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

Overrides:
redoModel in class CreateGraphEdgeCommand
See Also:
CreateGraphEdgeCommand.redoModel()

undoModel

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

Overrides:
undoModel in class CreateGraphEdgeCommand
See Also:
CreateGraphEdgeCommand.undoModel()

Modelers

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