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

Summary: ranking of java hints output
Product: java Reporter: fommil <fommil>
Component: HintsAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker CC: jlahoda
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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 javax.management package, but use JPA extensively... but every time I want to complete on the Query object, I am 
provided with the javax.management 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.