|GMF Runtime - Creating an editor manually [message #730384]
||Wed, 28 September 2011 09:38
| Mischa N.
Registered: September 2011
I'm interested in building an editor with GMF Runtime manually.|
The reason is, that we have an own file format, we have to read first with xtext and than want to forward the emf data to the editor for displaying it. So we have no XMI file to display.
We have already a working GEF solution, but now we want to change to GMF. Perhaps we can simply adjust some imports and functions so it works?
Otherwise can someone tell me how to start from the very first? I tried today to start with a simple class extending the DiagramEditorWithFlyOutPalette, analog to the class GraphicalEditorWithFlyoutPalette like it was described for GEF at the end of the tutorial part 3 at vainolo.com. Unfortunately i'm not allowed yet to post the link.
But it doesn't work exactly like that and instead i got a NullPointerException:
It would be fine, if somebody can help me anyway. Thank you in advance!
[Updated on: Wed, 28 September 2011 09:47]
Report message to a moderator
|Re: GMF Runtime - Creating an editor manually [message #730390 is a reply to message #730384]
||Wed, 28 September 2011 09:44
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
On 28/09/2011 11:38, Mischa Nietfeld wrote:|
> I'm interested in building an editor with GMF Runtime manually.
> The reason is, that we have an own file format, we have to read first
> with xtext and than want to forward the emf data to the editor for
> displaying it. So we have no XMI file to display.
GMF (Runtime and Tooling) does not depend at all on how the file is
serialized (XMI, XML, DSL with XText) - except when loading models from
files. They directly rely on EMF.
You could use GMF Tooling to create your editor, and do the necessary
few changes to have your EObjects deserialized correctly according to
your file format. If you do that, please track your progress and share
it with the community, that would be a high-value contribution.
> We have already a working GEF solution, but now we want to change to
> GMF. Perhaps we can simply adjust some imports and functions so it works?
Why does *functionally* make you want to move to GMF ?
Powered by FUDForum
. Page generated in 0.03640 seconds