I *really* like the jde-wiz-find-and-import addition to the JDE.
My one quibble with it is that I dislike being prompted for information
(the class name) that can be discovered from the context of the
invocation (the location of point).

So...

;;
;; probably should rely on the jde-parser rather than completion
;; for this, but I'm in a hurry
;;
(require 'completion)

(defun import-class-at-point ()
  "calls jde-wiz-find-and-import for the class name at point"
  (interactive)
  (let ((class-at-point (symbol-under-point)))
    (if class-at-point
        (jde-wiz-find-and-import class-at-point)
      )
    )
  )
;;

Bind this to a key (I use C-c C-i), put point on the Enumeration in

Enumeration e = vector.elements();

and press to insert.

Eric

Reply via email to