Beispiel #1
0
 public IToolWindowGroupManager Create(ToolWindowGroupManagerOptions options)
 {
     var newOptions = Convert(options);
     var ctxMenuHelper = new InitializeContextMenuHelper(newOptions.TabGroupGuid);
     if (newOptions.TabGroupGuid != Guid.Empty)
         newOptions.InitializeContextMenu = ctxMenuHelper.InitializeContextMenu;
     var mgr = new ToolWindowGroupManager(tabManager.Create(newOptions));
     ctxMenuHelper.ToolWindowGroupManager = mgr;
     return mgr;
 }
Beispiel #2
0
        public IToolWindowGroupManager Create(ToolWindowGroupManagerOptions options)
        {
            var newOptions    = Convert(options);
            var ctxMenuHelper = new InitializeContextMenuHelper(newOptions.TabGroupGuid);

            if (newOptions.TabGroupGuid != Guid.Empty)
            {
                newOptions.InitializeContextMenu = ctxMenuHelper.InitializeContextMenu;
            }
            var mgr = new ToolWindowGroupManager(tabManager.Create(newOptions));

            ctxMenuHelper.ToolWindowGroupManager = mgr;
            return(mgr);
        }