Menu

GmfNotes

Tom Swain
Attachments
figuredescprops.png (50125 bytes)
figuregallery.png (46394 bytes)
gmf.png (35978 bytes)
graphmodel.png (8803 bytes)

Notes on Use of the Eclipse Graphical Modeling Framework

Overview

The diagram below shows an overview of GMF implementation.

GMF Implementation Process

GMF Implementation Process

  1. Create an ecore domain model and generate code via the normal EMF process.
  2. (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.
  3. Use the Graphical Definition Model wizard (accessed via New->Other...->Graphical Modeling Framework->Simple Graphical Definition Model) to create the graphical definition model, *.gmfgraph.
  4. (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.
  5. Use the Tooling Definition Model wizard (accessed via New->Other...->Graphical Modeling Framework->Simple Tooling Definition Model) to create the tooling definition model, *.gmftool.
  6. 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.
  7. Right click the mapping model and select Create generator model... to create the GMF generator model, *.gmfgen.
  8. Right click the *.gmfgen and select 'Generate diagram code' to generate the diagram editor plugin code.

Customizing the Graphical Definition and Regenerating Diagram Code

  1. Make the desired changes to the Graphical Model.

Related

ESTA' Wiki: GraphModelEdit

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →