SysML

org.topcased.modeler.sysml.parametricdiagram.policies
Class ConnectorEdgeCreationEditPolicy

java.lang.Object
  extended by AbstractEdgeCreationEditPolicy
      extended by org.topcased.modeler.sysml.parametricdiagram.policies.ConnectorEdgeCreationEditPolicy

public class ConnectorEdgeCreationEditPolicy
extends AbstractEdgeCreationEditPolicy

Connector edge creation

** Generated **

Constructor Summary
ConnectorEdgeCreationEditPolicy()
           
 
Method Summary
protected  boolean arePropertiesCompatible(org.eclipse.uml2.uml.Property p1, org.eclipse.uml2.uml.Property p2)
          Verify if two properties are compatible - The two properties must be of the same kind - If the two properties are flow ports, they must be compatible
protected  boolean checkCommand(org.eclipse.gef.commands.Command command)
           
protected  boolean checkEdge(GraphEdge edge)
           
protected  boolean checkSource(GraphElement source)
           
protected  boolean checkTargetForSource(GraphElement source, GraphElement target)
           
protected  CreateTypedEdgeCommand createCommand(org.eclipse.gef.EditDomain domain, GraphEdge edge, GraphElement source)
           
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

ConnectorEdgeCreationEditPolicy

public ConnectorEdgeCreationEditPolicy()
Method Detail

createCommand

protected CreateTypedEdgeCommand createCommand(org.eclipse.gef.EditDomain domain,
                                               GraphEdge edge,
                                               GraphElement source)

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)

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

checkTargetForSource

protected boolean checkTargetForSource(GraphElement source,
                                       GraphElement target)

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

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)

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

arePropertiesCompatible

protected boolean arePropertiesCompatible(org.eclipse.uml2.uml.Property p1,
                                          org.eclipse.uml2.uml.Property p2)
Verify if two properties are compatible - The two properties must be of the same kind - If the two properties are flow ports, they must be compatible

Parameters:
p1 - the first property
p2 - the second property
Returns:
true if the properties are compatible

SysML

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