Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Resolving Proxies(How do I force proxies to resolve to allow correct comparison?)
Resolving Proxies [message #1853903] Thu, 21 July 2022 19:24 Go to next message
Philip Alldredge is currently offline Philip AlldredgeFriend
Messages: 20
Registered: February 2013
Junior Member
I have an xtext based model that I'm using with EMF Compare. When comparing the two models using the UI, there are errneous reference changes. This is a result of the "changed" values being proxies. The model supports references to other files but in this particular case, the proxies are references to objects within thge same resource. The URIs for the proxies are different but the resolved objects are correctly matched by EMF Compare.

I was able to get comparisong to work as desired by resolving the relevant proxies during postMatch() in a IPostProcessor. Is there a more appropriate way to ensure these proxies are resolved and that the comparison works as expected?
Re: Resolving Proxies [message #1853939 is a reply to message #1853903] Mon, 25 July 2022 07:12 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
Hello Philip,

EMF Compare UI will not resolve proxies by default, so the only choice is to override that behavior if your proxy URIs are distinct. You can do that either through the postMatch as you have done, or prior to the comparison through an IResourceSetHook (see extension point org.eclipse.emf.compare.ide.resourceSetHook).

Regards,
Laurent Goubet
Obeo
Re: Resolving Proxies [message #1853977 is a reply to message #1853939] Tue, 26 July 2022 15:31 Go to previous message
Philip Alldredge is currently offline Philip AlldredgeFriend
Messages: 20
Registered: February 2013
Junior Member
Thanks, I'll take a look at that.
Previous Topic:EMF Compare Diff unexpected behavior
Next Topic:No merger found for diff AttributeChangeSpec
Goto Forum:
  


Current Time: Wed Nov 13 21:24:43 GMT 2024

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

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

Back to the top