public CommandArgs(CommandID commandId, VsHierarchy hierarchy, NodeViewModel node, IntPtr variantIn, IntPtr variantOut) {
   Hierarchy = hierarchy;
   CommandId = commandId;
   Node = node;
   VariantIn = variantIn;
   VariantOut = variantOut;
 }
Ejemplo n.º 2
0
 public VsHierarchy CreateHierarchy() {
   var result = new VsHierarchy(_serviceProvider, _vsGlyphService, _uiThread);
   foreach (var handler in _commandHandlers) {
     result.AddCommandHandler(handler);
   }
   return result;
 }
Ejemplo n.º 3
0
 public CommandArgs(CommandID commandId, VsHierarchy hierarchy, NodeViewModel node, IntPtr variantIn, IntPtr variantOut)
 {
     Hierarchy  = hierarchy;
     CommandId  = commandId;
     Node       = node;
     VariantIn  = variantIn;
     VariantOut = variantOut;
 }
Ejemplo n.º 4
0
 public VsHierarchyLogger(VsHierarchy vsHierarchy) {
   _vsHierarchy = vsHierarchy;
   //Enabled = true;
   //LogHierarchyActivity = true;
   //LogPropertyIdActivity = true;
   //LogPropteryGuidActivity = true;
   //LogCommandTargetActivity = true;
   //LogNodeChangesActivity2 = true;
 }
Ejemplo n.º 5
0
 public VsHierarchyLogger(VsHierarchy vsHierarchy)
 {
     _vsHierarchy = vsHierarchy;
     //Enabled = true;
     //LogHierarchyActivity = true;
     //LogPropertyIdActivity = true;
     //LogPropteryGuidActivity = true;
     //LogCommandTargetActivity = true;
     //LogNodeChangesActivity2 = true;
 }
Ejemplo n.º 6
0
        public VsHierarchy CreateHierarchy()
        {
            var result = new VsHierarchy(_serviceProvider, _vsGlyphService, _dispatchThread);

            foreach (var handler in _commandHandlers)
            {
                result.AddCommandHandler(handler);
            }
            return(result);
        }
Ejemplo n.º 7
0
 public IncrementalHierarchyBuilder(
     INodeTemplateFactory nodeTemplateFactory,
     VsHierarchy hierarchy,
     FileSystemTree fileSystemTree,
     IImageSourceFactory imageSourceFactory)
 {
     _templateFactory    = nodeTemplateFactory;
     _hierarchy          = hierarchy;
     _oldNodes           = hierarchy.Nodes;
     _fileSystemTree     = fileSystemTree;
     _imageSourceFactory = imageSourceFactory;
 }
Ejemplo n.º 8
0
        public VsHierarchy CreateHierarchy()
        {
            var result = new VsHierarchy(_serviceProvider, _vsGlyphService, _imageSourceFactory, _nodeTemplateFactory,
                                         _nodeViewModelLoader, _dispatchThread);

            foreach (var handler in _commandHandlers)
            {
                result.AddCommandHandler(handler);
            }

            return(result);
        }
        private static string GetHierarchyRootPath(VsHierarchy hierarchy)
        {
            var rootNode = hierarchy.Nodes.RootNode;

            if (PathHelpers.IsAbsolutePath(rootNode.Name))
            {
                return(rootNode.Name);
            }
            else
            {
                Debug.Assert(rootNode.Children.Count > 0);
                return(rootNode.Children[0].FullPath);
            }
        }
Ejemplo n.º 10
0
 public IncrementalHierarchyBuilder(
     INodeTemplateFactory nodeTemplateFactory,
     VsHierarchy hierarchy,
     FullPath projectPath,
     int treeVersion,
     INodeViewModelLoader nodeViewModelLoader,
     IImageSourceFactory imageSourceFactory)
 {
     _templateFactory     = nodeTemplateFactory;
     _hierarchy           = hierarchy;
     _oldNodes            = hierarchy.Nodes;
     _projectPath         = projectPath;
     _treeVersion         = treeVersion;
     _nodeViewModelLoader = nodeViewModelLoader;
     _imageSourceFactory  = imageSourceFactory;
 }
Ejemplo n.º 11
0
 private void OpenDocument(VsHierarchy hierarchy, NodeViewModel node, bool openWith = false)
 {
     Logger.WrapActionInvocation(
         () => {
         if (!_fileSystem.FileExists(new FullPath(node.FullPathString)))
         {
             return;
         }
         if (openWith)
         {
             _openDocumentHelper.OpenDocumentWith(node.FullPathString, hierarchy, node.ItemId, view => null);
         }
         else
         {
             _openDocumentHelper.OpenDocument(node.FullPathString, view => null);
         }
     });
 }
 private static string GetHierarchyRootPath(VsHierarchy hierarchy) {
   var rootNode = hierarchy.Nodes.RootNode;
   if (PathHelpers.IsAbsolutePath(rootNode.Name)) {
     return rootNode.Name;
   } else {
     Debug.Assert(rootNode.Children.Count > 0);
     return rootNode.Children[0].FullPath;
   }
 }
 private void OpenDocument(VsHierarchy hierarchy, NodeViewModel node, bool openWith = false) {
   Logger.WrapActionInvocation(
     () => {
       if (!_fileSystem.FileExists(new FullPath(node.FullPath)))
         return;
       if (openWith)
         _openDocumentHelper.OpenDocumentWith(node.FullPath, hierarchy, node.ItemId, view => null);
       else
         _openDocumentHelper.OpenDocument(node.FullPath, view => null);
     });
 }