[jdee-users] Inserting a Javadoc comment
Brought to you by:
paullandes
From: Blue G. <blu...@gm...> - 2014-11-06 07:32:40
|
Hello, according to this manual, there is a command for inserting a Javadoc comment: "To insert a skeleton javadoc comment for a class or a method, position point in the first line of the method or class and select JDE > Document from the Emacs menubar or type C-c C-v j." http://jdee.sourceforge.net/contrib/jde-ug-content.pdf However, there is no such a menu item. There is an entry JDE > Documentation > add, but it is deactivated and not clickable. And when I hit the shortcut, I get the following error message: No tag found at point I am using JDEE Version 2.4.1 together with Emacs 24.4. What's going on here? Jay These are (hopefully) the relevant lines of my ~/.emacs: (global-set-key (kbd "C-x C-b") 'ibuffer) (autoload 'ibuffer "ibuffer" "List buffers." t) (desktop-save-mode 1) (setq-default indent-tabs-mode nil) (tool-bar-mode -1) (require 'package) (defun comment-or-uncomment-region-or-line () "Comments or uncomments the region or the current line if there's no active region." (interactive) (let (beg end) (if (region-active-p) (setq beg (region-beginning) end (region-end)) (setq beg (line-beginning-position) end (line-end-position))) (comment-or-uncomment-region beg end))) (global-set-key (kbd "C-c C-t") 'comment-or-uncomment-region-or-line) ;;------------------------------------------------------------ ;; JDEE: (add-to-list 'load-path "~/.emacs.d/jdee-2.4.1/lisp") (load "jde") (add-hook 'java-mode-hook (lambda() (autopair-mode) (auto-complete-mode) (flymake-mode-on) (flycheck-mode -1) ) ) (add-to-list 'load-path "~/.emacs.d/ajc-java-complete/") (require 'ajc-java-complete-config) (add-hook 'java-mode-hook 'ajc-java-complete-mode) (add-hook 'find-file-hook 'ajc-4-jsp-find-file-hook) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(cedet-java-jdk-root "/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/") '(company-backends (quote (company-eclim (company-dabbrev-code company-gtags company-etags company-keywords) company-oddmuse company-files company-dabbrev))) '(custom-enabled-themes (quote (deeper-blue))) '(ecb-layout-name "left11") '(ecb-primary-secondary-mouse-buttons (quote mouse-1--C-mouse-1)) '(ecb-source-path (quote (("/" "/")))) '(global-semantic-show-unmatched-syntax-mode t) '(jde-make-working-directory "~/path/to/src/") '(semanticdb-javap-classpath (quote ("/Library/Java/JavaVirtualMachines/1.6.0_51-b11-457.jdk/Contents/Classes/classes.jar"))) '(yas-snippet-dirs (quote (yas-installed-snippets-dir "/path/to/snippets")) nil (yasnippet))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) |