In this tutorial, we will see how to rapidly get a graphical representation of an EMF model with emf2gv.
This tutorial is based on a School / Classroom / Student model provided by the EMF Tools Samples feature which is available on the update site of the EMF Tools Project (see the installation page for more details).
MyProject
MyProject
and click Add/Remove EMF Validation Nature (this action enables the EMF Validation Builder that comes with emf2gv ; please refere to the corresponding documentation for more details)In the problems view, you should get the following entries generated by EMF Validation Builder (these problems are included in the sample model file in order to show the validation support provided by emf2gv) :
Right click on the sample.school file, select Run as > Emf To Graphviz Transformation
After a few seconds, a new file named example.school.jpg
may appear in the files view and be automatically shown :