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.
When i try organize import section NB don't separate groups. I Expect to see something like that: --- import com.scc.gcmsetup.SchedulerDB; import electric.xml.Document; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; --- but i get this: --- import com.scc.gcmsetup.SchedulerDB; import electric.xml.Document; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; --- There are no separating new line between groups
Just for sure, did you check 'separate groups' in formatting setting?
Of course:)
Unfortunately, I cannot reproduce the problem in the current dev build. Could you please create a simple test project (containing a simple test source together with the corresponding formatting options) and attach it to the issue? Thanks.
Created attachment 124767 [details] Project to demonstrate lack of splitting out the import groups. 7.2 on Mac OS X (Mountain Lion) exhibits this behavior.
The separate groups works fine for the given file. The only thing which is maybe not so user friendly is that the user have to define the groups himself - e.g. there is not automatic detection of the groups but user has to enter java.text, java.util, etc in the formatting dialog.
I can confirm that this feature is working correctly @ Netbeans 7.2.1 (both on Windows and Linux) BUT it is important that the package group names do NOT end with a dot. So this works: java javax eu.infomas <all other imports> And this dus NOT work: java. javax. eu.infomas. <all other imports> This behaviour is not documented.
I still never see any empty lines between groups like in the past versions of Netbeans. I get --- import com.scc.gcmsetup.SchedulerDB; import electric.xml.Document; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; --- when I would expect --- import com.scc.gcmsetup.SchedulerDB; import electric.xml.Document; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; --- Also I never allow * for any imports. This appears to be the change with a standard installation of Netbeans. Now it appears you must enter the groups you want to have groups yourself instead of the automatic process like in the past. Is there no way to get the previous type functionality back?
In order option 'Separate groups' will work, you need to specify package names in the table above the option.