Наследование: DataDictionary.Namable
Пример #1
0
        public override void visit(NameSpace obj, bool visitSubNodes)
        {
            obj.setX(0);
            obj.setY(0);
            obj.setWidth(0);
            obj.setHeight(0);
            obj.setHidden(false);
            obj.setPinned(false);

            base.visit(obj, visitSubNodes);
        }
 public virtual void visit(NameSpace obj)
 {
     visit(obj, true);
 }
 public virtual void visit(NameSpace obj, bool visitSubNodes)
 {
     visit ((Namable) obj, false);
     if (visitSubNodes){
     IXmlBBase[] Subs  = acceptor.subElements((IXmlBBase)obj);
     if (Subs != null){
     for (int i=0; i<Subs.Length; i++) {
       dispatch(Subs[i], true);
     } // If
     } // If
     }
 }
 public void insertNameSpaces(int idx, NameSpace el,Lock aLock)
 {
     __setDirty(true);
       allNameSpaces().Insert (idx, el);
     NotifyControllers(aLock);
 }
 public void copyTo(NameSpace other)
 {
     base.copyTo(other);
     other.aNameSpaces = aNameSpaces;
     other.aNameSpaceRefs = aNameSpaceRefs;
     other.aRanges = aRanges;
     other.aEnumerations = aEnumerations;
     other.aStructures = aStructures;
     other.aCollections = aCollections;
     other.aStateMachines = aStateMachines;
     other.aFunctions = aFunctions;
     other.aProcedures = aProcedures;
     other.aVariables = aVariables;
     other.aRules = aRules;
     other.aWidth = aWidth;
     other.aHeight = aHeight;
     other.aX = aX;
     other.aY = aY;
     other.aHidden = aHidden;
     other.aPinned = aPinned;
     other.aComment = aComment;
 }
 public void appendNameSpaces(Lock aLock,NameSpace el)
 {
     __setDirty(true);
       el.__setDirty(true);
       allNameSpaces().Add(el);
       acceptor.connectSon (this, el);
     NotifyControllers(aLock);
 }
 public void copyTo(NameSpace other)
 {
     base.copyTo(other);
     other.aNameSpaces = aNameSpaces;
     other.aNameSpaceRefs = aNameSpaceRefs;
     other.aRanges = aRanges;
     other.aEnumerations = aEnumerations;
     other.aStructures = aStructures;
     other.aCollections = aCollections;
     other.aStateMachines = aStateMachines;
     other.aFunctions = aFunctions;
     other.aProcedures = aProcedures;
     other.aVariables = aVariables;
     other.aRules = aRules;
 }
            public override void visit(NameSpace obj, bool visitSubNodes)
            {
                base.visit(obj, visitSubNodes);

                Types.NameSpace nameSpace = (Types.NameSpace) obj;

                if (_beforeSave)
                {
                    nameSpace.ClearTempFiles();
                    nameSpace.allNameSpaceRefs().Clear();

                    if (nameSpace.allNameSpaces() != null)
                    {
                        foreach (Types.NameSpace subNameSpace in nameSpace.allNameSpaces())
                        {
                            nameSpace.appendNameSpaceRefs(referenceNameSpace(nameSpace, subNameSpace));
                        }
                    }
                    nameSpace.StoreInfo();
                }
                else
                {
                    nameSpace.RestoreInfo();
                }
            }