Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Programmatically launch editor window side-by-side
Programmatically launch editor window side-by-side [message #209119] Sat, 11 February 2006 18:08 Go to next message
Eclipse UserFriend
Originally posted by: helicopterjg.yahoo.com

Is there any way to programmatically create a new editor window in a
plug-in, such that the new window is automatically laid out side-by-side
with the original editor window (see attachment)?

I think it has something to do with creating a new editor stack (but how?)


IEditorInput inputEditor = new FileEditorInput(javaFile);
String id =
MyPlugin.getDefault().getWorkbench().getEditorRegistry().get DefaultEditor(javaFileName).getId();

// First, get the active page, or make this the active page if there are no
active pages
IWorkbenchPage activePage =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
activePage.openEditor(inputEditor,id); <~~ how do we control where the
editor opens?

Thanks!

Jennifer



  • Attachment: ss.gif
    (Size: 9.67KB, Downloaded 123 times)
Re: Programmatically launch editor window side-by-side [message #209139 is a reply to message #209119] Sat, 11 February 2006 20:17 Go to previous message
venkataramana m is currently offline venkataramana mFriend
Messages: 86
Registered: July 2009
Member
I think no transparent API exists to lay the editors in a desired way. Some alternatives could be to simulate manual layout by executing those actions programmatically. So look for Eclipse internal actions (if open, thats cool) which will allow you to layout editors in a desired layout.

Thanks
Venkat
Previous Topic:Delete in context menu won't work
Next Topic:relocating connection labels.
Goto Forum:
  


Current Time: Thu Dec 01 13:56:17 GMT 2022

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

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

Back to the top