Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Support for Containment Proxies(EMF Compare ignores elements contained in other files, which are referenced via containment proxy references.)
Support for Containment Proxies [message #1703851] Wed, 05 August 2015 11:59 Go to next message
Stephan Hildebrandt is currently offline Stephan HildebrandtFriend
Messages: 25
Registered: July 2015
Junior Member
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 12:46 Go to previous message
Philip Langer is currently offline Philip LangerFriend
Messages: 99
Registered: March 2015
Location: Vienna, Austria
Member

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


--
Philip Langer

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:Merge referenced pseudo conflicts results in defect model
Next Topic:Manipulating the EMF Compare Editor
Goto Forum:
  


Current Time: Tue Mar 19 05:13:59 GMT 2024

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

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

Back to the top