Bug 199041

Summary: Replace text match preview is wrong
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: CompareAssignee: Platform-Compare-Inbox <platform-compare-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: krzysztof.daniel, markus.kell.r, martinae, Szymon.Brandys
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The proposal "word vs letter" none

Description Dani Megert CLA 2007-08-07 05:57:28 EDT
I120070807-0010.

1. have a file with foobar in it
2. text search for "foo"
3. replace with "replace"
==> the preview is wrong:
[foobar] ==> [replacebar] 

Expected: [foo]bar ==> [replace]bar

[xyz] means xyz is highlighted.
Comment 1 Martin Aeschlimann CLA 2007-08-13 11:36:25 EDT
That's a feature of the compare framework. They decided to show changes in by words and not by characters.
It's the same when you edit one letter and do a compare with previous. Same in text compare and in Java compare.
Comment 2 Krzysztof Daniel CLA 2007-08-16 10:50:37 EDT
I think user should have possibility to switch between word and letter compare level. It may be confusing to the user when the whole word is marked as changed, but from the other side I prefer word comparison then letter - I think it is closer to human nature ;).

Comment 3 Szymon Brandys CLA 2007-08-16 11:01:27 EDT
Created attachment 76225 [details]
The proposal "word vs letter"

Or we can mark whole words but highlight the real change.
Something like this on the attached image.
Comment 4 Szymon Brandys CLA 2007-08-16 11:06:26 EDT
As Martin mentioned, that feature was on purpose. But anyway I think we can improve it. I'm changing the severity to enhancement.
Comment 5 Eclipse Webmaster CLA 2019-09-06 15:31:26 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 6 Eclipse Webmaster CLA 2019-09-06 15:35:26 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.