Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » 2.3.0 M6 JVM generation and Enums
2.3.0 M6 JVM generation and Enums [message #871100] Thu, 10 May 2012 20:22 Go to next message
Jens-Uwe Moeller is currently offline Jens-Uwe MoellerFriend
Messages: 12
Registered: March 2012
Location: Hamburg
Junior Member
Hi,

I tested ENUMs in my grammar using the DomainmodelJvmModelInferrer to generate code. It seems that generation here just allows defining types.

I wanted to define parameters together with the enum types and add some special methods to the enum class as it is possible in Java.

But therefore one would need almost the same complexity as it is available for "toClass" in "toEnumerationType". Having a look at emf.codegen.ecore.genmodel it seems that enums are just the enums and not as complex as in Java.

So my question:
Do you intend to provide more complex enumerations, or do I have to search for a different solution on what I will generate?

Thanks,
Jens
Re: 2.3.0 M6 JVM generation and Enums [message #871176 is a reply to message #871100] Fri, 11 May 2012 09:40 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Hi Jens,

there are some outstanding issues, regarding generation of enums through
the JvmModel :
1) https://bugs.eclipse.org/bugs/show_bug.cgi?id=377004
2) https://bugs.eclipse.org/bugs/show_bug.cgi?id=377002
3) https://bugs.eclipse.org/bugs/show_bug.cgi?id=372771

We are going to fix them very soon, but the fixes will not make it into
the Juno release.

Regards,
Sven

Am 5/10/12 10:22 PM, schrieb Jens-Uwe Moeller:
> Hi,
>
> I tested ENUMs in my grammar using the DomainmodelJvmModelInferrer to
> generate code. It seems that generation here just allows defining types.
> I wanted to define parameters together with the enum types and add some
> special methods to the enum class as it is possible in Java.
> But therefore one would need almost the same complexity as it is
> available for "toClass" in "toEnumerationType". Having a look at
> emf.codegen.ecore.genmodel it seems that enums are just the enums and
> not as complex as in Java.
> So my question:
> Do you intend to provide more complex enumerations, or do I have to
> search for a different solution on what I will generate?
> Thanks,
> Jens


--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Previous Topic:One plugin muliple project
Next Topic:Parsing and generating annotations
Goto Forum:
  


Current Time: Fri Apr 26 07:23:50 GMT 2024

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

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

Back to the top