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 47683 - [40cat] Import management tool
Summary: [40cat] Import management tool
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-23 10:08 UTC by ihepda
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ihepda 2004-08-23 10:08:55 UTC
[ BUILD # : 200808181800 ]
[ JDK VERSION : J2SE 1.5.0 ]

When I write a class I don't find more the Import Management Tool in Tool menu.

This tool can correct all imports in the class (see the overriden methods and synchonized function that use the fully qualified name)
Comment 1 Martin Matula 2004-08-23 10:11:58 UTC
IMT was replaced by Fix Imports action available from editor pop-up
menu (Alt-Shift-F).
Comment 2 ihepda 2004-08-23 10:27:38 UTC
The Fix Import don't work
Comment 3 Martin Matula 2004-08-23 10:29:33 UTC
If it does not work for you then it is probably a bug. Please file a
separate issue and provide the steps to reproduce your problem. Thanks.
Comment 4 shemnon 2004-08-25 18:17:42 UTC
Is this addressed by bug 47599?  The answer there is "not for 4.0"
Comment 5 Martin Matula 2004-08-26 09:11:52 UTC
I don't understand the question.
Comment 6 ihepda 2004-08-26 09:34:50 UTC
I see that the fix import work. But leak a feature IMT like:

this is,
-the ability to group imports by package or individually
-the ability to specify that an identifier should be left in as a     
full class name rather than an import

The synchronize tool tends to bring in fully qualified class names 
and with the fix import tool you can't correct in import
Comment 7 ihepda 2004-08-26 09:38:30 UTC
Can IMT be used how a external installable plugin of NB 4?
Comment 8 Martin Matula 2004-08-26 09:41:29 UTC
I see. Yes, that's covered by issue 47599. I don't think you can use
the IMT as a plugin.
Comment 9 Martin Matula 2004-08-26 09:50:44 UTC
I should add the reasons why we made this change:
1) IMT relayed on old javac compiler that was (and no longer is)
cobundled with NB
2) IMT did not support static imports
3) it worked on top of the old org.openide.src language API that is
readonly for sources that contain generics and other JDK 5.0 features,
so it would not work for files that contains those
4) users were complaining that it is too complex and confusing (only
advanced users were able to make use of it)
5) there was a need for simpler ways of optimizing imports without too
much asking
So, we had to completely rewrite the fix imports functionality. The
goal was to fully support the settings that IMT did, but with the
given timeframe and resource constraints, for 4.0 we were only able to
provide this basic functionality of adding/removing imports.