Hi David,
Thanks for this feature!
My feedback: I would like an option to not specify groups, and have it
automatically insert the line break on changes in the first two sections of
the package/domain. e.g.
com.a.b
com.a.c.d
com.c.d
com.x.y
com.x.z
java.x.y
mno.g.h.i
would break/sort as
com.a.b
com.a.c.d
com.c.d
com.x.y
com.x.z
java.x.y
mno.g.h.i
> Behalf Of David Ponce
>
> The attached file impgroup.el contains the command `jde-order-imports'
> which organize the import statements of the Java source in the current
> buffer.
>
> Imports are organized into groups defined by `jde-imports-groups'.
> Groups are inserted in the order specified by `jde-imports-groups'.
> In each group imports are sorted by name alphabetically or in reverse
> order if `jde-imports-reverse-sort-group' is non-nil. A blank line is
> inserted between groups.
>
> M-x jde-order-imports group and sort import statements if needed.
> C-u M-x jde-order-imports force reordering.
>
> `jde-order-imports' needs the latest JDE 2.2.6 with semantic 1.3.1
> to work.
>
> Your feedback will be welcome.
>
> Sincerely,
> David