public LocalModulesNode(NodejsProjectNode root, NodeModulesNode parent, string caption, string virtualName, DependencyType dependencyType)
     : base(root) {
     _parent = parent;
     _caption = caption;
     VirtualName = virtualName;
     PackagesDependencyType = dependencyType;
 }
Beispiel #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);
        }
Beispiel #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;
 }
        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;
            }
        }
Beispiel #5
0
        protected internal override void ProcessReferences()
        {
            base.ProcessReferences();

            if (null == ModulesNode)
            {
                ModulesNode = new NodeModulesNode(this);
                AddChild(ModulesNode);
            }
        }
        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;
            }
        }
Beispiel #7
0
 internal NpmPathProvider(NodeModulesNode owner) {
     _owner = owner;
 }
        protected internal override void ProcessReferences() {
            base.ProcessReferences();

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