Skip to main content



      Home
Home » Modeling » EMF Diff/Merge » change comparison method?
icon5.gif  change comparison method? [message #1091474] Wed, 21 August 2013 11:01 Go to next message
Eclipse UserFriend
Hi,

currently the comparison is showing differences based on the object ID (this is an assumption).

But I cannot change the comparison method in the GUI. Is this possible and if yes how? Smile

Greetings,

Ralf

P.S. Possible to add screenshots here?

Re: change comparison method? [message #1092155 is a reply to message #1091474] Thu, 22 August 2013 07:55 Go to previous message
Eclipse UserFriend
Hi Ralf,

Yes, the default comparison method is by ID - this is why the default GUI states "matching by ID". Alternative comparison methods can be defined and added into the combo box, but you will have to define them programmatically.

Plugin org.eclipse.emf.diffmerge.ui.gmf provides an example of how to do that. You will essentially have to define your own IMatchPolicy, which associates every model element with an object that identifies it (qualified name for example). You may note that heuristic matching is not supported and is not intended to be, for trustworthiness reasons.

Don't hesitate to ask if you need more support. Could you tell a bit more about your use case?

Regards,
Olivier
Previous Topic:Simple Diff between two RootedModelScope
Next Topic:Available Update Site
Goto Forum:
  


Current Time: Wed Jul 23 14:54:41 EDT 2025

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

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

Back to the top