Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF Diff/Merge » Filtering results in dialog
Filtering results in dialog [message #1797983] Fri, 09 November 2018 14:15 Go to next message
Frederic Bats is currently offline Frederic BatsFriend
Messages: 2
Registered: October 2018
Junior Member
I 'm looking for a solution to filter the results programmatically.In the diff merge dialog, the user is able to ignored some difference with a button. Is it possible to programmatically define a similar filter?
Thank you for your help.
Re: Filtering results in dialog [message #1797992 is a reply to message #1797983] Fri, 09 November 2018 15:41 Go to previous message
Olivier Constant is currently offline Olivier ConstantFriend
Messages: 106
Registered: January 2012
Senior Member
With upcoming EDM 0.11.0 (to be released soon - should be the current tip of master unless some critical bug is found in the coming weeks), you can mark differences as ignored:
IDifference.Editable::setIgnored(boolean)

This was previously available in the UI layer, it was moved to the core layer. It will not affect the behavior of methods such as IComparison::getRemainingDifferences(), but it enables you to easily select relevant differences in, e.g., an IMergeSelector.

If you use a previous release, then you have to classically rely on some IDifferenceCategory or Predicate and use it when appropriate. In any case, selecting/filtering differences is the correct approach: do not try to manually delete existing differences since it would prevent the engine from guaranteeing that model consistency is preserved.
Previous Topic: Coevolution with diffmerge.mapping : referenced objects
Next Topic:Coevolution with reference outside scope
Goto Forum:
  


Current Time: Thu Apr 18 00:18:47 GMT 2024

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

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

Back to the top