Programmatically launch editor window side-by-side [message #209119] |
Sat, 11 February 2006 18:08 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 138 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.02875 seconds