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 241822 - Adding import by code completion does not respect separate groups setting
Summary: Adding import by code completion does not respect separate groups setting
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-13 12:42 UTC by Jiri Prox
Modified: 2014-02-19 02:45 UTC (History)
0 users

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 Jiri Prox 2014-02-13 12:42:01 UTC
Adding import by code completion does not respect imports layers


Have a code:
package imports;

import java.util.LinkedList;
import java.util.List;

import java.io.File;
import java.io.FileReader;

/**
 *
 * @author jprox
 */
public class Layout {

    File a;

    FileReader b;

    List c;

    LinkedList d;

}

and set in import formatting following layers

<others> 
java.util
java.beans
java.io

Separate group - enabled


Use code completion to enter Beans 

-> 
import java.util.LinkedList;
import java.util.List;

import java.beans.Beans;  //here should be empty line
import java.io.File;
import java.io.FileReader;



Product Version: NetBeans IDE Dev (Build 201402120001)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b123
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Dusan Balek 2014-02-14 09:02:12 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/dabfa62b6547
Comment 2 Quality Engineering 2014-02-19 02:45:16 UTC
Integrated into 'main-silver', will be available in build *201402190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/dabfa62b6547
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #241822: Adding import by code completion does not respect separate groups setting - fixed.