public SourceExplorerHierarchyController(
      ISynchronizationContextProvider synchronizationContextProvider,
      IFileSystemTreeSource fileSystemTreeSource,
      IVisualStudioPackageProvider visualStudioPackageProvider,
      IVsGlyphService vsGlyphService,
      IImageSourceFactory imageSourceFactory,
      IOpenDocumentHelper openDocumentHelper,
      IFileSystem fileSystem,
      IClipboard clipboard,
      IWindowsExplorer windowsExplorer,
      IUIRequestProcessor uiRequestProcessor,
      IEventBus eventBus,
      IGlobalSettingsProvider globalSettingsProvider,
      IDelayedOperationProcessor delayedOperationProcessor,
      IUIThread uiThread) {
      _synchronizationContextProvider = synchronizationContextProvider;
      _fileSystemTreeSource = fileSystemTreeSource;
      _visualStudioPackageProvider = visualStudioPackageProvider;
      _imageSourceFactory = imageSourceFactory;
      _openDocumentHelper = openDocumentHelper;
      _fileSystem = fileSystem;
      _clipboard = clipboard;
      _windowsExplorer = windowsExplorer;
      _uiRequestProcessor = uiRequestProcessor;
      _eventBus = eventBus;
      _globalSettingsProvider = globalSettingsProvider;
      _delayedOperationProcessor = delayedOperationProcessor;
      _uiThread = uiThread;
//      _hierarchy = new VsHierarchy(
      _hierarchy = new VsHierarchyAggregate(
        visualStudioPackageProvider.Package.ServiceProvider,
        vsGlyphService,
        _uiThread);
      _nodeTemplateFactory = new NodeTemplateFactory(vsGlyphService, imageSourceFactory);
    }
Example #2
0
 public VsHierarchy(IServiceProvider serviceProvider, IVsGlyphService vsGlyphService,
                    IImageSourceFactory imageSourceFactory, NodeTemplateFactory nodeTemplateFactory,
                    INodeViewModelLoader nodeViewModelLoader, IDispatchThread dispatchThread)
 {
     _serviceProvider     = serviceProvider;
     _vsGlyphService      = vsGlyphService;
     _imageSourceFactory  = imageSourceFactory;
     _nodeTemplateFactory = nodeTemplateFactory;
     _nodeViewModelLoader = nodeViewModelLoader;
     _threadId            = dispatchThread.ManagedThreadId;
     _logger = new VsHierarchyLogger(this);
     _nodes  = new VsHierarchyNodes();
 }
 public VsHierarchyAggregate(IServiceProvider serviceProvider,
                             IVsGlyphService vsGlyphService,
                             IImageSourceFactory imageSourceFactory,
                             NodeTemplateFactory nodeTemplateFactory,
                             INodeViewModelLoader nodeViewModelLoader,
                             IDispatchThread dispatchThread)
 {
     _serviceProvider     = serviceProvider;
     _vsGlyphService      = vsGlyphService;
     _imageSourceFactory  = imageSourceFactory;
     _nodeTemplateFactory = nodeTemplateFactory;
     _nodeViewModelLoader = nodeViewModelLoader;
     _dispatchThread      = dispatchThread;
     _version             = 1;
 }
Example #4
0
 public SourceExplorerHierarchyController(
     ISynchronizationContextProvider synchronizationContextProvider,
     IFileSystemTreeSource fileSystemTreeSource,
     IVisualStudioPackageProvider visualStudioPackageProvider,
     IVsGlyphService vsGlyphService,
     IImageSourceFactory imageSourceFactory,
     IOpenDocumentHelper openDocumentHelper,
     IFileSystem fileSystem,
     IClipboard clipboard,
     IWindowsExplorer windowsExplorer,
     IDispatchThreadServerRequestExecutor dispatchThreadServerRequestExecutor,
     ITypedRequestProcessProxy typedRequestProcessProxy,
     IDispatchThreadEventBus eventBus,
     IGlobalSettingsProvider globalSettingsProvider,
     IDelayedOperationExecutor delayedOperationExecutor,
     IDispatchThread dispatchThread,
     IShowServerInfoService showServerInfoService)
 {
     _synchronizationContextProvider = synchronizationContextProvider;
     _fileSystemTreeSource           = fileSystemTreeSource;
     _visualStudioPackageProvider    = visualStudioPackageProvider;
     _imageSourceFactory             = imageSourceFactory;
     _openDocumentHelper             = openDocumentHelper;
     _fileSystem      = fileSystem;
     _clipboard       = clipboard;
     _windowsExplorer = windowsExplorer;
     _dispatchThreadServerRequestExecutor = dispatchThreadServerRequestExecutor;
     _eventBus = eventBus;
     _globalSettingsProvider   = globalSettingsProvider;
     _delayedOperationExecutor = delayedOperationExecutor;
     _showServerInfoService    = showServerInfoService;
     _nodeTemplateFactory      = new NodeTemplateFactory(vsGlyphService, imageSourceFactory);
     _nodeViewModelLoader      = new NodeViewModelLoader(typedRequestProcessProxy);
     _hierarchy = new VsHierarchyAggregate(
         visualStudioPackageProvider.Package.ServiceProvider,
         vsGlyphService,
         _imageSourceFactory,
         _nodeTemplateFactory,
         _nodeViewModelLoader,
         dispatchThread);
 }
        public SourceExplorerHierarchyController(
            ISynchronizationContextProvider synchronizationContextProvider,
            IFileSystemTreeSource fileSystemTreeSource,
            IVisualStudioPackageProvider visualStudioPackageProvider,
            IVsGlyphService vsGlyphService,
            IImageSourceFactory imageSourceFactory,
            IOpenDocumentHelper openDocumentHelper,
            IFileSystem fileSystem,
            IClipboard clipboard,
            IWindowsExplorer windowsExplorer,
            IUIRequestProcessor uiRequestProcessor,
            IEventBus eventBus,
            IGlobalSettingsProvider globalSettingsProvider,
            IDelayedOperationProcessor delayedOperationProcessor,
            IUIThread uiThread)
        {
            _synchronizationContextProvider = synchronizationContextProvider;
            _fileSystemTreeSource           = fileSystemTreeSource;
            _visualStudioPackageProvider    = visualStudioPackageProvider;
            _imageSourceFactory             = imageSourceFactory;
            _openDocumentHelper             = openDocumentHelper;
            _fileSystem                = fileSystem;
            _clipboard                 = clipboard;
            _windowsExplorer           = windowsExplorer;
            _uiRequestProcessor        = uiRequestProcessor;
            _eventBus                  = eventBus;
            _globalSettingsProvider    = globalSettingsProvider;
            _delayedOperationProcessor = delayedOperationProcessor;
            _uiThread                  = uiThread;
//      _hierarchy = new VsHierarchy(
            _hierarchy = new VsHierarchyAggregate(
                visualStudioPackageProvider.Package.ServiceProvider,
                vsGlyphService,
                _uiThread);
            _nodeTemplateFactory = new NodeTemplateFactory(vsGlyphService, imageSourceFactory);
        }