Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF Compare] Merge problem?
[EMF Compare] Merge problem? [message #781245] Fri, 20 January 2012 21:27 Go to next message
Per Sterner is currently offline Per SternerFriend
Messages: 91
Registered: October 2011
Member
Hello,

I have created a little example project for my question.

1. There is a simple model with the classes Root, Person, City.

2. I create to different Instances for Root and add a Person with the same name

3. The diff says no differences Smile

4. I add a city to the first instance and then a reference from the person is set to the city.

5. The diff says "Reference changed" and "City added" Smile

6. Then I merge the Instances from left to right

7. The diff says no differences Smile

But when I look into the Person Instances the city reference from the second instance is not the newly created city instance. It is a reference to the city instance from the first model instance.

I think the city reference should point to thew newly created one?

1. Compare
2. Add & Assign City
3. Compare
Reference city in Testname1 changed from null to City?
City? has been added
4. Merge
5. Compare
6. Root1
Persons: 352450804 [City: 1736599312 / file:/.../workspace/de.pelle7.env/file1.nop], 
Cities: 1736599312, 
7. Root2
Persons: 674993851 [City: 1736599312 / file:/.../workspace/de.pelle7.env/file1.nop], 
Cities: 574390407, 


Perhaps this problem is related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=355897

Regards,

Per

[Updated on: Fri, 20 January 2012 21:37]

Report message to a moderator

Re: [EMF Compare] Merge problem? [message #782703 is a reply to message #781245] Tue, 24 January 2012 09:07 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1901
Registered: July 2009
Senior Member
Hi Per,

This seems indeed like the same bug, and we have yet to fix it. We'll update the bugzilla when we have a solution Smile.

Laurent Goubet
Obeo

[Updated on: Tue, 24 January 2012 09:07]

Report message to a moderator

Previous Topic:Cross-references
Next Topic:[EMF] Resolving and non resolving list methods
Goto Forum:
  


Current Time: Wed Sep 06 00:09:43 GMT 2023

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

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

Back to the top