Adding GMF editor to multipage editor [message #1661674] |
Mon, 09 March 2015 18:47 |
|
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 19:17] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03088 seconds