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.
Summary: | improve tooltips on "is overriden" and "is implemented" editor gutter badges | ||
---|---|---|---|
Product: | editor | Reporter: | Ondrej Langr <olangr> |
Component: | Hints & Annotations | Assignee: | Milutin Kristofic <mkristofic> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | malfunction84 |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Ondrej Langr
2010-05-11 08:42: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. 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)? :-) (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. (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? 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 |