示例#1
0
 private ModelElement GetSourceRolePlayerForLinkMappedByElementPropertyHasTypeConnector(ElementPropertyHasTypeConnector connector)
 {
     // Likewise, the source role player is the "owning" Configuration Element.
     return(connector.ParentShape.ModelElement);
 }
示例#2
0
 private NodeShape GetSourceShapeForElementPropertyHasTypeConnector(ElementPropertyHasTypeConnector connector)
 {
     // Jump from the Element Property to its parent shape, i.e. the Configuration Element that contains it.
     // This will make the connection start at shape of the "owning" Configuration Element.
     return((NodeShape)connector.ParentShape);
 }