Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Mapping to JvmEnumerationType
Mapping to JvmEnumerationType [message #757297] Thu, 17 November 2011 15:03 Go to next message
Benoit Lelandais is currently offline Benoit LelandaisFriend
Messages: 19
Registered: November 2011
Junior Member
Hi,

I try to write the xtend file MyModelJvmModelInferrer. I have to map an enumeration and its literals. I use the JvmBuilder method 'toEnumerationType' to map the enumeration but I don't find how to map the literals.

Can you help me ?

Thanks for your answer.
Re: Mapping to JvmEnumerationType [message #758307 is a reply to message #757297] Tue, 22 November 2011 16:55 Go to previous messageGo to next message
Benoit Lelandais is currently offline Benoit LelandaisFriend
Messages: 19
Registered: November 2011
Junior Member
Hi,

Do I have to create my own type builder inheriting from JvmTypesBuilder to define a toEnumerationLiteral method ?

Thanks for your answer.
Re: Mapping to JvmEnumerationType [message #758335 is a reply to message #758307] Tue, 22 November 2011 19:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13425
Registered: July 2009
Senior Member
Hi,

since JvmModelGenerator does not support JvmEnumerationTypes it does not matter if you can create literals or not - there will be nothing generated anyway. feel free to file a bug against JvmModelGenerator and JvmTypesBuilder

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Mapping to JvmEnumerationType [message #758406 is a reply to message #758335] Wed, 23 November 2011 07:23 Go to previous message
Benoit Lelandais is currently offline Benoit LelandaisFriend
Messages: 19
Registered: November 2011
Junior Member
Thanks Christian.
Bug 364538
Previous Topic:DomainCompiler in Xtext 2.1
Next Topic:dsl plugin in another eclipse app
Goto Forum:
  


Current Time: Tue Apr 07 21:42:03 GMT 2020

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

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

Back to the top