Unordered list of children [message #1744734] |
Thu, 29 September 2016 18:16 |
Alex Kravets Messages: 561 Registered: November 2009 |
Senior Member |
|
|
Hello,
I have the following ecore model:
...
<eClassifiers xsi:type="ecore:EClass" name="Pipeline">
<eStructuralFeatures xsi:type="ecore:EReference" name="source" lowerBound="1"
eType="#//Source" containment="true" resolveProxies="false"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="cleanse" ordered="false"
lowerBound="1" upperBound="-1" eType="#//Cleanse"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="transform" ordered="false"
lowerBound="1" eType="#//Transform"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="target" lowerBound="1"
eType="#//Target" containment="true"/>
</eClassifiers>
...
Here the Cleanse and Transform elements will always preserve their order as defined in Ecore model, so if I added Transform, Cleanse, Transform, in the model I'll get
Pipeline
+ Cleanse
+ Transform
+ Transform
This is perfectly fine according to Ecore, but how should I change my Ecore model so that order of insertion would be preserved:
Pipeline
+ Transform
+ Cleanse
+ Transform
I tried this suggestion and the model updates how I want to, but my UI which uses one of the generated EMF editor does not function properly.
Thanks,
Alex
[Updated on: Thu, 29 September 2016 20:07] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04240 seconds