C# Class nHydrate.Dsl.InheritanceConnectAction.InheritanceConnectionTypeBase

Inheritance: DslDiagrams::ConnectionType
Show file Open project: nHydrate/nHydrate

Public Methods

Method Description
CanCreateConnection ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement, string &connectionWarning ) : bool

Called by the base ConnectAction class to determine if the given shapes can be connected.

This implementation delegates calls to the ConnectionBuilder EntityInheritsEntityBuilder.

CreateConnection ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams paintFeedbackArgs ) : void

Called by the base ConnectAction class to create the underlying relationship.

This implementation delegates calls to the ConnectionBuilder EntityInheritsEntityBuilder.

IsValidSourceAndTarget ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement ) : bool

Called by the base ConnectAction class to ask whether the given source and target are valid.

Always return true here, to give CanCreateConnection a chance to decide.

Protected Methods

Method Description
InheritanceConnectionTypeBase ( )

Constructs a new the InheritanceConnectionType with the given ConnectionBuilder.

Private Methods

Method Description
RemovePassThroughShapes ( global::Microsoft.VisualStudio.Modeling.Diagrams shape ) : DslDiagrams::ShapeElement

Method Details

CanCreateConnection() public method

Called by the base ConnectAction class to determine if the given shapes can be connected.
This implementation delegates calls to the ConnectionBuilder EntityInheritsEntityBuilder.
public CanCreateConnection ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement, string &connectionWarning ) : bool
sourceShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
targetShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
connectionWarning string
return bool

CreateConnection() public method

Called by the base ConnectAction class to create the underlying relationship.
This implementation delegates calls to the ConnectionBuilder EntityInheritsEntityBuilder.
public CreateConnection ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams paintFeedbackArgs ) : void
sourceShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
targetShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
paintFeedbackArgs global::Microsoft.VisualStudio.Modeling.Diagrams
return void

InheritanceConnectionTypeBase() protected method

Constructs a new the InheritanceConnectionType with the given ConnectionBuilder.

IsValidSourceAndTarget() public method

Called by the base ConnectAction class to ask whether the given source and target are valid.
Always return true here, to give CanCreateConnection a chance to decide.
public IsValidSourceAndTarget ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement ) : bool
sourceShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
targetShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
return bool