Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Resolved] [EMF Compare] Comparing references from different MetaModels
[Resolved] [EMF Compare] Comparing references from different MetaModels [message #758492] Wed, 23 November 2011 13:02 Go to next message
pro.kyon is currently offline pro.kyonFriend
Messages: 6
Registered: October 2011
Junior Member
Hello all,

I'm trying to facilitate the EMF Compare (Eclipse Indigo SR1) functionality to compare my domain-specific models. However, I've been running into problems while comparing references that point to types in meta model instances of another meta model. Namely, EMF Compare seems to ignore those references.

My setup is like this:

Meta Models:

mm1.ecore
 [P] mm1
  [C] Class1
   [A] name : String
   [R] class2Ref : Class2 (0..1) <--- Reference to mm2
  [C] MM1Classes
   [R] classes : Class1 (0..*)

mm2.ecore
 [P] mm2
  [C] Class2
   [A] name : String
  [C] MM2Classes
   [R] classes : Class2 (0..*)
 


Now, if I create one mm2 instance, with two "Class2" objects, say "A" and "B", and two mm1 instances ("1.mm1", "2.mm1") , each one having exactly one "Class1" object, but different references to "A" and "B", then EMF Compare shows no changes if I compare the two mm1 models, regardless of whether I select "Selected Resources only" or "Complete resource sets".

Does anyone know how to solve this problem?

The meta models, models and comparison screen shots are included in the attachments.

Thanks for your time

Regards

[Updated on: Tue, 13 December 2011 13:10]

Report message to a moderator

Re: [EMF Compare] Comparing references from different MetaModels [message #760072 is a reply to message #758492] Thu, 01 December 2011 08:50 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
Hi,

We have a known bug with recent versions not detecting differences on some references; I believe that this is an instance of this bug. See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=362997 .

Which version of EMF Compare are your using?

Laurent Goubet
Obeo
Re: [EMF Compare] Comparing references from different MetaModels [message #760430 is a reply to message #760072] Fri, 02 December 2011 10:57 Go to previous messageGo to next message
pro.kyon is currently offline pro.kyonFriend
Messages: 6
Registered: October 2011
Junior Member
Hi Laurent,

I've been using 1.2.1.v20110913-0926 of EMF Compare.

Indeed I think the bug (362351) that was linked to from your linked issue describes exactly my problem.

Regards
Re: [EMF Compare] Comparing references from different MetaModels [message #761302 is a reply to message #760430] Tue, 06 December 2011 09:01 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
We hope to have this bug fixed for the M4 milestone due next wednesday. I believe this should fix your issue along with it Smile.

Laurent Goubet
Obeo
Re: [EMF Compare] Comparing references from different MetaModels [message #761486 is a reply to message #761302] Tue, 06 December 2011 14:40 Go to previous messageGo to next message
pro.kyon is currently offline pro.kyonFriend
Messages: 6
Registered: October 2011
Junior Member
Hi Laurent,

much appreciated. Thanks again. Smile

Regards
Re: [EMF Compare] Comparing references from different MetaModels [message #765123 is a reply to message #761486] Tue, 13 December 2011 13:11 Go to previous messageGo to next message
pro.kyon is currently offline pro.kyonFriend
Messages: 6
Registered: October 2011
Junior Member
Just wanted to let you know that this issue is indeed fixed in EMF Compare 1.3.0M4.

Re: [EMF Compare] Comparing references from different MetaModels [message #767923 is a reply to message #765123] Mon, 19 December 2011 08:05 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
Hi,

Sorry, forgot to post here when we made this build available. Thanks for the update in any case Smile.

Laurent Goubet
Obeo
Previous Topic:[EMF Compare] Unable to open textual diff popup for string EAttribute
Next Topic:[EMF Compare] textual popup only saves changes made from right to left (bug?)
Goto Forum:
  


Current Time: Thu Apr 25 10:51:52 GMT 2024

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

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

Back to the top