Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF Diff/Merge » Diff/Merge adding elements
Diff/Merge adding elements [message #1830105] Fri, 17 July 2020 11:06 Go to next message
Michael C is currently offline Michael CFriend
Messages: 53
Registered: April 2019
Member
Hi,

I m using Diff/Merge to compare 2 parts of a model with FilteredModelScope.

I m using the Dialog to compare. When an element is added to the left or right side I m trying to surcharge the method that set the container in witch the object will be created and modify one of his attribute.

Also I was wondering how I could set the label of the the right and left scope.

Thanks

edit : I found a way to add the element in the correct container, I just needed to include them both side and play with the matchIdPolicy. Also to modify I figured out that I can modify the object in the scope after the completion.

I just need to modify the labels now.

[Updated on: Fri, 17 July 2020 13:25]

Report message to a moderator

Re: Diff/Merge adding elements [message #1830127 is a reply to message #1830105] Fri, 17 July 2020 16:05 Go to previous messageGo to next message
Olivier Constant is currently offline Olivier ConstantFriend
Messages: 106
Registered: January 2012
Senior Member
Hi Michael,

The label of the scopes is deduced from a "scope originator" object. It can be an object for which the editing domain is able to provide a text and icon, or a simple string, or anything else that can be turned into a meaningful text. You just need to override method getOriginator() of the scope.
Re: Diff/Merge adding elements [message #1830191 is a reply to message #1830127] Mon, 20 July 2020 09:47 Go to previous message
Michael C is currently offline Michael CFriend
Messages: 53
Registered: April 2019
Member
Hi Olivier, thanks for the answer. It's working perfectly.
Previous Topic:'Generic' EMF Diff/Merge
Next Topic:Support for git crypt
Goto Forum:
  


Current Time: Tue Apr 16 18:15:53 GMT 2024

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

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

Back to the top