Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] XMLResource: EReference with kind=element broken(Acceleo seems to have resolution probs with EReferences persistet as XML elements)
[Acceleo] XMLResource: EReference with kind=element broken [message #1431082] Thu, 25 September 2014 07:16 Go to next message
Uwe Ritzmann is currently offline Uwe RitzmannFriend
Messages: 26
Registered: July 2009
Junior Member

made a small metamodel with Root, Person, Team classes. Team references its members as non-containment EReference to person.

Choose XML as resource. Without further changes everything is generated fine and acceleo can process the generated model instances.

Made a duplicate metamodel, but decorated all attributes and references of Person and Team with ExtendedMetaData "kind=element", as I want an element-based XML serialization.

Generation runs fine, EMF model, edit, editor work fine as well.
Acceleo fails to follow the EReferences from team objects to person objects.

Tested with vanilla Kepler and Luna.

I guess that is a bug, isn't it?

What would be needed for bugzilla? "ecore", "genmodel", model and "mtl" files?

Best Regards

Re: [Acceleo] XMLResource: EReference with kind=element broken [message #1435379 is a reply to message #1431082] Wed, 01 October 2014 12:16 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member


Does the duplicate metamodel have a different nsUri?


Stephane Begaudeau, Obeo
Previous Topic:No file overwrite when Acceleo generation by ant
Next Topic:Eclipse OCL version of Acceleo
Goto Forum:

Current Time: Thu Feb 29 13:04:24 GMT 2024

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

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

Back to the top