Hi there,

It looks like (my copy of) JDE only supports looking up the front page
of javadocs, and not a particular class. That's a feature that I
really need, so I wrote a function to look it up. Attached incase its
useful to JDE.

I haven't used JDE in a while, apologies if this is redundant.

Cheers,
Luke

;; setq this to something suitable for you. Trailing / is needed.
(defvar javadocs-base-path "file:/usr/local/jdk1.2.2-sun-rc/docs/api/")

(defun class-javadoc (class)
  "Load the javadocs for a particular class in a web-browser."
  (interactive "sClass name: ")
  (browse-url (classname-to-path class) browse-url-new-window-p))

(defun classname-to-path (class)
  (concat javadocs-base-path
          (string-replace-match "\\." class "/" t t)
          ".html"))

Reply via email to