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 - [65cat] Fix imports should really only show imports with choices
Summary: [65cat] Fix imports should really only show imports with choices
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-26 14:19 UTC by Unknown
Modified: 2013-09-02 14:23 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 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.