Bug 16795

Summary: Find/Replace dialog overwrites Find string in dialog
Product: [Eclipse Project] Platform Reporter: Carolyn MacLeod <carolynmacleod4>
Component: UIAssignee: Nick Edgar <n.a.edgar>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Carolyn MacLeod CLA 2002-05-22 10:12:06 EDT
 
Comment 1 Carolyn MacLeod CLA 2002-05-22 10:38:08 EDT
20020521 (F1)

This is a regression - it was not a problem until very recent builds.

- open an editor (either text or Java)
- select a word
- type ^F to bring up the Find/Replace dialog
- your word is in the "Find:" field
- in the "Replace With:" field, type another word (for example, "splat")
- click on the "Replace" button

The bug is that the "Find:" field in the dialog now contains the word "splat".
This can be misleading if you then try to do another Find - particularly if the 
user did not notice that the Find text was replaced. They might think that the 
original search string was not found. It is also inconvenient for the user if 
they did notice that their original string is now gone, because they have to 
either type it in again to keep searching, or they have to go to the Find combo 
box to get it back.

Other places where this bug shows up:
- open a text file with multiple instances of the string "foo".
- bring up the Find/Replace dialog
- type "bar" in the Replace With field
- now repeatedly click the "Replace/Find" button until all instances of "foo" 
in the file have been replaced with "bar".
The bug: after replacing the last instance of "bar", the "Find:" string in the 
dialog suddenly turns into "bar".

One more example:
- open a text file with multiple instances of the string "foo".
- bring up the Find/Replace dialog
- type "bar" in the Replace With field
- click "Replace All"
The bug: the "Find:" string is now "bar".
Comment 2 Nick Edgar CLA 2002-05-27 12:59:11 EDT

*** This bug has been marked as a duplicate of 16014 ***