Single node inside the tree of the libraries in the object browser or class view.
Inheritance: IVsSimpleObjectList2, IVsNavInfoNode
Beispiel #1
0
        public LibraryNode(LibraryNode node)
        {
            _capabilities  = node._capabilities;
            _contextMenuID = node._contextMenuID;
            _displayData   = node._displayData;
            _name          = node._name;
            _tooltip       = node._tooltip;
            _type          = node._type;
            _children      = new List <LibraryNode>();

            foreach (LibraryNode child in node._children)
            {
                _children.Add(child);
            }

            _clipboardFormats = new List <VSOBJCLIPFORMAT>();

            foreach (VSOBJCLIPFORMAT format in node._clipboardFormats)
            {
                _clipboardFormats.Add(format);
            }

            _filteredView = new Dictionary <LibraryNodeType, LibraryNode>();
            _updateCount  = node._updateCount;
        }
Beispiel #2
0
        internal void RemoveNode(LibraryNode node)
        {
            lock (_children)
            {
                _children.Remove(node);
            }

            _updateCount++;
        }
Beispiel #3
0
        internal void AddNode(LibraryNode node)
        {
            lock (_children)
            {
                _children.Add(node);
            }

            _updateCount++;
        }
Beispiel #4
0
		internal void RemoveNode(LibraryNode node)
		{
			lock (_children)
			{
				_children.Remove(node);
			}

			_updateCount++;
		}
Beispiel #5
0
		internal void AddNode(LibraryNode node)
		{
			lock (_children)
			{
				_children.Add(node);
			}

			_updateCount++;
		}
Beispiel #6
0
		public LibraryNode(LibraryNode node)
		{
			_capabilities  = node._capabilities;
			_contextMenuID = node._contextMenuID;
			_displayData   = node._displayData;
			_name		  = node._name;
			_tooltip	   = node._tooltip;
			_type		  = node._type;
			_children	  = new List<LibraryNode>();

			foreach (LibraryNode child in node._children)
				_children.Add(child);

			_clipboardFormats = new List<VSOBJCLIPFORMAT>();

			foreach (VSOBJCLIPFORMAT format in node._clipboardFormats)
				_clipboardFormats.Add(format);

			_filteredView = new Dictionary<LibraryNodeType, LibraryNode>();
			_updateCount  = node._updateCount;
		}