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 43255 - [ui] Fast import adds unnecessary empty lines between the imports.
Summary: [ui] Fast import adds unnecessary empty lines between the imports.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
: 44317 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-14 09:04 UTC by _ rkubacki
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 _ rkubacki 2004-05-14 09:04:45 UTC
refactoring build from May 13, jdk1.5.0b50, Linux

Add import statement feature using ALT-SHIFT-I
shortcut used to add them according to
alphabetical order of imported classes. The
refactoring build add them to the end. Though it
is not a bug it is kind of regression.
Comment 1 Martin Matula 2004-06-06 21:40:51 UTC
Changing issue summary - imports are now ordered correctly, however
the formatting is wrong.
Try to invoke several fast imports. There are empty lines between the
imports which is wrong.
Comment 2 Jan Pokorsky 2004-06-08 14:19:08 UTC
*** Issue 44317 has been marked as a duplicate of this issue. ***
Comment 3 Tomas Hurka 2004-06-22 08:41:10 UTC
Moved to new subcomponent java/javacore.
Comment 4 Pavel Flaska 2004-06-22 16:18:08 UTC
Partially fixed. There are still problems when adding first/last imports.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/ImportImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ImportImpl.java,v
 <--  ImportImpl.java
new revision: 1.5; previous revision: 1.4
done
Processing log script arguments...
More commits to come...
Checking in
test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testCreation2_StaticImport.pass;
/cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testCreation2_StaticImport.pass,v
 <--  testCreation2_StaticImport.pass
new revision: 1.3; previous revision: 1.2
done
Checking in
test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testCreation_StaticImport.pass;
/cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testCreation_StaticImport.pass,v
 <--  testCreation_StaticImport.pass
new revision: 1.3; previous revision: 1.2
done
Checking in
test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testSetStatic_StaticImport.pass;
/cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testSetStatic_StaticImport.pass,v
 <--  testSetStatic_StaticImport.pass
new revision: 1.3; previous revision: 1.2
done
Processing log script arguments...
Comment 5 Pavel Flaska 2004-06-23 14:04:03 UTC
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java,v
 <--  MetadataElement.java
new revision: 1.13; previous revision: 1.12
done
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v
 <--  ResourceImpl.java
new revision: 1.13; previous revision: 1.12
done
Processing log script arguments...
More commits to come...
Checking in
test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testCreation2_StaticImport.pass;
/cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testCreation2_StaticImport.pass,v
 <--  testCreation2_StaticImport.pass
new revision: 1.4; previous revision: 1.3
done
Checking in
test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testCreation_StaticImport.pass;
/cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testCreation_StaticImport.pass,v
 <--  testCreation_StaticImport.pass
new revision: 1.4; previous revision: 1.3
done
Checking in
test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testSetStatic_StaticImport.pass;
/cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/StaticImportTest/testSetStatic_StaticImport.pass,v
 <--  testSetStatic_StaticImport.pass
new revision: 1.4; previous revision: 1.3
done
Comment 6 Quality Engineering 2007-09-20 10:57:40 UTC
Reorganization of java component