+In addition to sorting, associated packages can be grouped together to reduce
+complexity by packing related information into a common unit.
+
+Default grouping depth
+
+Lets you define the default grouping depth. Only takes effect if sorting is enabled.
+
+The grouping depth specifies the number of package name parts that are to
+be taken into account in order to determine whether two import statements are to
+be grouped together. For certain packages you may want to specify a grouping
+depth that differs from the default.
+
+Statements are to be grouped together, if all relevant parts are equal. So via
+the grouping depth you can effectively specify how many parts are relevant.
+
+To disable grouping at all, set the grouping depth to "0".
+
Example 4.137. Grouping depth java='1'
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.ArrayList;
+import java.util.List;
+ |
Example 4.138. Grouping depth java='2'
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import java.util.ArrayList;
+import java.util.List;
+ |
Example 4.139. Grouping depth java= '3'
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import java.util.ArrayList;
+import java.util.List;
+ |
+You can add/remove package fragments (e.g. javax, javax.swing or com.foo.sarah)
+via the Add... and Remove
+buttons to fine-tune the appearance for certain packages.
+
+To specify the order in which related statements should appear, you
+may want to use the Up and Down buttons.
+
+Note that the asterix represents all undefined packages.
+