Filtering results in dialog [message #1797983] |
Fri, 09 November 2018 09:15  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03250 seconds