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 130225 - syntax highlighting on fields: private, package, protected, public
Summary: syntax highlighting on fields: private, package, protected, public
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-15 19:41 UTC by mbarnes
Modified: 2013-09-02 14:23 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 mbarnes 2008-03-15 19:41:58 UTC
I tried using syntax highlighting on private/protected/public *elements*, but the highlighting includes elements from
other classes, not just the class that I'm currently editing.

For instance, with the following code:

  public Date date = new Date();

If public elements are displayed with a green background, "date" and both occurances of "Date" will have a a green
background because "Date" is a public class and "Date()" is a public constructor.

I don't find this highlighting of public classes and public members of other classes all that useful.  Actually, I find
it quite distracting.

It would be far more useful to highlight only the members of the current class.