TabContentImpl CreateNewTab(ITabGroup tabGroup) { var impl = new TabContentImpl(this, fileTabUIContextLocatorCreator.Create(), refFactories); tabGroup.Add(impl); return(impl); }
internal void OnRemoved(TabContentImpl impl) { if (ActiveTabContentImpl == null) { fileTreeView.TreeView.SelectItems(new ITreeNodeData[0]); } }
TabContentImpl CreateNewTab(ITabGroup tabGroup) { var impl = new TabContentImpl(this, fileTabUIContextLocatorProvider.Create(), referenceFileTabContentProviders, defaultFileTabContentProviders); tabGroup.Add(impl); return(impl); }
internal void OnRemoved(TabContentImpl impl) { if (ActiveTabContentImpl == null) { FileTreeView.TreeView.SelectItems(Array.Empty <ITreeNodeData>()); } }
ITabGroup GetTabGroup(TabContentImpl impl) { foreach (var g in TabGroupManager.TabGroups) { if (g.TabContents.Contains(impl)) { return(g); } } return(null); }