We have to mix the power of Eugenia with the power of GMF. It is the best way I have found to do it:
- Right click file.ecore - Eugenia - Generate GMF Tool, graph and map models.
- Right click file.ecore - Eugenia - Generate EMF GenModel
- Open file.genmodel - Right click file_editor - Generate All (maybe it is necessary to select RCP in the properties of the genmodel file previously)
- Right click file.gmfmap - Create generator model - Select the option Generate RCP Application when available
- Right click file.gmfgen - Generate diagram code
And in my particular case and because I'm using .svg images so I get an error, to solve it I have to:
- Open InEditPart.java - Find the line: import org.eclipse.gmf.runtime.lite.svg.SVGFigure; - Click the error of the line - Fix Project Setup
- Previously I had to install (Help - Install new software) GMF Tooling Experimental SDK to be able to use svg images
I hope it helps to somebody!
Carlos