示例#1
0
 public void solutionEventsOpened()
 {
     try
     {
         JiraServerModel.Instance.clear();
         JiraServerModel.Instance.load(applicationObject.Solution.Globals);
         RecentlyViewedIssuesModel.Instance.load(applicationObject.Globals, applicationObject.Solution.FullName);
         JiraCustomFilter.load(applicationObject.Globals, applicationObject.Solution.FullName);
         createJiraWindow();
         IssueDetailsWindow.Instance.Solution = applicationObject.Solution;
     }
     catch (Exception e)
     {
         Debug.WriteLine(e);
     }
 }
示例#2
0
        public int OnAfterOpenSolution(object pUnkReserved, int fNewSolution)
        {
            PlvsLogger.log("SolutionEventSink.OnAfterOpenSolution()");
            try {
                GlobalSettings.checkFirstRun();

                JiraServerModel.Instance.clear();
                JiraServerModel.Instance.load();
                BambooServerModel.Instance.clear();
                BambooServerModel.Instance.load();
                RecentlyViewedIssuesModel.Instance.load();
                JiraCustomFilter.load();

                DTE dte = (DTE)Package.GetGlobalService(typeof(DTE));
                PlvsUtils.Dte = dte;

                ToolWindowManager.Instance.AtlassianWindow = createAtlassianWindow();

                AtlassianPanel.Instance.reinitialize(dte, package);

                ToolWindowManager.Instance.IssueDetailsWindow = createIssueDetailsWindow();
                ToolWindowManager.Instance.BuildDetailsWindow = createBuildDetailsWindow();

                IssueDetailsWindow.Instance.Solution = dte.Solution;
                BuildDetailsWindow.Instance.Solution = dte.Solution;

                JiraEditorLinkManager.OnSolutionOpened();
                Autoupdate.Instance.initialize();
            }
            catch (Exception e) {
                Debug.WriteLine(e);
                new ExceptionViewer("Failed to initialize JIRA tool windows", e).ShowDialog();
            }

            return(VSConstants.S_OK);
        }