Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF Diff/Merge » change comparison method?
icon5.gif  change comparison method? [message #1091474] Wed, 21 August 2013 15:01 Go to next message
Ralf Buschermoehle is currently offline Ralf BuschermoehleFriend
Messages: 8
Registered: August 2013
Junior Member

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



P.S. Possible to add screenshots here?

Re: change comparison method? [message #1092155 is a reply to message #1091474] Thu, 22 August 2013 11:55 Go to previous message
Olivier Constant is currently offline Olivier ConstantFriend
Messages: 53
Registered: January 2012
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?

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

Current Time: Mon Nov 30 22:34:53 GMT 2015

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

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