Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » programmatically re-arrange the editors inside the editors view
programmatically re-arrange the editors inside the editors view [message #296120] Thu, 15 December 2005 07:23 Go to next message
Eclipse UserFriend
Originally posted by: ReplyToNewsgroup.abc.com

How do I programmatically re-arrange the editors inside the editors view
(i.e. after two editors are open - place one editor to the left and the
other to the right). This can be done inside the actual IDE.

Thanks.
Re: programmatically re-arrange the editors inside the editors view [message #296250 is a reply to message #296120] Mon, 19 December 2005 08:30 Go to previous messageGo to next message
Eclipse UserFriend
You mean re-arrange their tabs? You can't do that programmatically (in
my workspace, it doesn't make sense since I only have one tab).

You can make an editor active (tab highlighted, contents visible) by
using the IWorkbenchPage#activate(...) method.

Later,
PW
Re: programmatically re-arrange the editors inside the editors view [message #296441 is a reply to message #296250] Thu, 22 December 2005 03:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ReplyToNewsgroup.abc.com

I want to be able to open two editors and place them next to eachother
programmatically. In Eclipse 3.1 you can re-arrange the editors next to each
other on the left and right side (for example for comparing two files). You
can also place two editors top and bottom or four editors one in each corner

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:do5r45$qom$1@utils.eclipse.org...
> You mean re-arrange their tabs? You can't do that programmatically (in
> my workspace, it doesn't make sense since I only have one tab).
>
> You can make an editor active (tab highlighted, contents visible) by
> using the IWorkbenchPage#activate(...) method.
>
> Later,
> PW
Re: programmatically re-arrange the editors inside the editors view [message #296788 is a reply to message #296441] Tue, 03 January 2006 09:10 Go to previous message
Eclipse UserFriend
Alex K wrote:
> I want to be able to open two editors and place them next to eachother
> programmatically. In Eclipse 3.1 you can re-arrange the editors next to each
> other on the left and right side (for example for comparing two files). You
> can also place two editors top and bottom or four editors one in each corner

Ah, move open editors to new editor stacks ...

I've seen examples of programmitically doing this in some tests, but
IIRC it was accomplished using internal APIs and faking a drag and drop.

The tests are in the org.eclipse.ui.tests plugin, available from CVS.

Later,
PW
Previous Topic:Junit NoClassDefError when attempting to access a Static
Next Topic:Outline View
Goto Forum:
  


Current Time: Sat Jul 26 20:02:08 EDT 2025

Powered by FUDForum. Page generated in 0.03756 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top