Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF Diff/Merge » Merge at a specific index
Merge at a specific index [message #1413849] Fri, 29 August 2014 15:19 Go to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
Hi,

my merge customization story continues...
Now that a can merge more than one diff in a single action, comes the problem of the merge at a specific index.

Taking my previous example and looking at the EAttributeValuePresenceImpl.mergeValueAddition() method, all the merged values will be added to the end of the list.

but i want to add the new merged value at a specified index of the list. is it possible to override this behavior ?
Re: Merge at a specific index [message #1414845 is a reply to message #1413849] Mon, 01 September 2014 12:23 Go to previous messageGo to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
Hi,

i found a solution to this, i've overridden the newAttributeValuePresence() method in my custom DiffMergeEditorInput, and then i got access to the mergeValueAddition and mergeValueRemoval to do my own stuff.
Re: Merge at a specific index [message #1415713 is a reply to message #1414845] Wed, 03 September 2014 12:32 Go to previous message
Olivier Constant is currently offline Olivier ConstantFriend
Messages: 106
Registered: January 2012
Senior Member
Hi Stéphane,

Yes, that is indeed the way to go. Smile

Olivier
Previous Topic:Override the default behavior of a merge action
Next Topic:How to get a patch from IComparison's IDifferences?
Goto Forum:
  


Current Time: Wed Apr 24 18:19:25 GMT 2024

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

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

Back to the top