This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 109458 - "find in projects" options aren't sticky
Summary: "find in projects" options aren't sticky
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
: 109915 111152 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-12 02:58 UTC by jamespb
Modified: 2009-01-19 17:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-07-12 02:58:52 UTC
I'd expect 'regular expression' to stay clicked, but it resets every time I do a new "find in projects."
Comment 1 Max Sauer 2007-07-24 10:28:11 UTC
Reproducible, applies to all items from 'Options' and 'Scope'.
---
Product Version: NetBeans IDE Dev (Build 070723) 
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 
System: Mac OS X version 10.4.8 running on i386; MacRoman; 
en_US (nb) Userdir: /Users/Max/.netbeans/dev
Comment 2 Max Sauer 2007-07-24 10:29:32 UTC
*** Issue 109915 has been marked as a duplicate of this issue. ***
Comment 3 Marian Petras 2007-07-30 08:31:20 UTC
*** Issue 111152 has been marked as a duplicate of this issue. ***
Comment 4 Roman Ondruska 2007-08-03 14:48:48 UTC
From the usability point of view, this issue should be addressed in NB 6. 
Comment 5 Maros Sandor 2007-08-29 12:35:09 UTC
The state is now persistent.

/shared/data/ccvs/repository/utilities/src/org/netbeans/modules/search/FindDialogMemory.java,v  <--  FindDialogMemory.java
new revision: 1.6; previous revision: 1.5
/shared/data/ccvs/repository/utilities/src/org/netbeans/modules/search/BasicSearchForm.java,v  <--  BasicSearchForm.java
new revision: 1.7; previous revision: 1.6
Comment 6 jamespb 2007-08-30 17:59:46 UTC
Still a problem in build 3540 - I changed the scope to 'main project', ran a search, opened the dialog again, and it had
gone back to 'open projects'
Comment 7 Roman Ondruska 2007-09-04 11:58:54 UTC
My suggestion is: 
When the action is invoked contextually, always select 'Selection'
When the action is invoked from the main menu, remember the last scope;
if it is disabled, select 'Open Projects'.
In the first invocation from main menu, select 'Open Projects'.  
Comment 8 jamespb 2008-07-05 19:30:51 UTC
This is still a problem - tried again in with:

changeset:   87884:cd2a46e86d46

Bring up the find in files dialog, select scope > main project, next time you run a find it's back to scope > open projects.

Comment 9 Tomas Pavek 2008-07-08 10:15:07 UTC
I can confirm that "Find In Projects" in current dev build always opens with "Open Projects" scope selected, does not
remember the last used scope. But I don' think it is a P2 defect.
Comment 10 jamespb 2008-07-12 18:13:35 UTC
I can't argue too hard that it's really a P2, but it seems that in practice the priorities are:

P1: We have to fix this RIGHT NOW.
P2: Yes, fix this very soon.
P3: Probably not going to fix this.

The bug was filed a year ago today - happy birthday :-)

(This is actually a fairly annoying bug - it means that I only keep one project open at a time, instead of having
multiple projects open and one project set as the main project.)
Comment 11 Tomas Pavek 2008-07-14 09:48:57 UTC
Most of the fixed bugs are P3 bugs, so it has good chance to be fixed.

> This is actually a fairly annoying bug...

Really that annoying? As I understand, after invoking Find In Projects, you always need to select "Main Project" 
scope - i.e. to press Alt+M in addition after you type the text to search for. Or is it something more?
Comment 12 jamespb 2008-07-14 17:53:36 UTC
Except that I always forget to do that, so I end up with searches across multiple projects all the time.  It's easier to
just close the other projects.  Find across files is used constantly if you're working with Ruby.  Maybe Java people
don't care so much?

But in general, I'd say that this is exactly the kind of UI issue that creates a perception of netbeans being a bit
unpolished.  You're right, it's easy to work around, but it's something that I use all the time and I shouldn't need to
work around.
Comment 13 Andrey Yamkovoy 2009-01-15 05:34:06 UTC
I checked it on the latest build and looks like it works correctly.
Invoking "Find In Projects" from the main menu remember last search scope and options.
Invoking "Find..." from the node context menu sets the scope to "Selection" and sets last used options.
Comment 14 kaa 2009-01-19 17:42:37 UTC
verified:

Product Version: NetBeans IDE Dev (Build 200901160201)
Java: 1.6.0_06; Java HotSpot(TM) Server VM 10.0-b22
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)