I've written a perl script that can be used with compilation mode to show
you which imports are extra.  Attached is the script.  Bind
check-java-imports-jps to a key and you're set.
(defun check-java-imports-jps ()
  (interactive)
  (compile (concat "perl d:/jschewe/projects/infra/scripts/imports.pl "
  (get-java-file-jps))))
(defun get-java-file-jps ()
  (interactive)
  (file-name-nondirectory (expand-file-name buffer-file-name)))



>-----Original Message-----
>From: Gunnar Bostr�m [mailto:[EMAIL PROTECTED]]
>Sent: Monday, October 23, 2000 1:42 AM
>To: [EMAIL PROTECTED]
>Subject: remove old import statements?
>
>
>Hi,
>
>I really like the "Import class wizard" but sometimes I forget 
>to remove old
>import statements. I would like to have a wizard that could 
>remove them for
>me. Has anyone done that?
>
>:-)
>

imports.pl

Reply via email to