protected override void Initialize() { base.Initialize(); var exceptionDialog = new ExceptionDialog(); try { var menuCommandService = (IMenuCommandService) GetService(typeof (IMenuCommandService)); var errorListProvider = new ErrorListProvider(ServiceProvider.GlobalProvider); var currentProjectFinder = new CurrentProjectFinder(); var contentsFinder = new ContentsFinder(); var configureMenuCallback = new ConfigureMenuCallback(currentProjectFinder, contentsFinder, exceptionDialog); var messageDisplayer = new MessageDisplayer(errorListProvider); var disableMenuConfigure = new DisableMenuConfigure(currentProjectFinder, messageDisplayer, exceptionDialog); var containsFodyChecker = new ContainsFodyChecker(); var menuStatusChecker = new MenuStatusChecker(currentProjectFinder, exceptionDialog, containsFodyChecker); new MenuConfigure(configureMenuCallback, disableMenuConfigure, menuCommandService, menuStatusChecker).RegisterMenus(); var taskFileReplacer = new TaskFileReplacer(messageDisplayer, contentsFinder); var taskFileProcessor = new TaskFileProcessor(taskFileReplacer, messageDisplayer); var msBuildKiller = new MSBuildKiller(); new SolutionEvents(taskFileProcessor, exceptionDialog, msBuildKiller).RegisterSolutionEvents(); new TaskFileReplacer(messageDisplayer, contentsFinder).CheckForFilesToUpdate(); } catch (Exception exception) { exceptionDialog.HandleException(exception); } }
protected override void Initialize() { base.Initialize(); var exceptionDialog = new ExceptionDialog(); try { var menuCommandService = (IMenuCommandService)GetService(typeof(IMenuCommandService)); var errorListProvider = new ErrorListProvider(ServiceProvider.GlobalProvider); var currentProjectFinder = new CurrentProjectFinder(); var contentsFinder = new ContentsFinder(); var configureMenuCallback = new ConfigureMenuCallback(currentProjectFinder, contentsFinder, exceptionDialog); var messageDisplayer = new MessageDisplayer(errorListProvider); var disableMenuConfigure = new DisableMenuConfigure(currentProjectFinder, messageDisplayer, exceptionDialog); var containsFodyChecker = new ContainsFodyChecker(); var menuStatusChecker = new MenuStatusChecker(currentProjectFinder, exceptionDialog, containsFodyChecker); new MenuConfigure(configureMenuCallback, disableMenuConfigure, menuCommandService, menuStatusChecker).RegisterMenus(); var taskFileReplacer = new TaskFileReplacer(messageDisplayer, contentsFinder); var taskFileProcessor = new TaskFileProcessor(taskFileReplacer, messageDisplayer); var msBuildKiller = new MSBuildKiller(); new SolutionEvents(taskFileProcessor, exceptionDialog, msBuildKiller).RegisterSolutionEvents(); new TaskFileReplacer(messageDisplayer, contentsFinder).CheckForFilesToUpdate(); } catch (Exception exception) { exceptionDialog.HandleException(exception); } }
public SolutionEvents(TaskFileProcessor taskFileProcessor, AttributeFileProcessor attributeFileProcessor, ExceptionDialog exceptionDialog, ErrorDisplayer errorDisplayer, AllProjectFinder allProjectFinder, MSBuildKiller msBuildKiller) { this.taskFileProcessor = taskFileProcessor; this.attributeFileProcessor = attributeFileProcessor; this.exceptionDialog = exceptionDialog; this.errorDisplayer = errorDisplayer; this.allProjectFinder = allProjectFinder; this.msBuildKiller = msBuildKiller; }
public SolutionEvents(TaskFileProcessor taskFileProcessor, ExceptionDialog exceptionDialog, MSBuildKiller msBuildKiller) { this.taskFileProcessor = taskFileProcessor; this.exceptionDialog = exceptionDialog; this.msBuildKiller = msBuildKiller; }