Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:12 Go to next message
Earl Bennett is currently offline Earl BennettFriend
Messages: 29
Registered: July 2009
Junior Member
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 08:11 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
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: Fri Mar 29 08:15:27 GMT 2024

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

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

Back to the top