Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Transformation changes schema
[QVTo] Transformation changes schema [message #660758] Mon, 21 March 2011 13:44 Go to next message
Haffi is currently offline HaffiFriend
Messages: 39
Registered: November 2010

I'm running a transformation on a GMF notation file, as soon as an element is changed the file loses a lot of valuable data. The original header looks like this:
<notation:Diagram xmi:version="2.0" xmlns:xmi="" xmlns:ecore="" xmlns:notation="" xmlns:uml="" xmi:id="_t1tkMFO5EeCshacrw33kcw" type="PapyrusUMLActivityDiagram" name="ACTIV" measurementUnit="Pixel">

And after the transformation it looks like this:
<notation:Diagram xmi:version="2.0" xmlns:xmi="" xmlns:xsi="" xmlns:notation="" xmi:id="_t1tkMFO5EeCshacrw33kcw" type="PapyrusUMLActivityDiagram" name="ACTIV" measurementUnit="Pixel">

So all UML and Ecore references in the model are lost. How can I stop this from happening?
Re: [QVTo] Transformation changes schema [message #661158 is a reply to message #660758] Wed, 23 March 2011 12:09 Go to previous message
Haffi is currently offline HaffiFriend
Messages: 39
Registered: November 2010
I'm still looking into this problem, I can't seem to find any reason for this. The model I'm using is a Papyrus diagram notation which seems to conform to the GMF notation metamodel. In the notation metamodel the View object contains an Element object, but after running a transformation every Element object is deleted from the XML, and the header is changed as stated above.

Might the problem be that the Papyrus notation metamodel is slightly different from the GMF one (which is included in Eclipse), but still conforms to it?
Previous Topic:Sequence Diagram Metamodel 2 activitty Diagram Metamodel
Next Topic:[ATL] possible Bug in ->sortedBy
Goto Forum:

Current Time: Fri Feb 26 19:35:50 GMT 2021

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

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

Back to the top