private ModelElement GetSourceRolePlayerForLinkMappedByElementPropertyHasTypeConnector(ElementPropertyHasTypeConnector connector) { // Likewise, the source role player is the "owning" Configuration Element. return(connector.ParentShape.ModelElement); }
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); }