Generate text on Annotation [message #1843921] |
Tue, 24 August 2021 10:00  |
Eclipse User |
|
|
|
Hi,
i want to generate text on a Eclass witch contains attributes, some attributes have Annotation.
Acceleo 2 template was that :
<%script type="ecore.EClass" name="scTrier"%>
<%if (eAttributes[eAnnotations[source=="fce"].details[key=="trier"]]){%>
<%for (eAttributes[eAnnotations[source=="fce"].details[key=="trier"]].sep(",")){%><%name%><%}%>
<%}%>
This template "scTrier" Acceleo 2 returns
att1,att2
where att1 have a Annotation 'fce 'with a key 'trier'.
and nothing if any attribute of a Eclass contains this Annotation and this key.
How can i do the same thing on acceleo 3 ?
Thanks
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04471 seconds