TSF.UmlToolingFramework.Wrappers.EA.Model.openProperties C# (CSharp) Method

openProperties() public method

opens the properties dialog for this item
public openProperties ( TSF.UmlToolingFramework.UML item ) : void
item TSF.UmlToolingFramework.UML the item to open the properties dialog for
return void
        public void openProperties(UML.Extended.UMLItem item)
        {
            //get the type string
            string typeString = string.Empty;
            int itemID = 0;
            if (item is Package)
            {
            typeString = "PKG";
            itemID = ((Package)item).packageID;
            }
            else if (item is ElementWrapper)
            {
            typeString = "ELM";
            itemID = ((ElementWrapper)item).id;
            }
            else if (item is Attribute)
            {
            typeString = "ATT";
            itemID = ((Attribute)item).id;
            }
            else if (item is Operation)
            {
            typeString = "OP";
            itemID = ((Operation)item).id;
            }
            else if (item is Diagram)
            {
            typeString = "DGM";
            itemID = ((Diagram)item).DiagramID;
            }
            // TODO: figure out how to open the properties dialog for a connector.
            //		else if (item is ConnectorWrapper)
            //		{
            //			//typeString = "CON";
            //			typeString = "MSG";
            //			itemID = ((ConnectorWrapper)item).id;
            //		}
            //open the actual dialog
            if (this.mainEAWindow != null
            && typeString != string.Empty
            && itemID != 0)
            {
            string ret = this.wrappedModel.CustomCommand("CFormCommandHelper", "ProcessCommand", "Dlg=" + typeString + ";id=" + itemID.ToString() + ";hwnd=" + this.mainEAWindow.Handle);
            }
        }