Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Uniqueness in derived EReferences
Uniqueness in derived EReferences [message #1171522] Tue, 05 November 2013 09:36 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
Hi,

Given that EReferences are always implicitly unique (even if their
unique attribute is set to false), how should I handle derived
references where I have full responsibility on the result list contents?

Are there any constraints in the EMF core (including Edit/UI) that would
assume that even derived EReferences do not contain elements multiple times?

Thanks,
Felix
Re: Uniqueness in derived EReferences [message #1173205 is a reply to message #1171522] Wed, 06 November 2013 11:10 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30687
Registered: July 2009
Senior Member
Felix,

Comments below.

On 05/11/2013 10:36 AM, Felix Dorner wrote:
> Hi,
>
> Given that EReferences are always implicitly unique (even if their
> unique attribute is set to false), how should I handle derived
> references where I have full responsibility on the result list contents?
Try to make them unique...
>
> Are there any constraints in the EMF core (including Edit/UI) that
> would assume that even derived EReferences do not contain elements
> multiple times?
Yes, the commands assume there won't be more than one instance, but if
it's derived, you likely can't edit them directly anyway. It probably
won't cause you any direct problems if it's isChangeable false, but no
guarantees...

>
> Thanks,
> Felix
Previous Topic:How to add custom property to EAttribute
Next Topic:Ecore design and derived EReference
Goto Forum:
  


Current Time: Tue Dec 10 02:25:50 GMT 2019

Powered by FUDForum. Page generated in 0.01643 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top