Skip to main content



      Home
Home » Modeling » Compare » Using org.eclipse.compare.compareFilters(Ignoring columns during text compare using compare filters)
Using org.eclipse.compare.compareFilters [message #1818968] Fri, 03 January 2020 12:12 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Custumize MergeAction
Next Topic:Resolving models that span multiple languages
Goto Forum:
  


Current Time: Thu Mar 06 22:31:30 EST 2025

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

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

Back to the top