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 59509 - auto-import should also work when the use types the full class name
Summary: auto-import should also work when the use types the full class name
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-01 15:57 UTC by _ gsporar
Modified: 2010-09-23 08:35 UTC (History)
0 users

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 _ gsporar 2005-06-01 15:57:53 UTC
If I type the following:

  JOptionP

and then press Cntrl-Space NB suggests JOptionPane.  If I press enter to let it
complete the code then NB will add an import for JOptionPane at the top of the
file.  But if instead I type this:

  JOptionPane.showM

and then press Cntrl-Space NB suggests the showMessageDialog()  method from
JOptionPane.  If I press enter to let it complete the  code then NB does *not*
add an import for JOptionPane.  I have to use  Fix Imports to then get the
import for JOptionPane.  That's inconvenient because it forces me to change the
way I work in order to get the auto-import functionality.  I would like for
auto-import to work regardless of how much of the class name I type.
Comment 1 Martin Matula 2005-06-02 08:29:14 UTC
Reassigning to Mila for further evaluation. We should fix this for promoF if
possible.
Comment 2 Vitezslav Stejskal 2006-12-04 23:26:05 UTC
That's surely a java/editor problem, isn't it?