Skip to main content



      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 13:11 Go to next message
Eclipse UserFriend
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 04:11 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 20:19:38 EDT 2025

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

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

Back to the top