Bug 16795 - Find/Replace dialog overwrites Find string in dialog
Summary: Find/Replace dialog overwrites Find string in dialog
Status: RESOLVED DUPLICATE of bug 16014
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-22 10:12 EDT by Carolyn MacLeod CLA
Modified: 2002-05-27 12:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***