|Re: Does EuGENia support EMF generics? [message #872622 is a reply to message #872125]
||Wed, 16 May 2012 13:33
| Antonio Garcia-Dominguez
Registered: January 2010
In theory, we support anything that Emfatic supports . Eugenia doesn't have any special logic for EMF generics.|
I've tried to set up an example project using generics: I have attached it to this post. I had to add an intermediate EOL transformation to fix the ECore metamodel generated by Emfatic, which didn't have the appropriate type parameters for the Apple and Orange EClass objects.
I have run into issues with the GenModel -> EMF code step in Eugenia as well. For some reason, it's not picking up the type parameters of the GenModel. However, the EMF2Java Ant task and generating the code from the .genmodel manually seem to work, so it must be something in the way we load the GenModel. I'm not sure what it could be, though.
After all these workarounds, everything seems to compile and run just fine, but I can still place an Apple in an OrangeBasket, so there might be something missing. Still, it's a good start.
If you manage to find why we can put Apples in OrangeBaskets, it'd be a great help .
Powered by FUDForum
. Page generated in 0.11766 seconds