Esempio n. 1
0
 private bool IfSolutionOpen()
 {
     if (dte.Solution.IsOpen)
     {
         return(true);
     }
     else
     {
         owp.OutputLine("######## First, you should open your solution or project ##############");
         return(false);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Signals the helper to output that no files were available for analysis.
        /// </summary>
        protected override void NoFilesToAnalyze()
        {
            OutputWindowPane pane = VSWindows.GetInstance(this.ServiceProvider).OutputPane;

            if (pane != null)
            {
                pane.OutputLine(string.Format(
                                    CultureInfo.InvariantCulture, Strings.MiniLogBreak, Strings.NoFilesToAnalyze));
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Signals the helper to output that analysis has begun.
        /// </summary>
        protected override void SignalAnalysisStarted()
        {
            // Write out our header to the output window.
            OutputWindowPane pane = VSWindows.GetInstance(this.ServiceProvider).OutputPane;

            if (pane != null)
            {
                pane.Clear();
                pane.Activate();

                VSWindows.GetInstance(this.ServiceProvider).OutputWindow.Activate();

                pane.OutputLine(string.Format(
                                    CultureInfo.InvariantCulture, Strings.MiniLogBreak, string.Format(CultureInfo.InvariantCulture, Strings.StyleCopStarted, this.VersionNumberMajorMinor, this.VersionNumberFull)));
            }
        }