Notes on Use of the Eclipse Graphical Modeling Framework
Overview
The diagram below shows an overview of GMF implementation.

GMF Implementation Process
- Create an ecore domain model and generate code via the normal EMF process.
- (Optional) To render the
.ecore model with the editor and create the .ecore_diagram file, right-click .ecore and select Initialize ecore_diagram diagram file* from the menu.
- Use the Graphical Definition Model wizard (accessed via New->Other...->Graphical Modeling Framework->Simple Graphical Definition Model) to create the graphical definition model,
*.gmfgraph.
- (Optional) In the tree editor, right click the
*.gmfgraph root and select Load resource... Then select any desired figure galleries (e.g., platform:/plugin/org.eclipse.gmf.graphdef/models/stateDiagram.gmfgraph.
- Use the Tooling Definition Model wizard (accessed via New->Other...->Graphical Modeling Framework->Simple Tooling Definition Model) to create the tooling definition model,
*.gmftool.
- Use the Guide Mapping Model Creation wizard (accessed via New->Other...->Graphical Modeling Framework->Guide Mapping Model Creation) to create the mapping definition model,
*.gmfmap.
- Right click the mapping model and select
Create generator model... to create the GMF generator model, *.gmfgen.
- Right click the
*.gmfgen and select 'Generate diagram code' to generate the diagram editor plugin code.
Customizing the Graphical Definition and Regenerating Diagram Code
- Make the desired changes to the Graphical Model.