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 Haffi
Messages: 39
Registered: November 2010
Member
Hi,

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="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/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="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/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 Haffi
Messages: 39
Registered: November 2010
Member
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: Tue Sep 16 13:31:24 GMT 2014

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

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