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 57693 - Show usages for java elements in error stripe
Summary: Show usages for java elements in error stripe
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 5.x
Hardware: PC Windows ME/2000
: P3 blocker with 3 votes (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 21:04 UTC by pzgyuanf
Modified: 2008-05-22 18:25 UTC (History)
1 user (show)

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 pzgyuanf 2005-04-08 21:04:15 UTC
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.
Comment 1 Roman Strobl 2005-05-08 08:34:27 UTC
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?
Comment 2 Jan Lahoda 2005-05-08 16:48:58 UTC
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.
Comment 3 pzgyuanf 2005-06-23 05:05:58 UTC
You can see this feature at javalobby:
http://www.javalobby.org/java/forums/t19240.html
Comment 4 wqtnetbeans 2005-06-23 05:51:54 UTC
I agree with jlahoda@netbeans.org that the occurrences should only be highlighted.
Comment 5 pzgyuanf 2005-09-01 04:40:47 UTC
complement on user mail list:
http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=57405
Comment 6 Jesse Glick 2008-05-22 18:25:12 UTC
This was implemented in 6.0 already.