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 47686 - [40cat] Make Fix Imports more configurable
Summary: [40cat] Make Fix Imports more configurable
Status: RESOLVED DUPLICATE of bug 47599
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:57 UTC by ihepda
Modified: 2007-09-26 09:14 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 ihepda 2004-08-23 10:57:51 UTC
[ BUILD # : 200408221800 ]
[ JDK VERSION : J2SE 1.5.0 ]

When I use the fix import tool doesn't happen anything.

But how can configure this tool ? Ie, if I want all import or I want an import any 3 qualified names
Comment 1 Martin Matula 2004-08-23 12:46:11 UTC
Fix Import does not do anything if there is nothing to be imported. If
there are some imports missing, Fix Imports add them, if there are
some unused imports, Fix Imports removes them. That's it. Does this
not work for you? What exactly does not work? Could you please provide
exact (step-by-step) instructions on how to reproduce your problem?
Comment 2 ihepda 2004-08-23 13:39:05 UTC
The previous Import management tool ordered the import.
You could choose if you want all import, all fully qualified names 
and other.

Now You can only add or remove import:

If you 
create a java application project
create a class that extends Hashtable(for example)
and override the metod element()
you will see that the signature is :
 public java.util.Enumeration elements() {

The Enumeration have a fully qualified name but I want that all 
classes must be the import in head to the class
ie:
import java.util.Hashtable;
import java.util.Enumeration;
public class Test extends Hashtable{
    
    /** Creates a new instance of Test */
    public Test() {
    }

    public Enumeration elements() {

        java.util.Enumeration retValue;
        
        retValue = super.elements();
        return retValue;
    }
    
}

With the previuos IMT the import was ordered.
Comment 3 Martin Matula 2004-08-23 13:45:51 UTC
OK, I see what you mean. This is as designed. The fix imports
functionality will be improved in the next release.
Comment 4 Martin Matula 2004-11-12 23:59:09 UTC

*** This issue has been marked as a duplicate of 47599 ***