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

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

flag flag flag flag flag flagPractical Eclipse Rich Client Platform Projects

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

 

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

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