Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364538 - Support of JvmEnumerationTypes in JvmGenerator
Summary: Support of JvmEnumerationTypes in JvmGenerator
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 373322 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-23 02:19 EST by Benoit Lelandais CLA
Modified: 2017-09-19 17:21 EDT (History)
4 users (show)

See Also:
sven.efftinge: juno+


Attachments
xtend file extending the JvmModelGenerator to create Enums (2.41 KB, application/octet-stream)
2012-02-22 07:11 EST, Ingo Boegemann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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