Visibility of new editor part [message #1732835] |
Fri, 20 May 2016 11:13  |
Eclipse User |
|
|
|
Hi
I have a part descriptor for an editor which extends jface TextEditor
In my OpenHandler I do
@Execute
public void execute(Shell shell){
FileDialog dialog = new FileDialog(shell);
String fileName = dialog.open();
if (fileName.endsWith(".lxml")) {
MPart part = partService.createPart("uk.co.xbundle.scopist.application.partdescriptor.lxmleditor");
part.setLabel(fileName);
MPartStack editorStack = (MPartStack) modelService.find("uk.co.xbundle.scopist.application.partstack.editors", app);
editorStack.getChildren().add(part);
partService.showPart(part, PartState.ACTIVATE);
}
}
The editor initializes via its constructor, the tab panel appears, but the editor is not visible within the tab.
Any ideas as to why this should be?
Thanks
Robert
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03439 seconds