Browse Source

Run Autostart before InitializeWorkbench.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@714 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
24a3024a26
  1. 22
      src/Main/StartUp/Project/SharpDevelopMain.cs

22
src/Main/StartUp/Project/SharpDevelopMain.cs

@ -237,26 +237,16 @@ namespace ICSharpCode.SharpDevelop @@ -237,26 +237,16 @@ namespace ICSharpCode.SharpDevelop
LoggingService.Info("Loading AddInTree...");
AddInTree.Load();
// run workspace autostart commands
LoggingService.Info("Running autostart commands...");
foreach (ICommand command in AddInTree.BuildItems("/Workspace/Autostart", null, false)) {
command.Run();
}
LoggingService.Info("Initializing workbench...");
// .NET base autostarts
// taken out of the add-in tree for performance reasons (every tick in startup counts)
WorkbenchSingleton.InitializeWorkbench();
// run workspace autostart commands
try {
LoggingService.Info("Running autostart commands...");
foreach (ICommand command in AddInTree.BuildItems("/Workspace/Autostart", null, false)) {
command.Run();
}
} catch (XmlException e) {
LoggingService.Error("Could not load XML", e);
MessageBox.Show("Could not load XML :" + Environment.NewLine + e.Message);
return;
} finally {
if (SplashScreenForm.SplashScreen != null) {
SplashScreenForm.SplashScreen.Dispose();
}
}
}
}
}

Loading…
Cancel
Save