Model migration with Flock [message #1737317] |
Thu, 07 July 2016 05:27  |
Eclipse User |
|
|
|
Hi,
migrating with Flock a model to a new version, I've some problem when an attribute in the original model have value of zero.
For instance, the original element:
<cimDiagramLayout:DiagramObjectPoint UUID="_730f02b0-6f95-11e2-89cb-00219b4fe24c" xPosition="0.0" sequenceNumber="0" DiagramObject="_730edba0-6f95-11e2-89cb-00219b4fe24c" yPosition="1247.0"/>
will be translated in the migrated model with
<cimDiagramLayout:DiagramObjectPoint xmi:id="_730f02b0-6f95-11e2-89cb-00219b4fe24c" UUID="_730f02b0-6f95-11e2-89cb-00219b4fe24c" yPosition="1247.0" DiagramObject="_730edba0-6f95-11e2-89cb-00219b4fe24c"/>
missing both xPosition="0.0" and sequenceNumber="0".
The Flock code is simply
retype DiagramObjectPoint to DiagramObjectPoint
The original ecore for xPosition is
<eStructuralFeatures xsi:type="ecore:EAttribute" name="xPosition" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"
The migrated is
<eStructuralFeatures xsi:type="ecore:EAttribute" name="xPosition" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#/0/EFloat"/>
Even if I change the last definition from
... #/0/EFloat
to
... #//EFloat
doesn't change the result.
By the way I obtain "http://www.eclipse.org/emf/2002/Ecore#/0/EFloat" using
t.eType := Ecore1!EDataType.all.selectOne(dt|dt.name = 'EFloat');
but I don't know why I get the /0/.
Thanks for your support,
Gianluigi
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06349 seconds