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 234074

Summary: Formatting: Imports: Moving incomplete name removes <all other imports> name
Product: editor Reporter: MackSix
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: REOPENED ---    
Severity: normal CC: MackSix
Priority: P4    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description MackSix 2013-08-07 11:46:18 UTC
1. Goto Tools>>Options>>Editor>>Formatting>>Language: Java, Category: Imports.
2. In Import Layout table, click Add button. (Don't click on table or press Enter!)
3. Now click the Move Up button.
4. Observe name "<All Other Imports>" is removed.
5. Click on each line and delete them. Now there is no entry.

Workaround: It's Ok, just click Apply button and "<All Other Imports>" comes back!

Product Version: NetBeans IDE Dev (Build 201308062300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Martin Balin 2016-07-07 07:26:38 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 2 MackSix 2016-07-27 07:51:18 UTC
Still valid in:

Product Version: NetBeans IDE Dev (Build 201607220002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)



1. Goto Tools>>Options>>Editor>>Formatting>>Language: Java, Category: Imports.
2. In Import Layout table, click Add button. (Don't click on table or press Enter!)
3. Now click the Move Up button.
4. Observe name "<All Other Imports>" is removed. 
5. Click on the top row (blue highlighted) and click Delete Button.
6. Highlight remaining row and click Delete Button.

Workaround: Close Options and reopen or add new entry, press Enter, press Apply Button and the row with "<All Other Imports>" reappears.