UML

org.topcased.modeler.uml.sequencediagram.commands
Class MessageEdgeCreationCommand

java.lang.Object
  extended by CreateTypedEdgeCommand
      extended by org.topcased.modeler.uml.sequencediagram.commands.MessageEdgeCreationCommand
Direct Known Subclasses:
SyncCallEdgeCreationCommand

public class MessageEdgeCreationCommand
extends CreateTypedEdgeCommand

Message edge creation command

** Generated **

Constructor Summary
MessageEdgeCreationCommand(org.eclipse.gef.EditDomain domain, GraphEdge newObj, GraphElement src)
           
MessageEdgeCreationCommand(org.eclipse.gef.EditDomain domain, GraphEdge newObj, GraphElement src, boolean needModelUpdate)
           
 
Method Summary
 org.eclipse.uml2.uml.Message getMessage()
          Return the created message
 BaseEditPart getSourceEditPart()
          Get the edit part of the source node
 org.eclipse.draw2d.geometry.Point getSourcePos()
          Get the source position on the lifeline
 org.eclipse.uml2.uml.Lifeline getSrcLifeline()
          Get the source lifeline.
 BaseEditPart getTargetEditPart()
          Get the edit part of the target node
 org.eclipse.uml2.uml.Lifeline getTargetLifeline()
          Get the target lifeline.
 org.eclipse.draw2d.geometry.Point getTargetPos()
          Get the target position on the lifeline
 void redo()
          Set graphic properties
protected  void redoModel()
           
 void setSourceEditPart(BaseEditPart source)
          Set the edit part of the source node
 void setSourcePos(org.eclipse.draw2d.geometry.Point srcPos)
          Set the source position of the edge
 void setTargetEditPart(BaseEditPart target)
          Set the edit part of the target node
 void setTargetPos(org.eclipse.draw2d.geometry.Point tgtPos)
          Set the target position of the edge
 void undo()
          Unset graphic properties
protected  void undoModel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageEdgeCreationCommand

public MessageEdgeCreationCommand(org.eclipse.gef.EditDomain domain,
                                  GraphEdge newObj,
                                  GraphElement src)

Parameters:
domain - the edit domain
newObj - the graph edge of the new connection
src - the graph element of the source
** Generated **

MessageEdgeCreationCommand

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

Parameters:
domain - the edit domain
newObj - the graph edge of the new connection
src - the graph element of the source
needModelUpdate - set it to true if the model need to be updated
** Generated **
NOT
Method Detail

getMessage

public org.eclipse.uml2.uml.Message getMessage()
Return the created message

Returns:
the message

setSourcePos

public void setSourcePos(org.eclipse.draw2d.geometry.Point srcPos)
Set the source position of the edge

Parameters:
srcPos - the source position on the lifeline

getSourcePos

public org.eclipse.draw2d.geometry.Point getSourcePos()
Get the source position on the lifeline

Returns:
the source position on the lifeline

setTargetPos

public void setTargetPos(org.eclipse.draw2d.geometry.Point tgtPos)
Set the target position of the edge

Parameters:
tgtPos - the target position on the lifeline

getTargetPos

public org.eclipse.draw2d.geometry.Point getTargetPos()
Get the target position on the lifeline

Returns:
the target position on the lifeline

setSourceEditPart

public void setSourceEditPart(BaseEditPart source)
Set the edit part of the source node

Parameters:
source - the edit part of the source node

getSourceEditPart

public BaseEditPart getSourceEditPart()
Get the edit part of the source node

Returns:
the edit part of the source node

setTargetEditPart

public void setTargetEditPart(BaseEditPart target)
Set the edit part of the target node

Parameters:
target - the edit part of the target node

getTargetEditPart

public BaseEditPart getTargetEditPart()
Get the edit part of the target node

Returns:
the edit part of the target node

getSrcLifeline

public org.eclipse.uml2.uml.Lifeline getSrcLifeline()
Get the source lifeline. It can be null if it is a found message.

Returns:
the source lifeline

getTargetLifeline

public org.eclipse.uml2.uml.Lifeline getTargetLifeline()
Get the target lifeline. It can be null if it is a lost message.

Returns:
the target lifeline

redo

public void redo()
Set graphic properties

See Also:
Command.redo()

redoModel

protected void redoModel()

** Generated **
NOT

undo

public void undo()
Unset graphic properties

See Also:
Command.undo()

undoModel

protected void undoModel()

** Generated **
NOT

UML

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