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

Bug 321036

Summary: Find/Replace forgets search scope after focus change/dialog deactivation
Product: [Eclipse Project] Platform Reporter: ChristophK <kaser>
Component: TeamAssignee: Platform Team Inbox <platform-team-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard: stalebug

Description ChristophK CLA 2010-07-27 11:27:45 EDT
Build Identifier: I20100608-0911

After selecting a few lines in a text editor and opening Find/Replace, the lines are marked as search scope and the radio button "Selected lines" is selected.
As soon as the find/repalce dialog loses focus, the scope is removed and "All" is selected.


Reproducible: Always

Steps to Reproduce:
1.Select several lines of text in a text editor, e.g. the java editor
2. Open Find/Replace by pressing Ctrl+F
3. Either
  a) Click on the window title of the eclipse main window
  b) Select another window in the task bar and switch back to eclipse
4. Observe how the search scope is gone
Comment 1 ChristophK CLA 2010-07-27 11:30:15 EDT
I have found the place where the scope is removed:
It happens in FindReplaceDialog.java in the method shellDeactivated of the ActivationAdapter. It seems as if this was done on purpose, but there is no comment why that is necessary and how it makes sense.
Comment 2 Prakash Rangaraj CLA 2010-07-29 04:43:04 EDT
Moving to Platform text
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:06:02 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 4 Eclipse Genie CLA 2021-10-15 13:03:59 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.