Пример #1
0
        internal bool EA_OnPreDeleteAttribute(EA.Repository Repository, EA.EventProperties Info)
        {
            if (!initialConnectionAvailable)
            {
                return(true);
            }

            EA.Attribute        attribute = Repository.GetAttributeByID(int.Parse((string)Info.Get(0).Value));
            DeleteElementChange change    = new DeleteElementChange();

            change.elementType = ElementType.PACKAGE;
            change.internalID  = attribute.AttributeGUID;
            change.name        = attribute.Name;
            return(sendObject(change));
            //return sendEvent(Repository, Info);
        }
Пример #2
0
        internal bool EA_OnPreDeleteConnector(EA.Repository Repository, EA.EventProperties Info)
        {
            if (!initialConnectionAvailable)
            {
                return(true);
            }

            EA.Connector        connector = Repository.GetConnectorByID(int.Parse((string)Info.Get(0).Value));
            DeleteElementChange change    = new DeleteElementChange();

            change.elementType = ElementType.CONNECTOR;
            change.internalID  = connector.ConnectorGUID;
            change.name        = connector.Name;
            return(sendObject(change));
            //return sendEvent(Repository, Info);
        }
Пример #3
0
        internal bool EA_OnPreDeleteMethod(EA.Repository Repository, EA.EventProperties Info)
        {
            if (!initialConnectionAvailable)
            {
                return(true);
            }

            EA.Method           method = Repository.GetMethodByID(int.Parse((string)Info.Get(0).Value));
            DeleteElementChange change = new DeleteElementChange();

            change.elementType = ElementType.METHOD;
            change.internalID  = method.MethodGUID;
            change.name        = method.Name;
            return(sendObject(change));
            //return sendEvent(Repository, Info);
        }
Пример #4
0
        internal bool EA_OnPreDeleteElement(EA.Repository Repository, EA.EventProperties Info)
        {
            if (!initialConnectionAvailable)
            {
                return(true);
            }

            EA.Element          element = Repository.GetElementByID(int.Parse((string)Info.Get(0).Value));
            DeleteElementChange change  = new DeleteElementChange();

            change.elementType = ElementType.ELEMENT;
            change.internalID  = element.ElementGUID;
            change.name        = element.Name;
            return(sendObject(change));
            //return sendEvent(Repository, Info);
        }