|[EGL] How to access to enums of a model [message #989233]
||Wed, 05 December 2012 05:15
| Lili R
Registered: April 2012
I am new with EGL and I want to do a model-to-text transformation (model in EMF to text). But I have the follow issue.
I have some enums and I don't know how to access to them in the ELG file and I want to show in the text generated which are the enums that the user uses in her model.
I read in the Epsilon book (ELG section), that in the dynamic sections you can use EOL code. And I saw that EOL provides the # operator to access enumerations literal. Furthermore, I used the isDefined operation (for any type).But that I realize is the this operation gives us if the object is defined in the metamodel, and that I need is if the object is defined or used in the model.
Thanks in advance!
Powered by FUDForum
. Page generated in 0.01659 seconds