Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] EEnum access from a module
[Acceleo] EEnum access from a module [message #699030] Wed, 20 July 2011 17:11 Go to next message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Hi everybody!!

I'm using Acceleo to M2T. I'm trying to compare a chosen value in my model and a literal from a EEnum from my MM ecore.

How can I access to my defined "EEnum" from my template module if my module input type is the root EClass of my MM?

My EEnum and my EClass are in the same EPackage and I use EEnum to give a "Type" to an attribute of one of my EClass in my MM.

Thanks for your help!!
Re: [Acceleo] EEnum access from a module [message #699254 is a reply to message #699030] Thu, 21 July 2011 08:11 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1901
Registered: July 2009
Senior Member
Hi Carlos,

This is one of the things that is "not so obvious" in OCL; I has outlined how to compare EEnum literals on .

Does that help?

Laurent Goubet
Previous Topic:Help/Doc reference for "file" directive
Next Topic:[ACCELEO] How to make Acceleo to use my model?
Goto Forum:

Current Time: Tue Mar 21 20:15:54 GMT 2023

Powered by FUDForum. Page generated in 0.01607 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top