/// <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(); }
public AnalyzerViewModel(IAnalyzerEngine analyzerEngine) { _analyzerEngine = analyzerEngine; var componentModel = (IComponentModel)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SComponentModel)); _workspace = componentModel.GetService <VisualStudioWorkspace>(); _workspace.WorkspaceChanged += Workspace_WorkspaceChanged; }