Exemple #1
0
        /// <summary>
        /// Execute Ananlyer engine with given name
        /// </summary>
        /// <param name="strEngineName">Name of analyer engine to execute.</param>
        public static void DoAnalyze(string strEngineName)
        {
            System.Console.WriteLine("Analyzing " + strEngineName);
            World.GetInstance().SetWorldPaths(strEngineName);
            IAnalyzerEngine analyzer = InvokeAnalyzerEngine(strEngineName);

            analyzer.Analyze();
        }
Exemple #2
0
        public AnalyzerViewModel(IAnalyzerEngine analyzerEngine)
        {
            _analyzerEngine = analyzerEngine;
            var componentModel = (IComponentModel)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SComponentModel));

            _workspace = componentModel.GetService <VisualStudioWorkspace>();
            _workspace.WorkspaceChanged += Workspace_WorkspaceChanged;
        }