;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; JDE Configuration Commands

;; Include the speedbar (GNU emacs)
(unless (string-match "XEmacs" emacs-version)
  (define-key-after (lookup-key global-map [menu-bar tools])
    [speedbar] '("Speedbar" . speedbar-frame-mode) [calendar])
)

; Include pwd of a source file in the sourcepath for compilation
(setq jde-sourcepath (quote (".")))       

;; Include pwd of a source file in the classpath for compilation
(setq jde-global-classpath (quote ("."))) 

; Always include debug info when using JDE to compile
(setq jde-compile-option-command-line-args (quote ("-g")))

; Tell JDE where to find the JDK (i.e., javac, java, and jdb)
(setq jde-jdk-registry 
      (quote (("1.6" . "/usr/lib/jvm/java-6-openjdk"))))

; Tell JDE which JDK to use
(setq jde-jdk (quote ("1.6")))

; In case we use emacs for other things, delay the (lengthy) loading
; of JDE until a Java file is actually opened
(setq defer-loading-jde t)
(if defer-loading-jde 
    (progn
      (autoload 'jde-mode "jde" "JDE mode." t)
      (setq auto-mode-alist
            (append 
             '(("\\.java\\'" . jde-mode))
             auto-mode-alist)))
  (require 'jde))

;; <end> JDE Config
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;