/// <inheritdoc /> public void OpenToolWindow(string id, ToolWindow window) { if (id == null) throw new ArgumentNullException("id"); if (window == null) throw new ArgumentNullException("window"); int internalId = GenerateWindowId(id); var pane = (ShellToolWindowPane) shell.ShellPackage.FindToolWindow(typeof(ShellToolWindowPane), internalId, true); if (pane == null) throw new ShellException("Could not create an instance of the Shell tool window pane."); pane.ToolWindowContainer.ToolWindow = window; window.Show(); }
/// <inheritdoc /> public void OpenToolWindow(string id, ToolWindow window) { if (id == null) { throw new ArgumentNullException("id"); } if (window == null) { throw new ArgumentNullException("window"); } int internalId = GenerateWindowId(id); var pane = (ShellToolWindowPane)shell.ShellPackage.FindToolWindow(typeof(ShellToolWindowPane), internalId, true); if (pane == null) { throw new ShellException("Could not create an instance of the Shell tool window pane."); } pane.ToolWindowContainer.ToolWindow = window; window.Show(); }