Maybe it would be a good idea to let the user specify the regexps directly
in jde-imports-groups. That way a string like "javax?." would match both the
"java.*" and "javax.*" classes and order them in the same group.
--
knut
> -----Original Message-----
> From: David Ponce [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 08, 2000 5:12 PM
> To: jde
> Cc: david
> Subject: Improved command to organize import statements
>
> Hello All,
>
> 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
> << File: impgroup.el >>