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 125577 - ranking of java hints output
Summary: ranking of java hints output
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2008-01-18 16:14 UTC by fommil
Modified: 2009-04-12 11:19 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description fommil 2008-01-18 16:14:59 UTC
In Eclipse, the code complete/hinter will remember the user's preferred choice for certain kinds of completions (e.g. importing classes) and use this to rank 
the list the next time the user asks for it for help.

Another example is when the hinter suggests a fix for an undefined variable. I tend to prefer local variables over fields or adding parameters, so Eclipse 
quickly learns to place this as the first option, whereas NetBeans keeps it at the bottom of the list.
Comment 1 fommil 2008-03-20 21:51:38 UTC
Has this anyone been assigned to anyone?
Comment 2 fommil 2008-09-05 11:51:17 UTC
Is anybody considering this? It would be an incredible feature to have... an editor that learns your preferred classes from your codebase!

For example, I've never ever used the package, but use JPA extensively... but every time I want to complete on the Query object, I am 
provided with the class first, and the javax.persistence one second. If results were ranked, I wouldn't need to be annoyed by having to 
delete the mistaken import when I forget to choose the second option.