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 185880 - improve tooltips on "is overriden" and "is implemented" editor gutter badges
Summary: improve tooltips on "is overriden" and "is implemented" editor gutter badges
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 08:42 UTC by Ondrej Langr
Modified: 2016-07-07 07:29 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 Ondrej Langr 2010-05-11 08:42:17 UTC
Use-case:

When I'm navigating in the code and come across "has implementations" badge, to find out the actual code implementing the interface, I need to navigate to it's implementation by clicking the gutter icon. However, this interrupts the flow and requires me to do extra navigation step even though what I really want may be just to know which code implements my interface. 

It would be nice flow optimization, if the tooltip on the gutter icon (currently "Has Implementations" would also show code snippet of actual implementation). If there are more implementations, short snippet of each could be shown.

The same for "override". 

Makes sense?
Comment 1 Vitezslav Stejskal 2010-05-11 11:13:17 UTC
(In reply to comment #0)
> Makes sense?

No, not to me :-). If anything, I would expect the list of implementation classes to show up in the tooltip. The same list as if you click the icon.
Comment 2 Ondrej Langr 2010-05-12 08:08:30 UTC
Yep, you're probably right about "has implementations" as there are typically more than one .. 

The case in which I came up with this is actually "is overriden". In that case, tooltip simply states "Is overriden", clicking navigates you there .. which is an abundant step if you do not want to edit the code, if you just want to know what code overrides the actual method. 

Or am I just getting too much inspired by code bubbles (http://www.cs.brown.edu/people/acb/codebubbles_site.htm)? 

:-)
Comment 3 Vitezslav Stejskal 2010-05-12 12:28:14 UTC
(In reply to comment #2)
> The case in which I came up with this is actually "is overriden". In that case,
> tooltip simply states "Is overriden", clicking navigates you there .. which is
> an abundant step if you do not want to edit the code, if you just want to know
> what code overrides the actual method. 

IMO the tooltip in this case should show a list of all classes (down the inheritance tree) that override the method. I don't really think that showing code in a tooltip is good idea.
Comment 4 malfunction84 2010-07-16 19:08:24 UTC
(In reply to comment #3)
> IMO the tooltip in this case should show a list of all classes (down the
> inheritance tree) that override the method. I don't really think that showing
> code in a tooltip is good idea.

Agreed.  Currently, the Implements tooltip does display "Implements method from: <package.ClassName>," and the Overrides tooltip displays "Overrides method from: <package.ClassName>."  It would be very useful to continue this trend for multiple methods across a hierarchy.

It sounds like the goal with the code snippets was to help differentiate between multiple methods in the hierarchy, which is still a legitimate concern.  Rather than using code snippets for this though, how about using the method's Javadoc?  You could click on the badge to pull up the list of classes, hover over a class, and the Javadoc for its method would appear in a second pane like it does for auto-completion.  Thoughts?
Comment 5 Martin Balin 2016-07-07 07:29:08 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss