| EssentialOCL editing support in papyrus for OrderedSet [message #1008707] |
Wed, 13 February 2013 11:28  |
Klaas Gadeyne Messages: 36 Registered: July 2009 |
Member |
|
|
Hi,
When creating a reference "myref" in eCore from eClass1 to eClass2 with multiplicity > 1 and setting its properties to { ordered, Unique }, the resulting reference in the context from eClass1, in casu self.myref, is of type OrderedSet, and this syntax is also validated/supported by the OCLinEcore editor.
However, when I create a UML model in Papyrus, that contains 2 classes having the same relation (where the properties of the association end at the Class2 side are set as isOrdered = true, and isUnique = true) and use the embedded essentialOCL editor to create a constraint in the context of Class1, the editor seems to suggest that self.myref is of type Set, and not of type orderedSet as I would expect. Am I missing something here, or is this a bug?
Demo model attached. As you can see, there is an explicit cast "asOrderedSet()" in the contraint expression.
TIA,
Klaas
Edit: Verified using juno SR2-RC2 and Kepler M5 (using the OCL milestone builds for Kepler)
[Updated on: Wed, 13 February 2013 11:31] Report message to a moderator
|
|
|