Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Can i tile editors programmatically?
Can i tile editors programmatically? [message #328745] Tue, 03 June 2008 17:19 Go to next message
Eclipse UserFriend
Originally posted by: clandestinesnehal.gmail.com

Hi All,
Is there a way to tile the eclipse editors programmatically. I know that
this can be done manually using the drag and drop on the workbench.

Any help is highly appreciated.

-Snehal
Re: Can i tile editors programmatically? [message #328834 is a reply to message #328745] Wed, 04 June 2008 17:06 Go to previous messageGo to next message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
Sorry, we don't have API for programmatically arranging views or editors.

I wasn't able to find the corresponding bug(s) but I am sure this has been
asked for already. If you cannot find the enhancement request(s) either,
please file one in bugzilla!

Boris

"Snehal" <clandestinesnehal@gmail.com> wrote in message
news:g23jts$pe7$1@build.eclipse.org...
> Hi All,
> Is there a way to tile the eclipse editors programmatically. I know that
> this can be done manually using the drag and drop on the workbench.
>
> Any help is highly appreciated.
>
> -Snehal
Re: Can i tile editors programmatically? [message #328862 is a reply to message #328745] Thu, 05 June 2008 05:16 Go to previous message
intothephone intothephone is currently offline intothephone intothephoneFriend
Messages: 14
Registered: July 2009
Junior Member
Hope following code could help you:

Move an editorpart to bottom stack:

IEditorPart editor = your editorpart;
WorkbenchPage page = (WorkbenchPage) editor.getSite().getPage();
EditorSashContainer lp = (EditorSashContainer) page.getEditorPresentation().getLayoutPart();
PartPane pane = ((PartSite) editor.getSite()).getPane();
EditorStack topEditorStack = lp.getWorkbookFromID("DefaultEditorWorkbook");
EditorStack bottomEditorStack = EditorStack.newEditorWorkbook(lp, page);
bottomEditorStack.setID(newID);
topEditorStack.remove(pane);
bottomEditorStack.add(pane);
lp.add(bottomEditorStack, IPageLayout.BOTTOM, .5f, topEditorStack);
Previous Topic:How to link editor plugin to RCP
Next Topic:fastview position
Goto Forum:
  


Current Time: Sat Aug 31 23:18:15 GMT 2024

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

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

Back to the top