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);
        }
Beispiel #2
0
		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);
		}
Beispiel #3
0
		public void Close(TabContentImpl impl) => TabGroup.Close(impl);
Beispiel #4
0
		public void SetFocus(TabContentImpl impl) => TabGroup.SetFocus(impl);
 public void SetFocus(TabContentImpl impl) => TabGroup.SetFocus(impl);
 public void Close(TabContentImpl impl) => TabGroup.Close(impl);