Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364538

Summary: Support of JvmEnumerationTypes in JvmGenerator
Product: [Modeling] TMF Reporter: Benoit Lelandais <benoit.lelandais>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: christian.dietrich.opensource, jan, jeeeyul, sven.efftinge
Version: unspecifiedFlags: sven.efftinge: juno+
Target Milestone: M6   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
xtend file extending the JvmModelGenerator to create Enums none

Description Benoit Lelandais CLA 2011-11-23 02:19:35 EST
Build Identifier: 20110916-0149

The JvmTypesBuilder does not have a 'toEnumerationLiteral' method (it has the 'to Enumerationtype'). Moreover, JvmModelGenerator doesn't support JvmEnumerationTypes.

Reproducible: Always
Comment 1 Ingo Boegemann CLA 2012-02-22 07:11:32 EST
Created attachment 211397 [details]
xtend file extending the JvmModelGenerator to create Enums

xtend file extending the JvmModelGenerator to create Enums
Comment 2 Ingo Boegemann CLA 2012-02-22 07:13:39 EST
Comment on attachment 211397 [details]
xtend file extending the JvmModelGenerator to create Enums

I started a thread on the same issue ( http://www.eclipse.org/forums/index.php/t/296248/ )

I since written an extension to the JvmModelGenerator for my own use to overcome this problem. (See attachment)
Please feel free to use in whatever manner!
Regards
Ingo
Comment 3 Sven Efftinge CLA 2012-02-22 08:37:02 EST
Cool, thanks for the contribution!
Comment 4 Jan Koehnlein CLA 2012-02-28 12:24:46 EST
Took the patch as inspiration, but the API has changed so I implemented it from scratch. Thanks anyway.

Pushed to MASTER.
Comment 5 Jan Koehnlein CLA 2012-02-28 12:30:36 EST
Constructor args on enum literals will be tracked by bug 372771.
Comment 6 Jan Koehnlein CLA 2012-03-06 09:59:16 EST
*** Bug 373322 has been marked as a duplicate of this bug. ***
Comment 7 Karsten Thoms CLA 2017-09-19 17:09:24 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 8 Karsten Thoms CLA 2017-09-19 17:21:18 EDT
Closing all bugs that were set to RESOLVED before Neon.0