|Re: EcoreUtil.copyAll and EMap [message #1007064 is a reply to message #1007045]
||Mon, 04 February 2013 10:10
| Martin Taal
Registered: July 2009
Ouch, it was a problem in my code, so this post can be forgotten...
On 02/04/2013 09:38 AM, Ed Merks wrote:
> The Copier is not aware of EMaps. From that perspective an EMap is just a containment reference to the EObjects that
> represent the Map.Entry instances. So the value reference of the map entry will be copied during copyReferences just
> like any other cross reference. The only thing that would prevent copying is if it's a bidirectional reference and the
> referenced object itself has not been copied...
> So try setting a breakpoint (conditional on the reference's name being "value") in
> org.eclipse.emf.ecore.util.EcoreUtil.Copier.copyReference(EReference, EObject, EObject) and see why its not copying the
> On 04/02/2013 9:26 AM, Martin Taal wrote:
>> I have a model with an emap where the value is a non-containment ereference. It seems that EcoreUtil.copyAll does not
>> correctly copy the value of the emap elements (it is null). Is this a known issue?
>> If not then I can create a bugzilla (with a testcase) to show the problem.
With Regards, Martin Taal
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Powered by FUDForum
. Page generated in 0.09675 seconds