Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CopyCommand & eOpposite
CopyCommand & eOpposite [message #528129] Mon, 19 April 2010 12:57 Go to next message
Michael Szediwy is currently offline Michael SzediwyFriend
Messages: 23
Registered: July 2009
Junior Member
Hi,

if I have two EClasses A and B. There is a eOpposite relationship
between them A.b[0-*] and B.a. If I execute a CopyCommand of an instance
of B (having set B.a) is the opposite field in B.a.b affected?

Cheers

Michael
Re: CopyCommand & eOpposite [message #528155 is a reply to message #528129] Mon, 19 April 2010 14:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Michael,

No, copying avoids affecting the opposite. Only if you copy both sides
at once will you end up with copies they refer back to each other, but
not to the originals of course.


Michael Szediwy wrote:
> Hi,
>
> if I have two EClasses A and B. There is a eOpposite relationship
> between them A.b[0-*] and B.a. If I execute a CopyCommand of an
> instance of B (having set B.a) is the opposite field in B.a.b affected?
>
> Cheers
>
> Michael


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF project creation
Next Topic:EMF Query conditions
Goto Forum:
  


Current Time: Wed Sep 25 20:31:32 GMT 2024

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

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

Back to the top