Using org.eclipse.compare.compareFilters [message #1818968] |
Fri, 03 January 2020 12:12  |
Eclipse User |
|
|
|
We need to be able to ignore certain columns when performing a text compare. The Compare Filters (extension point org.eclipse.compare.compareFilters) seems like the ideal way to do this, and is very easily implemented.
I'm curious why this extension point is marked as an internal extension point and its use is discouraged.
Will we get in trouble in the future if we use this extension point?
Is there a better way to accomplish what we need to do?
|
|
|
Re: Using org.eclipse.compare.compareFilters [message #1819042 is a reply to message #1818968] |
Mon, 06 January 2020 03:11  |
Eclipse User |
|
|
|
Hello,
In the future, the comparison filters are to be removed from EMF Compare, at least in the shape they are now (a predicate when selected and a predicate when unselected). The rationale being that "filters" should really not do anything when "un"-selected. This, however, will only happen in a 4.* version of EMF Compare so you are mostly safe using it.
Do note that this kind of difference filter only filters out the differences in the GUI, they are still there in the comparison model and might be merged transitively through dependencies of other diffs. If you want to completely ignore differences on "certain columns", then what you have to configure is the FeatureFilter used by the comparison.
Laurent Goubet
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.04300 seconds