3 way comparison with DifferenceFilter [message #1820973] |
Mon, 03 February 2020 12:44  |
Eclipse User |
|
|
|
Hi,
I am applying a filter to a 3 way comparison and was wondering if the filter should show differences for the left compared to origin, and right compared to origin, or if the filter only applies if either of the left/right has a difference with the origin.
In the screenshot I have attached, the origin shows "monotonous", left shows "monotonous2" with whitespace, and right shows "monotonous" with white space. I have a filter that filters out no semantic differences, so whitespace in this example. So I would expect that only the left should show differences in this example. What's happening in my tool currently is that the filter is only applied if both have no differences instead of one or the other. This is because of the way the code is, because I couldn't figure out how to implement it if it were possible.
My first question is whether or not this functionality is included in EMF Compare, where I can see filter being applied to the left and right, and only showing differences.
My second question is how to go about implementing this. I am unsure where to start with this.
Thank you
Attachment: diff.PNG
(Size: 1.49KB, Downloaded 173 times)
|
|
|
|
Re: 3 way comparison with DifferenceFilter [message #1821504 is a reply to message #1821273] |
Thu, 13 February 2020 12:56  |
Eclipse User |
|
|
|
Hey Laurent,
so the way I am setting this up is that after the "matching", left and right will both be considered as differences from the origin. Then I can apply a Filter and with the example I'm using, left should still be considered a difference, but right would be considered as a match with the origin. So on the GUI the left side would still be a diff. I am wondering on how to implement this so it shows up appropriately in the GUI. And maybe that's what you already explained in that last message but I just wasn't sure if we're on the same page.
Thanks,
Anthony
|
|
|
Powered by
FUDForum. Page generated in 0.07635 seconds