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.
Is there any plan to implement 'Mark Occurrences' of java lexer syntax, which meant highlighting the decaration and other reference occurrences when I select a referenced variable in editor and further displayed with different color(from declaration and referenced) in error strip.
To decode the enhancement: the goal is to show usages of a java element in error stripe. For instance: String te|st = "hello"; System.out.println(test); All occurences of test field in current file would be marked in error stripe as usages. They would appear once the users places caret on position marked by |. Declaration of the element would appear in error stripe as well but with different colour. User could click on the usages to jump there - it would make Find Usages and Go To Declaration much faster. Honzo, do you think it's a good idea or are there any pitfalls?
I think that marking occurrences makes sense. But, in my opinion, this is not a purelly Error Stripe feature: the Error Stripe should show only things that are already shown in the editor. The Error Stripe should not "think up" data. So, IMO, the occurrences should be highlighted (ideally using annotations) in the editor and the Error Stripe should only provide an overview for these highlights for the whole file.
You can see this feature at javalobby: http://www.javalobby.org/java/forums/t19240.html
I agree with jlahoda@netbeans.org that the occurrences should only be highlighted.
complement on user mail list: http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=57405
This was implemented in 6.0 already.