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 145149

Summary: [65cat] Fix imports should really only show imports with choices
Product: java Reporter: Unknown <non_migrated_user>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker CC: olangr
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Unknown 2008-08-26 14:19:10 UTC
[ BUILD # : 200808260201 ]
[ JDK VERSION : 1.6.0_07 ]

When I choose fix imports, I am sometimes presented with imports in
disabled comboboxes.  I assume that's because only one package can
satisfy the imports needed by the classes in the particular source
file.
So my question is, why show it if you can't make a choice?  In my
case,
if I delete the imports, then choose fix imports, I get presented
with
the fix import dialog with comboboxes in a scrollpane.  If I'm not
careful to scroll it, then I'll potential import the wrong package. 
It
seems that if the "no-choice" comboboxes were removed, it would save
real estate and make the the fix imports less error prone.
Comment 1 Vitezslav Stejskal 2008-08-28 12:37:17 UTC
Sounds fair to me. Ondro, what do you think?
Comment 2 Ondrej Langr 2008-08-28 14:20:27 UTC
I totally agree with this enhancement.