Eclipse GMF

The GMF Runtime has a set of frameworks to help the development of Eclipse graphical editors:

I am having a problem using GMF as described on this page.

Eclipse UML2 Tools and Graphical Modelling Framework (GMF)

 

eclipse gmf diagram

The data for this diagram is held in these files:

Generating EMF Model

Create Project

Start Eclipse and make sure any existing projects are closed.

Menu -> File -> New -> Project

eclipse gmf

select 'new CMF Project' the next

eclipse gmf project name

Enter

press 'Next' and in next page enable 'dashboard'

then 'Finish'

File -> New -> Package

give it name: mathModel

eclipse emf

Create the following interfaces

Right click on model folder

new -> other -> emf models

eclipse gmf

Change the folder to "model"

filename = mathModel.genmodel

 

eclipse

select this in the package explorer

eclipse

and right click on 'Es' in es.genmodel and click on 'generate all'

this generates:

Generate Model

Generate the generator model file from annotated java:

Menu -> File -> New -> Eclipse Modeling Framework -> EMF Model

This is explained in more detail on this page.

Create 'Graphical def Model'

gmfgraph

or

derive it from

eclipse gmf

eclipse

Create 'Tooling Definition Model'

select the file and right click on 'tool registary' select pallette

eclipse gmf

eclipse

 

eclipse

Create 'Mapping Definition Model'

 

eclipse

 

eclipse

 

eclipse

 

eclipse gmf

 

 


metadata block
see also:

Good tutorials:

Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.