Hello everyone, I have been following Integrating EMF and GMF Generated Editors tutorial. What I am trying to achieve is opening a GMF diagram with a multipage editor.
The multipage editor already supports a tab ( StructuredTextEditor ) for editing xml.
Now in the second tab I would like to link my GMF editor. I have written this piece of code in order to add the second page. However in the addPage method I get the following error Quote:The method addPage(IEditorPart, IEditorInput) in the type MultiPageEditorPart is not applicable for the arguments (SxmDiagramEditor, IEditorInput)
void createPage1() {
try {
diagram = new SxmDiagramEditor();
int index = addPage(diagram, getEditorInput());
setPageText(index, "Diagram");
} catch (PartInitException e) {
ErrorDialog.openError(
getSite().getShell(),
"Error creating nested text editor",
null,
e.getStatus());
}
}
How can I deal with this?
[Updated on: Thu, 16 April 2015 15:17] by Moderator