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 87847

Summary: Add option to search within text strings
Product: utilities Reporter: nikomatsakis <nikomatsakis>
Component: SearchAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: blocker CC: markiewb
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description nikomatsakis 2006-10-24 13:03:51 UTC
It often happens that I want to find where in the code a particular message is coming from; as a result, 
what I want to do is search within the text strings in the program.  Unfortunately, text strings can be 
arbitrarily wrapped on different lines and the like, so this is difficult.  As a recent example, I wanted to 
find where an exception was coming from that had the text "The type of the variable initializer" in it.  I 
couldn't find it.

Eventually, I found that it came from a liine which looked like:

   String s = "The type of the variable "+

It would be nice to have a search that detected string constants broken apart like this.
Comment 1 Marian Petras 2007-08-10 14:00:51 UTC
That is a reasonable request. However, I cannot promise when and whether at all it will be implemented.
Comment 2 Jaroslav Havlin 2014-02-21 14:12:32 UTC
This feature would be probably more useful in Find in Projects. Reassigning back to Utilities/Search. However, thank you very much for checking of the issues.