TSF.UmlToolingFramework.Wrappers.EA.ConnectorWrapper.addRelatedElement C# (CSharp) Method

addRelatedElement() public method

adds a related element to this connector. This operation checks if the source or target is empty and then adds the related element to the empty spot. If none of the two are empty then the target is being replaced
public addRelatedElement ( TSF.UmlToolingFramework.UML relatedElement ) : void
relatedElement TSF.UmlToolingFramework.UML
return void
        public void addRelatedElement(UML.Classes.Kernel.Element relatedElement)
        {
            if (this.WrappedConnector.ClientID <= 0 )
            {
            this.source = relatedElement;
            }
            else
            {
            this.target = relatedElement;
            }
        }