示例#1
0
        TabContentImpl CreateNewTab(ITabGroup tabGroup)
        {
            var impl = new TabContentImpl(this, fileTabUIContextLocatorCreator.Create(), refFactories);

            tabGroup.Add(impl);
            return(impl);
        }
示例#2
0
 internal void OnRemoved(TabContentImpl impl)
 {
     if (ActiveTabContentImpl == null)
     {
         fileTreeView.TreeView.SelectItems(new ITreeNodeData[0]);
     }
 }
示例#3
0
        TabContentImpl CreateNewTab(ITabGroup tabGroup)
        {
            var impl = new TabContentImpl(this, fileTabUIContextLocatorProvider.Create(), referenceFileTabContentProviders, defaultFileTabContentProviders);

            tabGroup.Add(impl);
            return(impl);
        }
示例#4
0
 internal void OnRemoved(TabContentImpl impl)
 {
     if (ActiveTabContentImpl == null)
     {
         FileTreeView.TreeView.SelectItems(Array.Empty <ITreeNodeData>());
     }
 }
示例#5
0
 ITabGroup GetTabGroup(TabContentImpl impl)
 {
     foreach (var g in TabGroupManager.TabGroups)
     {
         if (g.TabContents.Contains(impl))
         {
             return(g);
         }
     }
     return(null);
 }