Influence order of n-ary references? [message #748204] |
Mon, 24 October 2011 14:59 |
Eclipse User |
|
|
|
Is it possible to influence the order of the EList in which referenced
EObjects are saved? There is the attribute "ordered" but I don't know
how to specify the order. The best way would be to provide some kind of
comparator. Is that possible anyhow?
best regards,
Gilbert
|
|
|
|
Re: Influence order of n-ary references? [message #749422 is a reply to message #748357] |
Tue, 25 October 2011 08:00 |
Eclipse User |
|
|
|
Hi Ed,
Ed Merks wrote:
> Gilbert,
>
> Comments below.
>
> On 24/10/2011 4:59 PM, Gilbert Mirenque wrote:
>> Is it possible to influence the order of the EList in which referenced
>> EObjects are saved?
> They're saved in the order in which the appear in the list.
>> There is the attribute "ordered" but I don't know
>> how to specify the order.
> That doesn't mean sorted. In theory we might deal with ordered and
> unique by producing a Collection, Set, or List as appropriate, but in
> practice, all multi-valued features are surfaced as lists. So ordered
> just means the order in the list is semantically significant.
>> The best way would be to provide some kind of
>> comparator. Is that possible anyhow?
> You can sort the list at any time using ECollections.sort (so that move
> instead of add/remove are used).
every post you write I learn something from it ;)
Thanks!
>>
>> best regards,
>> Gilbert
|
|
|
Powered by
FUDForum. Page generated in 0.04754 seconds