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 155269 - "Find in Projects" should allow case-insensitive regex search
Summary: "Find in Projects" should allow case-insensitive regex search
Status: RESOLVED DUPLICATE of bug 148628
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-11 19:46 UTC by malfunction84
Modified: 2009-02-19 20:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description malfunction84 2008-12-11 19:46:30 UTC
If you check the "Regular Expression" checkbox in a Find dialog (such as Find in Projects), the "Whole Words" and "Case
Sensitive" checkboxes are disabled.  However, in the editor's find bar, checking "Regular Expression" only disables the
"Whole Words" checkbox.  It should also disable the "Match Case" checkbox.

Also, why use "Match Case" in one place and "Case Sensitive" in another?  That option should be more consistently
labeled.  If you decide to go with "Case Sensitive," it should be hyphenated: "Case-sensitive."
Comment 1 Jiri Prox 2008-12-16 16:30:45 UTC
The Match Case if editor Find works as expected when Regular Expression is checked. 

Where did you find  'Case sensitive'? I've opened Find in project dialog and the label is Match Case as in find dialog
Comment 2 Petr Dvorak 2008-12-16 16:42:20 UTC
> The Match Case if editor Find works as expected when Regular Expression is checked. 

1. Open file in Editor and press Ctrl+F
2. Check "Regular Expressions" checkbox
-> "Match Case" is still enabled, "Whole Words" is disabled (ok)
-> The problem is that regexps are in principle case-sensitive... you need to do something like [Aa][Hh][Oo][Jj]...
-> IMO current behavior is a nice feature... You can ignore case in regexps, if you want... what do you say, reporter?

> Where did you find 'Case sensitive'?

It is used in "Find in Projects" dialog... right-click the project and invoke Find...
Comment 3 Jiri Prox 2008-12-16 17:11:03 UTC
> The problem is that regexps are in principle case-sensitive... you need to do something like [Aa][Hh][Oo][Jj]...
No, reg.ex. can be case sensitive, see javadoc for class Pattern. Maybe there is space for enhancement for find in
project to be like editor search :-)

"Find in Projects" dialog seem to be consistent in current dev build. The 'Case sensitive' label was in 6.5
Comment 4 malfunction84 2008-12-16 17:23:53 UTC
Sorry, I didn't realize Editor Find regex search actually worked with the "match case" option.  I expected to have to do
as joshis described.  That is indeed very handy and should stay.  (This must use the (?i) flag.  I've wondered about the
(?m) flag, but I guess that's a separate issue... literally.)

> Maybe there is space for enhancement for find in project to be like editor search :-)

I noticed your comment in issue 155266 to that effect.  In light of our discussion here, I agree that Find in Projects
should have case-insensitive regex support as Editor Find does.  I'm changing this to an ENHANCEMENT and changing the
summary to match.

Yes, 6.5 has the inconsistent labels, but if that is already fixed in 7.0, that part is already addressed.
Comment 5 malfunction84 2009-02-05 23:22:41 UTC

*** This issue has been marked as a duplicate of 148628 ***