EMF Multilist sorts data in Viewer

marshallcrane

New Member
Assuming there is an EMD model which accesses following xml file (simplified):\[code\]<model> <set name="Set1"/> <get name="Get1"/> <set name="Set2"/> <get name="Get2"/></model>\[/code\]Now I want a list with all these values in a TableViewer by using a MultiList\[code\]viewer.setInput(EMFProperties.multiList( FeaturePath.fromList(ModelPackage.Literals.DOCUMENT_ROOT__MODEL, ModelPackage.Literals.MODEL__SET), FeaturePath.fromList(ModelPackage.Literals.DOCUMENT_ROOT__MODEL, ModelPackage.Literals.MODEL__GET)).observe(modelRoot));\[/code\]This is all working fine, except for one issue:The Multilist gathers first all \[code\]set\[/code\] objects, then all \[code\]get\[/code\] objects, but I need to display the objects in the correct order.What I expect/need:
  • Set1
  • Get1
  • Set2
  • Get2
What I get:
  • Set1
  • Set2
  • Get1
  • Get2
Is there a way to circumvent this issue?
 
Back
Top