depending on how fixed you are on using gmf, you may want to look at graphiti (built on gef).

graphiti is an eclipse-based graphics framework that enables rapid development of state-of-the-art diagram editors for domain models. graphiti can use emf-based domain models very easily but can deal with any java-based objects on the domain side as well.

there is an eclipse labs project for creation of graphiti editors using an xtext dsl, called spray.

this project aims to provide one or more domain specific languages (dsl) to describe visual dsl editors against the graphiti runtime, and provide code generation to create the boilerplate code for realizing the implementation against the graphiti framework. potentially the spray dsl can be used to generate code for other frameworks as well.

you can import your dsl ecore model into spray, and using references to your dsl's types create a graphical editor with relatively little boilerplate. the presentation at codegen 2012 (spraycodegeneration2012.pdf on the google code link above) highlights some of spray's features.

Related Query

More Query from same tag