Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EObjectEList isUnique and EReferences that are not unique
EObjectEList isUnique and EReferences that are not unique [message #417010] Fri, 22 February 2008 17:29 Go to next message
J F is currently offline J FFriend
Messages: 256
Registered: July 2009
Senior Member
I see from https://bugs.eclipse.org/bugs/show_bug.cgi?id=89325
that its a known "problem" that EMF does not generate code for EReferences
which are NOT unique which deal with the non uniqueness.

I can't see people modeling non unique references very often, but they
could still hand me models which have this set, though no one has. Do you
have any intention, beyond the workaround, to do any work in this area?
Don't do it because I asked because I can't think of any real examples
that do it...

Thanks
Re: EObjectEList isUnique and EReferences that are not unique [message #417016 is a reply to message #417010] Fri, 22 February 2008 19:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
JF,

We always have good intentions, and in a sense fixing this would be
trivial. But the downstream implications are a little overwhelming. So
much code assumes that an object will occur at most once in the list.
It does seem to be extremely rare. The last time someone wanted this,
they needed to define like a "signature", i.e., a list of types. But in
the end they ended up with a parameter list and the problem went way.
It would take many weeks of careful investigation to track down the
implications of the change, so it won't happen this release for sure.


JF wrote:
> I see from https://bugs.eclipse.org/bugs/show_bug.cgi?id=89325
> that its a known "problem" that EMF does not generate code for
> EReferences which are NOT unique which deal with the non uniqueness.
>
> I can't see people modeling non unique references very often, but they
> could still hand me models which have this set, though no one has. Do
> you have any intention, beyond the workaround, to do any work in this
> area? Don't do it because I asked because I can't think of any real
> examples that do it...
>
> Thanks
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EObjectEList isUnique and EReferences that are not unique [message #417081 is a reply to message #417016] Tue, 26 February 2008 11:57 Go to previous message
J F is currently offline J FFriend
Messages: 256
Registered: July 2009
Senior Member
Thanks for taking the time to reply Ed.
If I ever come up with a useful example I'll let you know
Previous Topic:Is there any way to do custom proxy resolution?
Next Topic:Use of ProgressMonitorJobsDialog with job scheduling
Goto Forum:
  


Current Time: Thu Apr 18 02:28:17 GMT 2024

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

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

Back to the top