|
Re: Open editor in split view by code [message #989748 is a reply to message #989253] |
Fri, 07 December 2012 14:00 |
Eclipse User |
|
|
|
You'll need to use the EModelService. Basically you need to create a new part stack, add your new editor to that stack, and then insert the new part stack to the left or right of the part stack containing the other editor using the model service.
Brian,
|
|
|
Re: Open editor in split view by code [message #991844 is a reply to message #989748] |
Thu, 20 December 2012 10:33 |
Ralph Gerbig Messages: 702 Registered: November 2009 |
Senior Member |
|
|
Hi,
thanks for the reply. I use the following code to try and find an open editor:
EModelService modelService = (EModelService)PlatformUI.getWorkbench().getService(EModelService.class);
MApplication app = (MApplication)PlatformUI.getWorkbench().getService(MApplication.class);
MUIElement uiElement = (MUIElement)modelService.find("id from org.eclipse.ui.editors", app);
This, however, returns a MToolbar instead of an editor. Do you have a plan what goes wrong there?
Ralph
[Updated on: Thu, 20 December 2012 10:34] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04708 seconds