|
Re: [EMF Compare] Is there any way to tweak matching phase? [message #1702568 is a reply to message #1702482] |
Thu, 23 July 2015 09:55 |
|
Hi Richard,
We are matching elements mainly through their id. If you have any way to compute one for the elements that are not properly matched in your case, you might want to look towards defining customidentifiers for EMF Compare's use.
Otherwise, we fall back to a similarity-bassed matching, and it seems this similarity doesn't do the trick in your case to properly match your elements together.
You could insert your own implementation of an IEObjectMatcher in between the identifier and similarity ones, in order to match these particular elements your own way while leaving the usual matchers do the work for you in all other cases. If you look at the sample code I've linked just above, you'll see that it uses a "idMatcher" and "fallbackMatcher". You could use the same kind of strategy to insert your own in between.
Laurent Goubet
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds