protected override void Initialize() { base.Initialize(); PaketOutputPane.SetServiceProvider(this); var tracker = new ActiveGraphNodeTracker(this); var menuCommandService = (OleMenuCommandService)GetService(typeof(IMenuCommandService)); commandService = new PaketMenuCommandService(this, menuCommandService, tracker); commandService.Register(); PaketErrorPane.SetServiceProvider(this); SolutionExplorerExtensions.SetServiceProvider(this); StatusBarService.SetServiceProvider(this); packageRestorer = new PackageRestorer( new AutoRestorer( new OutputPaneRestorer( new WaitDialogRestorer( new ErrorReportRestorer( new PaketRestorer() ), (IVsThreadedWaitDialogFactory) GetService(typeof(SVsThreadedWaitDialogFactory)))) , new PaketSettings(new ShellSettingsManager(this)) )); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); commandService.Unregister(); PaketErrorPane.Unregister(); }