|
|
|
@ -154,6 +154,8 @@ namespace ICSharpCode.SharpDevelop.Sda
@@ -154,6 +154,8 @@ namespace ICSharpCode.SharpDevelop.Sda
|
|
|
|
|
LoggingService.Info("Initializing workbench..."); |
|
|
|
|
wbc.InitializeWorkbench(); |
|
|
|
|
|
|
|
|
|
RunWorkbenchInitializedCommands(); |
|
|
|
|
|
|
|
|
|
LoggingService.Info("Starting workbench..."); |
|
|
|
|
Exception exception = null; |
|
|
|
|
// finally start the workbench.
|
|
|
|
@ -192,6 +194,18 @@ namespace ICSharpCode.SharpDevelop.Sda
@@ -192,6 +194,18 @@ namespace ICSharpCode.SharpDevelop.Sda
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void RunWorkbenchInitializedCommands() |
|
|
|
|
{ |
|
|
|
|
foreach (ICommand command in AddInTree.BuildItems<ICommand>("/Workspace/AutostartAfterWorkbenchInitialized", null, false)) { |
|
|
|
|
try { |
|
|
|
|
command.Run(); |
|
|
|
|
} catch (Exception ex) { |
|
|
|
|
// allow startup to continue if some commands fail
|
|
|
|
|
MessageService.ShowException(ex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public List<Document> OpenDocuments { |
|
|
|
|