コード例 #1
0
 public LocalModulesNode(NodejsProjectNode root, NodeModulesNode parent, string caption, string virtualName, DependencyType dependencyType)
     : base(root) {
     _parent = parent;
     _caption = caption;
     VirtualName = virtualName;
     PackagesDependencyType = dependencyType;
 }
コード例 #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                lock (this._idleNodeModulesLock)
                {
                    if (this._idleNodeModulesTimer != null)
                    {
                        this._idleNodeModulesTimer.Dispose();
                    }
                    this._idleNodeModulesTimer = null;
                }

                OnDispose?.Invoke(this, EventArgs.Empty);

                var node = this.ModulesNode;
                if (node != null)
                {
                    RemoveChild(node);
                    node.Dispose();
                }
                this.ModulesNode = null;
            }
            base.Dispose(disposing);
        }
コード例 #3
0
 public LocalModulesNode(NodejsProjectNode root, NodeModulesNode parent, string caption, string virtualName, DependencyType dependencyType)
     : base(root)
 {
     this._parent                = parent;
     this._caption               = caption;
     this.VirtualName            = virtualName;
     this.PackagesDependencyType = dependencyType;
 }
コード例 #4
0
        protected internal override void ProcessReferences() {
            base.ProcessReferences();

            if (null == ModulesNode) {
                ModulesNode = new NodeModulesNode(this);
                AddChild(ModulesNode);
                _idleNodeModulesTimer = new Timer(OnIdleNodeModules);
                ModulesNode.NpmController.FinishedRefresh += NodeModules_FinishedRefresh;
            }
        }
コード例 #5
0
        protected internal override void ProcessReferences()
        {
            base.ProcessReferences();

            if (null == ModulesNode)
            {
                ModulesNode = new NodeModulesNode(this);
                AddChild(ModulesNode);
            }
        }
コード例 #6
0
        protected internal override void ProcessReferences() {
            base.ProcessReferences();

            if (null == ModulesNode) {
                ModulesNode = new NodeModulesNode(this);
                AddChild(ModulesNode);
                _idleNodeModulesTimer = new Timer(OnIdleNodeModules);
                ModulesNode.NpmController.FinishedRefresh += NodeModules_FinishedRefresh;
            }
        }
コード例 #7
0
 internal NpmPathProvider(NodeModulesNode owner) {
     _owner = owner;
 }
コード例 #8
0
        protected internal override void ProcessReferences() {
            base.ProcessReferences();

            if (null == ModulesNode) {
                ModulesNode = new NodeModulesNode(this);
                AddChild(ModulesNode);
            }
        }
コード例 #9
0
 internal NpmPathProvider(NodeModulesNode owner)
 {
     this._owner = owner;
 }
コード例 #10
0
 public GlobalModulesNode(NodejsProjectNode root, NodeModulesNode parent)
     : base(root)
 {
     _parent = parent;
 }
コード例 #11
0
 public GlobalModulesNode(NodejsProjectNode root, NodeModulesNode parent)
     : base(root) {
     _parent = parent;
 }