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 105002 - Comfortable search of special character in java files
Summary: Comfortable search of special character in java files
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 10:30 UTC by Jana Maleckova
Modified: 2009-02-19 23:18 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 Jana Maleckova 2007-05-29 10:30:57 UTC
Now smart search is supported in properties file when search engine is able to
find special character without user's effort to use escape sequences. 

e.g. it's sufficient to set "řeřicha" in engine instead of "\u0159e\u0159icha"

Would be nice if possible to use it for searching in java files.
Comment 1 Marian Petras 2008-01-16 14:27:38 UTC
It would be nice, indeed. But it would be a different task than the one for properties files.

For properties files, the solution was simply to define and assign a special encoding/decoding that is used for writing
to/reading from these files, no matter what encoding is set for the containing project. This is not possible for Java
files - they must reflect the project's encoding.

Another issue would be with highlighting the found string in the editor. If the search pattern was "řeřicha" and while
the source code editor would display "\u0159e\u0159icha" (i.e. not decoded), the highlighting routine would cope with
such a situation and highlight the proper 17 characters (not decoded) and not just 7 characters ("řeřicha") which would
be displayed in the search results.
Comment 2 Andrey Yamkovoy 2009-01-15 10:09:18 UTC
Now it's possible to find unicode characters.