public LibraryNode(LibraryNode node) { this.capabilities = node.capabilities; this.contextMenuID = node.contextMenuID; this.displayData = node.displayData; this.name = node.name; this.uniquename = node.uniquename; this.tooltip = node.tooltip; this.type = node.type; this.children = new List <LibraryNode>(); foreach (LibraryNode child in node.children) { children.Add(child); } this.clipboardFormats = new List <VSOBJCLIPFORMAT>(); foreach (VSOBJCLIPFORMAT format in node.clipboardFormats) { clipboardFormats.Add(format); } this.filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); this.ownerHierarchy = node.ownerHierarchy; this.fileId = node.fileId; this.sourceSpan = node.sourceSpan; this.CanGoToSource = node.CanGoToSource; this.updateCount = node.updateCount; }
public LibraryNode(string name, LibraryNodeType type, LibraryNodeCapabilities capabilities, CommandID contextMenuID, ModuleId moduleId) { this.capabilities = capabilities; this.contextMenuID = contextMenuID; this.name = name; this.uniquename = name; this.tooltip = name; this.type = type; parent = null; children = new List <LibraryNode>(); clipboardFormats = new List <VSOBJCLIPFORMAT>(); filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); if (moduleId != null) { this.ownerHierarchy = moduleId.Hierarchy; this.fileId = moduleId.ItemID; ownerHierarchy.GetCanonicalName(fileId, out this.path); } sourceSpan = new TextSpan(); if (type == LibraryNodeType.Package) { this.CanGoToSource = false; } else { this.CanGoToSource = true; } if (type == LibraryNodeType.Members) { displayData.Image = (ushort)OMGlyphType.Members; displayData.SelectedImage = displayData.Image; } }
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; }
public SQObjectLibraryNode(LibraryNodeType type, string name) { _altName = name; _capabilities = LibraryNodeCapabilities.None; _displayData = new VSTREEDISPLAYDATA(); _type = LibraryNodeType.Namespaces; _displayData.Image = (ushort)StandardGlyphGroup.GlyphGroupEnum; _displayData.SelectedImage = _displayData.Image; }
public LibraryNode(string name, LibraryNodeType type, LibraryNodeCapabilities capabilities, CommandID contextMenuID) { _capabilities = capabilities; _contextMenuID = contextMenuID; _name = name; _tooltip = name; _type = type; _filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); }
public LibraryNode(LibraryNode node) { _capabilities = node._capabilities; _contextMenuID = node._contextMenuID; _name = node._name; _tooltip = node._tooltip; _type = node._type; Children.AddRange(node.Children); _filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); }
public SQObjectLibraryNode(SQProjectFileNode filenode, SQDeclaration declaration, LibraryNodeCapabilities capabilities) { _filenode = filenode; _filePath = filenode.Url; _declaration = declaration; _capabilities = capabilities; _displayData = new VSTREEDISPLAYDATA(); //if (((VisualStudioWorkspaceImpl)workspace).TryGetImageListAndIndex(_imageService, document.Id, out pData[0].hImageList, out pData[0].Image)) //bool global = _declaration.Parent.Type == SQDeclarationType.File; bool local = _declaration.Parent.Type == SQDeclarationType.Function || _declaration.Parent.Type == SQDeclarationType.Constructor; switch (_declaration.Type) { case SQDeclarationType.Class: _type = LibraryNodeType.Classes; break; case SQDeclarationType.Constructor: case SQDeclarationType.Function: _type = LibraryNodeType.Members; _displayData.Image = (ushort)StandardGlyphGroup.GlyphGroupMethod; break; case SQDeclarationType.Variable: _type = LibraryNodeType.Members; _displayData.Image = (ushort)StandardGlyphGroup.GlyphGroupVariable; break; case SQDeclarationType.Enum: _type = LibraryNodeType.Namespaces; _displayData.Image = (ushort)StandardGlyphGroup.GlyphGroupEnum; break; case SQDeclarationType.EnumData: _type = LibraryNodeType.Members; _displayData.Image = (ushort)StandardGlyphGroup.GlyphGroupEnumMember; break; } // if (local) // _displayData.Image |= (ushort)StandardGlyphItem.GlyphItemPrivate; if (_type == LibraryNodeType.Package) { this.CanGoToSource = false; } else { this.CanGoToSource = true; } //if (_type == LibraryNodeType.Members) { _displayData.SelectedImage = _displayData.Image; } }
public LibraryNode(string name, LibraryNodeType type, LibraryNodeCapabilities capabilities, CommandID contextMenuID) { this.capabilities = capabilities; this.contextMenuID = contextMenuID; this.name = name; this.tooltip = name; this.type = type; children = new List<LibraryNode>(); clipboardFormats = new List<VSOBJCLIPFORMAT>(); filteredView = new Dictionary<LibraryNodeType, LibraryNode>(); }
protected void SetCapabilityFlag(LibraryNodeCapabilities flag, bool value) { if (value) { _capabilities |= flag; } else { _capabilities &= ~flag; } }
public LibraryNode(string name, LibraryNodeType type, LibraryNodeCapabilities capabilities, CommandID contextMenuID) { this.capabilities = capabilities; this.contextMenuID = contextMenuID; this.name = name; this.tooltip = name; this.type = type; children = new List <LibraryNode>(); clipboardFormats = new List <VSOBJCLIPFORMAT>(); filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); }
protected LibraryNode(LibraryNode node, string newFullName) { _capabilities = node._capabilities; _contextMenuID = node._contextMenuID; _name = node._name; _tooltip = node._tooltip; _type = node._type; _fullname = newFullName; Children.AddRange(node.Children); _childrenByName = new Dictionary <string, LibraryNode[]>(node._childrenByName); _filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); }
public LibraryNode(LibraryNode parent, string name, string fullname, LibraryNodeType type, LibraryNodeCapabilities capabilities = LibraryNodeCapabilities.None, CommandID contextMenuID = null) { Debug.Assert(name != null); this.Parent = parent; this.capabilities = capabilities; this.ContextMenuID = contextMenuID; this.Name = name; this.FullName = fullname; this.TooltipText = name; this.NodeType = type; }
public LibraryNode(LibraryNode parent, string name, string fullname, LibraryNodeType type, LibraryNodeCapabilities capabilities = LibraryNodeCapabilities.None, IList <LibraryNode> children = null) : base(children) { Debug.Assert(name != null); _parent = parent; _capabilities = capabilities; _name = name; _fullname = fullname; _tooltip = name; _type = type; _filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); _childrenByName = new Dictionary <string, LibraryNode[]>(); }
public LibraryNode(LibraryNode parent, string name, string fullname, LibraryNodeType type, LibraryNodeCapabilities capabilities, CommandID contextMenuID) { Debug.Assert(name != null); _parent = parent; _capabilities = capabilities; _contextMenuID = contextMenuID; _name = name; _fullname = fullname; _tooltip = name; _type = type; _filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); _childrenByName = new Dictionary <string, LibraryNode[]>(); }
protected LibraryNode(LibraryNode node, string newFullName) { _parent = node._parent; _capabilities = node._capabilities; _name = node._name; _tooltip = node._tooltip; _type = node._type; _fullname = newFullName; foreach (var child in node.Children) { Children.Add(child); } _childrenByName = new Dictionary <string, LibraryNode[]>(node._childrenByName); _filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); }
public LibraryNode(LibraryNode node) { this.capabilities = node.capabilities; this.contextMenuID = node.contextMenuID; this.displayData = node.displayData; this.name = node.name; this.tooltip = node.tooltip; this.type = node.type; this.children = new List<LibraryNode>(); foreach (LibraryNode child in node.children) { children.Add(child); } this.clipboardFormats = new List<VSOBJCLIPFORMAT>(); foreach (VSOBJCLIPFORMAT format in node.clipboardFormats) { clipboardFormats.Add(format); } this.filteredView = new Dictionary<LibraryNodeType, LibraryNode>(); this.updateCount = node.updateCount; }
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; }
public LibraryNode(LibraryNode node) { this.capabilities = node.capabilities; this.contextMenuID = node.contextMenuID; this.displayData = node.displayData; this.name = node.name; this.tooltip = node.tooltip; this.type = node.type; this.visible = node.visible; this.children = new List <LibraryNode>(); foreach (LibraryNode child in node.children) { children.Add(child); } this.clipboardFormats = new List <VSOBJCLIPFORMAT>(); foreach (VSOBJCLIPFORMAT format in node.clipboardFormats) { clipboardFormats.Add(format); } this.filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); this.updateCount = node.updateCount; }
protected void SetCapabilityFlag(LibraryNodeCapabilities flag, bool value) { if (value) { capabilities |= flag; } else { capabilities &= ~flag; } }