public ProjectReferenceUpdater(resharper::JetBrains.ProjectModel.ISolution solution, resharper::JetBrains.Application.ChangeManager changeManager, ResharperThreading threading)
        {
            _solution = solution;
            _changeManager = changeManager;
            _threading = threading;
            _output = new OpenWrapOutput("ReSharper Project Reference Updater");

            _output.Write("Solution opened " + solution.Name);
            _thread = new System.Threading.Thread(LoadAssemblies) { Name = "OpenWrap assembly change listener" };


            _thread.Start();
            _changeManager.Changed += HandleChanges;
        }
Exemplo n.º 2
0
        public ProjectReferenceUpdater(resharper::JetBrains.ProjectModel.ISolution solution, resharper::JetBrains.Application.ChangeManager changeManager, ResharperThreading threading)
        {
            _solution      = solution;
            _changeManager = changeManager;
            _threading     = threading;
            _output        = new OpenWrapOutput("ReSharper Project Reference Updater");

            _output.Write("Solution opened " + solution.Name);
            _thread = new System.Threading.Thread(LoadAssemblies)
            {
                Name = "OpenWrap assembly change listener"
            };


            _thread.Start();
            _changeManager.Changed += HandleChanges;
        }
Exemplo n.º 3
0
        public TestRunner(ResharperThreading threading,
                          resharper::JetBrains.ActionManagement.ActionManager actionManager,
                          resharper::JetBrains.ReSharper.Daemon.SolutionAnalysis.SolutionAnalysisManager saManager,
                          resharper::JetBrains.ProjectModel.ISolution solution)
        {
            _threading = threading;
            _actionManager = actionManager;
            _saManager = saManager;

            _dte = (DTE2)SiteManager.GetGlobalService<DTE>();
            _output = new OpenWrapOutput();
            var output = (OutputWindow)_dte.Windows.Item(Constants.vsWindowKindOutput).Object;
            _pane = output.OutputWindowPanes.Add(PluginManager.OUTPUT_RESHARPER_TESTS);
            _debugThread = new System.Threading.Thread(WaitForOutput) { Name = "OpenWrap Test Runner Thread" };
            _debugThread.SetApartmentState(ApartmentState.STA);
            _debugThread.Start();

        }
Exemplo n.º 4
0
        public TestRunner(ResharperThreading threading,
                          resharper::JetBrains.ActionManagement.ActionManager actionManager,
                          resharper::JetBrains.ReSharper.Daemon.SolutionAnalysis.SolutionAnalysisManager saManager,
                          resharper::JetBrains.ProjectModel.ISolution solution)
        {
            _threading     = threading;
            _actionManager = actionManager;
            _saManager     = saManager;

            _dte    = (DTE2)SiteManager.GetGlobalService <DTE>();
            _output = new OpenWrapOutput();
            var output = (OutputWindow)_dte.Windows.Item(Constants.vsWindowKindOutput).Object;

            _pane        = output.OutputWindowPanes.Add(PluginManager.OUTPUT_RESHARPER_TESTS);
            _debugThread = new System.Threading.Thread(WaitForOutput)
            {
                Name = "OpenWrap Test Runner Thread"
            };
            _debugThread.SetApartmentState(ApartmentState.STA);
            _debugThread.Start();
        }
Exemplo n.º 5
0
        public PluginManager()
        {
            _dte = (DTE2)SiteManager.GetGlobalService<DTE>();
            _output = new OpenWrapOutput("Resharper Plugin Manager");
            _output.Write("Loaded ({0}).", GetType().Assembly.GetName().Version);

#if !v600 && !v610 && !v710
            _threading = new LegacyShellThreading();
#else
            _host = resharper::JetBrains.VsIntegration.Application.JetVisualStudioHost.GetOrCreateHost((Microsoft.VisualStudio.OLE.Interop.IServiceProvider)_dte);
            var resolvedObj = _host.Environment.Container.ResolveDynamic(typeof(ResharperThreading));
            if (resolvedObj != null)
                _threading = (ResharperThreading)resolvedObj.Instance;
#endif
            if (_threading == null)
            {
                _output.Write("Threading not found, the plugin manager will not initialize.");
                return;
            }
            _threading.Run("Loading plugins...", StartDetection);

        }
Exemplo n.º 6
0
        public PluginManager()
        {
            _dte    = (DTE2)SiteManager.GetGlobalService <DTE>();
            _output = new OpenWrapOutput("Resharper Plugin Manager");
            _output.Write("Loaded ({0}).", GetType().Assembly.GetName().Version);

#if !v600
            _threading = new LegacyShellThreading();
#else
            _host = resharper::JetBrains.VsIntegration.Application.JetVisualStudioHost.GetOrCreateHost((Microsoft.VisualStudio.OLE.Interop.IServiceProvider)_dte);
            var resolvedObj = _host.Environment.Container.ResolveDynamic(typeof(ResharperThreading));
            if (resolvedObj != null)
            {
                _threading = (ResharperThreading)resolvedObj.Instance;
            }
#endif
            if (_threading == null)
            {
                _output.Write("Threading not found, the plugin manager will not initialize.");
                return;
            }
            _threading.Run("Loading plugins...", StartDetection);
        }