public void MoveTo(IToolWindowGroup destGroup, IToolWindowContent content) { if (destGroup == null) { throw new ArgumentNullException(nameof(destGroup)); } if (content == null) { throw new ArgumentNullException(nameof(content)); } var impl = GetTabContentImpl(content); Debug.Assert(impl != null); if (impl == null) { throw new InvalidOperationException(); } if (destGroup == this) { return; } var destGroupImpl = destGroup as ToolWindowGroup; if (destGroupImpl == null) { throw new InvalidOperationException(); } impl.PrepareMove(); Close(impl); impl = new TabContentImpl(destGroupImpl, content); impl.PrepareMove(); destGroupImpl.TabGroup.Add(impl); }
public void MoveTo(IToolWindowGroup destGroup, ToolWindowContent content) { if (destGroup == null) throw new ArgumentNullException(nameof(destGroup)); if (content == null) throw new ArgumentNullException(nameof(content)); var impl = GetTabContentImpl(content); Debug.Assert(impl != null); if (impl == null) throw new InvalidOperationException(); if (destGroup == this) return; var destGroupImpl = destGroup as ToolWindowGroup; if (destGroupImpl == null) throw new InvalidOperationException(); impl.PrepareMove(); Close(impl); impl = new TabContentImpl(destGroupImpl, content); impl.PrepareMove(); destGroupImpl.TabGroup.Add(impl); }
public void Close(TabContentImpl impl) => TabGroup.Close(impl);
public void SetFocus(TabContentImpl impl) => TabGroup.SetFocus(impl);