The diagram below shows an overview of GMF implementation.

.ecore model with the editor and create the .ecore_diagram file, right-click .ecore and select Initialize ecore_diagram diagram file* from the menu.*.gmfgraph.*.gmfgraph root and select Load resource... Then select any desired figure galleries (e.g., platform:/plugin/org.eclipse.gmf.graphdef/models/stateDiagram.gmfgraph.*.gmftool.*.gmfmap.Create generator model... to create the GMF generator model, *.gmfgen.*.gmfgen and select 'Generate diagram code' to generate the diagram editor plugin code.