Support for Containment Proxies [message #1703851] |
Wed, 05 August 2015 07:59  |
Eclipse User |
|
|
|
Hi,
I have a metamodel, which defines a containment reference that has containment proxies enabled. In my model, one element contained in that reference is indeed contained in a separate file (Element3 below), all other elements are contained in the main model file, the same file as the container element.
Container
-> Element1
-> Element2
---> Subelement 2.1
-> Element3 (in other file)
When comparing the main model file with an earlier version in the local history, EMF Compare seems to ignore the element contained in the separate file. Changes made to that element are not detected. When moving e.g. Subelement 2.1 from Element2 to Element3, EMF Compare reports that this element has been deleted.
Is this a bug in EMF Compare or do I need to somehow customize EMF Compare's algorithm to properly resolve such containment proxy references?
Best regards,
Stephan
|
|
|
Re: Support for Containment Proxies [message #1703858 is a reply to message #1703851] |
Wed, 05 August 2015 08:46  |
Eclipse User |
|
|
|
Hi Stephan,
well, what you describe is basically supported in EMF Compare 3.1; that is, EMF Compare will follow cross-file references and involve referenced model files in the comparison. But it won't work with the local history, because -- at least currently -- EMF Compare can't resolve referenced files in the context of the local history of Eclipse. But it works for instance with team repository providers that support the logical model integration. There is an implementation for EGit supporting this model integration.
Best wishes,
Philip
|
|
|
Powered by
FUDForum. Page generated in 0.03479 seconds