Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 217647 - Add option to the find dialog to optionally "search in tests"
Add option to the find dialog to optionally "search in tests"
Status: NEW
Product: utilities
Classification: Unclassified
Component: Search
7.3
PC Windows 7
: P3 with 1 vote (vote)
: TBD
Assigned To: Jaroslav Havlin
issues@utilities
:
: 222484 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-30 19:19 UTC by markiewb
Modified: 2012-12-15 08:05 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments
Dialog example with new checkbox (13.58 KB, image/png)
2012-08-30 19:19 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-08-30 19:19:17 UTC
Created attachment 123754 [details]
Dialog example with new checkbox

The find dialog currently allows to 
* search in archives
* search in generated sources
But for some reasons i want also to exclude the search to look in the test-directory while searching the project. 

Add a checkbox named "Search In Tests", which is checked by default (to keep the previous behaviour). When the checkbox is unchecked then folders which are marked as Unit-Tests/"Unit Test Packages" will be excluded for searching.

See screenshot for dialog sample.

---
Note: A known workaround is to multi-select the non-test directories and then invoke the find action, but the requested feature simplifies the whole procedure.

--------
Product Version: NetBeans IDE 7.2 (Build 201207171143)
Comment 1 Jaroslav Havlin 2012-08-31 13:34:29 UTC
I'm afraid that this use-case is quite rare and adding another checkbox to the UI would make the dialog quite complicated.

Did you consider adding file path pattern "\/src\/test\/" (or something similar that corresponds to your needs) to the Ignore List?
Comment 2 markiewb 2012-12-15 07:47:13 UTC
*** Bug 222484 has been marked as a duplicate of this bug. ***
Comment 3 markiewb 2012-12-15 08:05:18 UTC
FYI: 
* A workaround (when #200020 is implemented) would be that the user can remove the test-folder node from the search results.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo