UML

org.topcased.modeler.uml.sequencediagram.policies
Class MessageEdgeCreationEditPolicy

java.lang.Object
  extended by AbstractEdgeCreationEditPolicy
      extended by org.topcased.modeler.uml.sequencediagram.policies.MessageEdgeCreationEditPolicy

public class MessageEdgeCreationEditPolicy
extends AbstractEdgeCreationEditPolicy

Message edge creation

** Generated **

Constructor Summary
MessageEdgeCreationEditPolicy()
           
 
Method Summary
protected  boolean checkCommand(org.eclipse.gef.commands.Command command)
           
protected  boolean checkEdge(GraphEdge edge)
           
protected  boolean checkReconnectSource(GraphNode source, GraphEdge edge)
          Check if the source can be reconnected
protected  boolean checkReconnectTarget(GraphNode target, GraphEdge edge)
          Check if the target can be reconnected
protected  boolean checkSource(GraphElement source)
          !!
protected  boolean checkSource(GraphNode source, GraphEdge edge)
          Check if the sourceNode is valid for the given Message.
protected  boolean checkTargetForSource(GraphElement source, GraphElement target)
          !!
protected  boolean checkTargetForSource(GraphNode source, GraphNode target, GraphEdge edge)
          Check if the targetNode is valid for the given sourceNode and Message.
protected  CreateTypedEdgeCommand createCommand(org.eclipse.gef.EditDomain domain, GraphEdge edge, GraphElement source)
          !!
protected  org.eclipse.gef.commands.Command getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest request)
          Handle the various type of message
protected  org.eclipse.gef.commands.Command getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest request)
          Handle the various type (depending on the MessageSort property) of the Message
protected  org.eclipse.gef.editpolicies.FeedbackHelper getFeedbackHelper(org.eclipse.gef.requests.CreateConnectionRequest request)
           
protected  org.eclipse.gef.commands.Command getReconnectSourceCommand(org.eclipse.gef.requests.ReconnectRequest request)
           
protected  org.eclipse.gef.commands.Command getReconnectTargetCommand(org.eclipse.gef.requests.ReconnectRequest request)
           
protected  SourceTargetData getSourceTargetData(GraphEdge edge)
          Retrieve the SourceTargetData corresponding to the type (depending on the MessageSort property) of Message that is created
protected  SourceTargetData getSourceTargetData(GraphElement source, GraphElement target)
          !!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageEdgeCreationEditPolicy

public MessageEdgeCreationEditPolicy()
Method Detail

createCommand

protected CreateTypedEdgeCommand createCommand(org.eclipse.gef.EditDomain domain,
                                               GraphEdge edge,
                                               GraphElement source)
!! should not be called !!

See Also:
org.topcased.modeler.edit.policies.AbstractEdgeCreationEditPolicy#createCommand(org.eclipse.gef.EditDomain, org.topcased.modeler.di.model.GraphEdge, org.topcased.modeler.di.model.GraphElement)
** Generated **

checkEdge

protected boolean checkEdge(GraphEdge edge)

See Also:
org.topcased.modeler.edit.policies.AbstractEdgeCreationEditPolicy#checkEdge(org.topcased.modeler.di.model.GraphEdge)
** Generated **

checkSource

protected boolean checkSource(GraphElement source)
!! should not be called !!

See Also:
org.topcased.modeler.edit.policies.AbstractEdgeCreationEditPolicy#checkSource(org.topcased.modeler.di.model.GraphElement)
** Generated **

checkSource

protected boolean checkSource(GraphNode source,
                              GraphEdge edge)
Check if the sourceNode is valid for the given Message. We check the MessageSort value of the Message to determine if the source is valid

Parameters:
source - the sourceNode
edge - the graphEdge that represent the Message
Returns:
true if the sourceNode is valid

checkTargetForSource

protected boolean checkTargetForSource(GraphElement source,
                                       GraphElement target)
!! should not be called !!

See Also:
org.topcased.modeler.edit.policies.AbstractEdgeCreationEditPolicy#checkTargetForSource(org.topcased.modeler.di.model.GraphElement, org.topcased.modeler.di.model.GraphElement)
** Generated **

checkTargetForSource

protected boolean checkTargetForSource(GraphNode source,
                                       GraphNode target,
                                       GraphEdge edge)
Check if the targetNode is valid for the given sourceNode and Message. We check the MessageSort value of the Message to determine if the target is valid

Parameters:
source - the sourceNode
target - the targetNode
edge - the graphEdge that represent the Message
Returns:
true if the targetNode is valid

checkCommand

protected boolean checkCommand(org.eclipse.gef.commands.Command command)

See Also:
org.topcased.modeler.edit.policies.AbstractEdgeCreationEditPolicy#checkCommand(org.eclipse.gef.commands.Command)
** Generated **

getSourceTargetData

protected SourceTargetData getSourceTargetData(GraphElement source,
                                               GraphElement target)
!! should not be called !!

See Also:
org.topcased.modeler.edit.policies.AbstractEdgeCreationEditPolicy#getSourceTargetData(org.topcased.modeler.di.model.GraphElement, org.topcased.modeler.di.model.GraphElement)
** Generated **

getSourceTargetData

protected SourceTargetData getSourceTargetData(GraphEdge edge)
Retrieve the SourceTargetData corresponding to the type (depending on the MessageSort property) of Message that is created

Parameters:
edge - the edge associated with the Message
Returns:
the SourceTargetData that contains all needed informations about the connection that is about to be created.

getConnectionCreateCommand

protected org.eclipse.gef.commands.Command getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest request)
Handle the various type (depending on the MessageSort property) of the Message

See Also:
GraphicalNodeEditPolicy.getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest)

getConnectionCompleteCommand

protected org.eclipse.gef.commands.Command getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest request)
Handle the various type of message

See Also:
GraphicalNodeEditPolicy.getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest)

checkReconnectSource

protected boolean checkReconnectSource(GraphNode source,
                                       GraphEdge edge)
Check if the source can be reconnected

Parameters:
source - the source of the edge
edge - the edge to reconnect
Returns:
true if the source can be reconnected

checkReconnectTarget

protected boolean checkReconnectTarget(GraphNode target,
                                       GraphEdge edge)
Check if the target can be reconnected

Parameters:
target - the target of the edge
edge - the edge to reconnect
Returns:
true if the target can be reconnected

getReconnectSourceCommand

protected org.eclipse.gef.commands.Command getReconnectSourceCommand(org.eclipse.gef.requests.ReconnectRequest request)
See Also:
GraphicalNodeEditPolicy.getReconnectSourceCommand(org.eclipse.gef.requests.ReconnectRequest)

getReconnectTargetCommand

protected org.eclipse.gef.commands.Command getReconnectTargetCommand(org.eclipse.gef.requests.ReconnectRequest request)
See Also:
GraphicalNodeEditPolicy.getReconnectTargetCommand(org.eclipse.gef.requests.ReconnectRequest)

getFeedbackHelper

protected org.eclipse.gef.editpolicies.FeedbackHelper getFeedbackHelper(org.eclipse.gef.requests.CreateConnectionRequest request)
See Also:
GraphicalNodeEditPolicy.getFeedbackHelper(org.eclipse.gef.requests.CreateConnectionRequest)

UML

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