I created an UML diagram using MagicDraw and exported it as Eclipse UML2 (3.x). I added those generated files to my Eclipse project.
Now I've created a file called Example.egl:
[% for (c in Class.all) { %]
[%=c.name%]
[% } %]
To execute it, I did the following: Run configurations > EGL Template > Name: Example
In Models' tab > Add > EMF Model > Name: Example / Model file: Example.uml and the Meta-Model is put by default (as I unchecked the meta-model is file-based option).
But when I press Run, it gives me an Type 'Class' not found error.