Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 67653

Summary: Replace all in selected lines replaces all in entire file from selection
Product: [Eclipse Project] JDT Reporter: jay_schmidgall
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description jay_schmidgall CLA 2004-06-17 11:30:38 EDT
In the java editor, I selected a few lines to change a word contained within a
string. I hit Ctrl-F to bring up the Find/Replace dialog. This came up with the
scope set to Selected Lines, as expected. I entered the word in the Find field,
and the value to change it to in the Replace With field. I then hit Replace All.
Every occurrence of the word from the selected text to the end of the file was
replaced.

I had expected that only the occurrences within the selected text would be replaced.

This is with Eclipse 3.0 M9.
Comment 1 Kai-Uwe Maetzel CLA 2004-06-17 14:08:48 EDT

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