Skip to main content



      Home
Home » Modeling » EMF Diff/Merge » Filtering results in dialog
Filtering results in dialog [message #1797983] Fri, 09 November 2018 09:15 Go to next message
Eclipse UserFriend
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 10:41 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 02:56:26 EDT 2025

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

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

Back to the top