public override void Execute(IMenuItemContext context) { var tab = fileTabManager.GetOrCreateActiveTab(); tab.Show(new AboutScreenFileTabContent(appWindow, extensionManager, aboutContentType), null, null); fileTabManager.SetFocus(tab); }
public void Activate(TabVM vm) { if (vm == null) { return; } LastActivated = vm; fileTabManager.SetFocus(vm.Tab); }
internal static void OpenNewTabInternal(IFileTabManager fileTabManager, bool clone = true) { var activeTab = fileTabManager.ActiveTab; if (activeTab == null) { return; } var newTab = fileTabManager.OpenEmptyTab(); if (clone) { newTab.Show(activeTab.Content.Clone(), activeTab.UIContext.Serialize(), null); fileTabManager.SetFocus(newTab); } }