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 Gomez
Messages: 22
Registered: October 2010
Junior Member
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 Goubet
Messages: 1625
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 http://eclipsemde.blogspot.com/2010/04/ocl-tips-and-tricks.html .

Does that help?

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


Current Time: Thu Sep 18 23:58:24 GMT 2014

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

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