Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding GMF editor to multipage editor
Adding GMF editor to multipage editor [message #1661674] Mon, 09 March 2015 18:47 Go to next message
Nikos Margaritis is currently offline Nikos MargaritisFriend
Messages: 65
Registered: September 2014
Member

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

Re: Adding GMF editor to multipage editor [message #1661724 is a reply to message #1661674] Mon, 09 March 2015 19:18 Go to previous message
Nikos Margaritis is currently offline Nikos MargaritisFriend
Messages: 65
Registered: September 2014
Member

Never mind I solved the problem.

[Updated on: Sat, 11 April 2015 12:06]

Report message to a moderator

Previous Topic:How to recreate transient model and view objects?
Next Topic:Generate a palette
Goto Forum:
  


Current Time: Tue Oct 17 22:34:27 GMT 2017

Powered by FUDForum. Page generated in 0.02608 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software