jde-javadoc tempo-template-jde-javadoc-describe-field variable
hi, i am using (and have customized some templates) to use the jde-javadoc- functionality... I am not able to change the template for the variables, and get a javadoc comment like /** The name of the frame. */ public String name; instead of: /** * The name of the frame. */ public String name; Thanks in advance, Guifre
jdee 2.3.4beta1 RETURN complaint and jde-gen-embrace bug
Martin Dickau writes: Hi Paul, Just installed jdee 2.3.4beta1. Looks very nice. One complaint: I absolutely *HATE* having my return key overridden and having to do something to actively prevent it. Now I have yet another customization to maintain that I don't even really want to have IMO, even more annoying than when abbrev mode was turned on by default. FWIW. I'm planning to make this feature off by default. I did notice that it the jde-gen-embrace it's bound to does not honor my indentation style. For example, I have my indentation set up to get the now-not-in-favor alignment of close brace under beginning of keyword: There was a thread on getting jde-gen-embrace to honor a user's indentation styles that I did not follow very closely. I plan to review the thread and incorporate any ideas that are workable into an enhanced version of this feature. Paul try { } via: (setq c-basic-offset 4) (setq c-indent-level 4) (setq c-tab-always-indent nil) (setq tab-width 4) (setq-default tab-width 4) (setq default-tab-width 4) but when I used 2.3.4 with RET, I got: try { } (tab on the close-brace line shifts it back to the left, but that sort of defeats the purpose of having the code generated in the first place). Regards, Martin
RE: [ANNOUNCEMENT] JDEE 2.3.4beta1 available at ...
I was having 2.3.3 before and now installed this beta. While trying to do invoke ant using JDE/Build from the toolbar, I get the following jde-expand-directory: Symbol's function definition is void: jde-lib-excluded-file-names -Original Message- From: Paul Kinnucan [mailto:[EMAIL PROTECTED] Sent: Sunday, April 25, 2004 9:54 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [ANNOUNCEMENT] JDEE 2.3.4beta1 available at ... http://jdee.sunsite.dk/rootpage.html#Downloading The following lists the changes since JDEE 2.3.3. JDE 2.3.4beta1 *** * PLEASE READ * *** * * * This release requires semantic 1.4beta13 (or later),* * speedbar 0.14beta2 (or later), and * * eieio-0.17beta3 (or later). You can obtain all three* * packages at http://cedet.sourceforge.net* * * * This release requires version 1.2.2 (or later) of the * * JDK.* * * * This release also requires avltree.el, which is part of the * * elib 1.0 package. You can obtain elib at the JDE web site * * in compressed tar (http://jdee.sunsite.dk/elib.tar.gz) * * or zip (http://sunsite.dk/jde/elib.zip) format. * * * * JDEbug runs on Windows 2000 only if Service Pack 2 (or * * later) is installed.* * * * If syntax-coloring does not work, download and install * * overlay-fix.el from the semantic web site. * * * *** * Adds jde-lib-excluded-file-names customization variable. This variable allows you to specify jar or zip files not to include on the classpath from a jar file directory. Thanks to Troy Daniels. * Adds default option to jde-compile-option-source. This option compiles the source features that the compiler supports by default. * In the previous release, the Compile Server had the following problems: - The buffer modeline always says (Compilation: no process) even while it's compiling a file - The buffer doesn't auto hide when there are no errors - Even though jde-compile-jump-to-first-error is t, compilations don't jump to the first error. - Sometimes the buffer displays only part of an error message. - On a successful compile, the buffer displays the process return code: 0. These problems occurred because the beanshell interface stopped listening for compiler output after receiving the first chunck. This release fixes the problem. Thanks to Jörg Mensmann for diagnosing and fixing this bug. * Added a command (jde-import-all, JDE-Code Generation- Wizards-Import all, C-c C-v z) to import all classes that need to be imported into the current buffer. Thanks to Phillip Lord. * Fixed incorrect handling of jde-javadoc-gen-args option that caused a Lisp error. Thanks to Len Trigg for reporting this problem. * In previous releases, the Method Override Wizard did not permit overriding protected methods and did permit overriding final methods. This release fixes these problems. Thanks to David Esterkin. * Now supports completion of symbols declared in a declaration that declares a list of symbols, i.e., for b declared as String a, b, c; completion now completes: b.get ^ * Typing an open brace followed by Return now causes the JDEE to create an empty block with point positioned between the two braces, i.e., void foo() { ^ } You can turn off this behavior by removing the key binding for Return from jde-key-bindings. Thanks to Suraj Acharya. * Adds jde-help-wget-tries, jde-help-wget-timeout, and jde-help-wget-command-line-options variables. These variables allow you to specify how the JDEE should handle situations where a remote site does not respond to requests to download help pages. Thanks to Nick Sieger. * Fixes a bug that causes a (wrong-type-argument integerp nil) error when entering an import statement in a new Java file. Thanks to David Ponce. * Fixes bug that caused setting the jde-run-option-jar variable to t to cause a lisp error: Wrong argument (listp, null). Thanks to Stephanos Piperoglou. * Updates jde-import-excluded-packages to exclude packages that start with sun and com.sun. These packages contain classes named i and packages named e, which confuses the JDEE when it
jde-xref works for some methods, not for others
I have a large project (almost 2,000 Java files), and sometimes jde-xref works in finding callers, sometimes it doesn't. It seems to be on a per-class basis; i.e. any method in class A I can list callers, but in class B no callers are found for any methods. Looking at the xrefdb directory, it looks like the database was created correctly... i.e. the appropriate -caller file looks like it has the correct entry for class B, with all its methods. Any ideas what could be going on? Raul
RE: [ANNOUNCEMENT] JDEE 2.3.4beta1 available at ...
I had the same problem. This was solved by a patch that Christian posted yesterday: Hi, after unpacking and installing the latest beta, here is a patch I had to apply to jde.el to make compiling with Ant work (probably needed everywhere a classpath is needed :-) Hth, Christian diff -u h:\lisp\jde-2.3.4beta1\lisp\jde.el.orig h:\lisp\jde-2.3.4beta1\lisp\jde.el --- h:\lisp\jde-2.3.4beta1\lisp\jde.el.orig Tue Apr 27 08:37:18 2004 +++ h:\lisp\jde-2.3.4beta1\lisp\jde.el Tue Apr 27 08:37:18 2004 @@ -1475,7 +1475,7 @@ (loop for regexp in exclude-regexps do (if (string-match regexp file-name) (throw 'match t)) -(directory-files path t regexp +(directory-files path t include-regexp (defun jde-expand-classpath (classpath optional symbol) @@ -1502,7 +1502,7 @@ (jde-expand-directory path \\.jar$ - (jde-lib-excluded-file-names) + jde-lib-excluded-file-names symbol))) (setq paths (append @@ -1510,7 +1510,7 @@ (jde-expand-directory path \\.zip$ - (jde-lib-excluded-file-names) + jde-lib-excluded-file-names symbol (setq paths (append paths (list path) paths) -Original Message- From: Jayakrishnan Nair [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 3:44 PM To: [EMAIL PROTECTED] Subject: RE: [ANNOUNCEMENT] JDEE 2.3.4beta1 available at ... I was having 2.3.3 before and now installed this beta. While trying to do invoke ant using JDE/Build from the toolbar, I get the following jde-expand-directory: Symbol's function definition is void: jde-lib-excluded-file-names -Original Message- From: Paul Kinnucan [mailto:[EMAIL PROTECTED] Sent: Sunday, April 25, 2004 9:54 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [ANNOUNCEMENT] JDEE 2.3.4beta1 available at ... http://jdee.sunsite.dk/rootpage.html#Downloading The following lists the changes since JDEE 2.3.3. JDE 2.3.4beta1 *** * PLEASE READ * *** * * * This release requires semantic 1.4beta13 (or later),* * speedbar 0.14beta2 (or later), and * * eieio-0.17beta3 (or later). You can obtain all three* * packages at http://cedet.sourceforge.net* * * * This release requires version 1.2.2 (or later) of the * * JDK.* * * * This release also requires avltree.el, which is part of the * * elib 1.0 package. You can obtain elib at the JDE web site * * in compressed tar (http://jdee.sunsite.dk/elib.tar.gz) * * or zip (http://sunsite.dk/jde/elib.zip) format. * * * * JDEbug runs on Windows 2000 only if Service Pack 2 (or * * later) is installed.* * * * If syntax-coloring does not work, download and install * * overlay-fix.el from the semantic web site. * * * *** * Adds jde-lib-excluded-file-names customization variable. This variable allows you to specify jar or zip files not to include on the classpath from a jar file directory. Thanks to Troy Daniels. * Adds default option to jde-compile-option-source. This option compiles the source features that the compiler supports by default. * In the previous release, the Compile Server had the following problems: - The buffer modeline always says (Compilation: no process) even while it's compiling a file - The buffer doesn't auto hide when there are no errors - Even though jde-compile-jump-to-first-error is t, compilations don't jump to the first error. - Sometimes the buffer displays only part of an error message. - On a successful compile, the buffer displays the process return code: 0. These problems occurred because the beanshell interface stopped listening for compiler output after receiving the first chunck. This release fixes the problem. Thanks to Jörg Mensmann for diagnosing and
Re: jdee 2.3.4beta1 RETURN complaint and jde-gen-embrace bug
On Wed, 28 Apr 2004 14:30:20 -0400, Paul Kinnucan [EMAIL PROTECTED] wrote: Martin Dickau writes: Hi Paul, Just installed jdee 2.3.4beta1. Looks very nice. One complaint: I absolutely *HATE* having my return key overridden and having to do something to actively prevent it. Now I have yet another customization to maintain that I don't even really want to have IMO, even more annoying than when abbrev mode was turned on by default. FWIW. I'm planning to make this feature off by default. I did notice that it the jde-gen-embrace it's bound to does not honor my indentation style. For example, I have my indentation set up to get the now-not-in-favor alignment of close brace under beginning of keyword: There was a thread on getting jde-gen-embrace to honor a user's indentation styles that I did not follow very closely. I plan to review the thread and incorporate any ideas that are workable into an enhanced version of this feature. Paul try { } via: (setq c-basic-offset 4) (setq c-indent-level 4) (setq c-tab-always-indent nil) (setq tab-width 4) (setq-default tab-width 4) (setq default-tab-width 4) but when I used 2.3.4 with RET, I got: try { } (tab on the close-brace line shifts it back to the left, but that sort of defeats the purpose of having the code generated in the first place). Regards, Martin The gen-embrace code in the 2.3.4beta1 is from the start of the thread and is a bit buggy. The consensus at the end of the thread was that it would be nice we could get this functionalty in a way that was more in the spirit of realted cc-mode features. I think c-context-line-break is a good candidate to host this functionality (along with the special handling of returns inside strings). I am working on this and shall post the code to the cc-mode list when I'm done. So, since the code is half-baked now and will hopefully the feature will get into cc-mode someday, I suggest that it not be included in JDE. If however you want to use this feature in right now, you can use the code at the end of the old thread. For convenience I've pasted it here after ripping out the multi-line string stuff. To bind [return] to jde-electric-return. The code is much smarter about not inserting a close brace if it is not needed, jde-newline-function lets you customize which identation function you want for newlines and jde-gen-embrace lets you toggle the brace insertion. Suraj (defun jde-electric-return () (interactive) (cond ;; ((and jde-gen-complete-multi-line-string (jde-inside-string-literal)) ;; (jde-multi-line-string-enter)) ((and jde-gen-embrace (jde-line-end-at-open-brace)) (jde-gen-embrace)) (t (jde-newline)) ) ) (defcustom jde-newline-function '(newline) Indent command that the enter key calls. :group 'jde :type '(list (radio-button-choice :format %t \n%v :tag Function: :entry-format %b %v (const newline) (const newline-and-indent) (const align-newline-and-indent) (function my-custom-newline-function))) ) (defcustom jde-gen-embrace t Typing enter after a close brace at the end of a line will insert a matching closing brace (if required) and put point on a empty line between the braces and indent the new lines. So if before you had: pubic void function () { ^ You now have: pubic void function () { } ^ Point must be at the end of the line, or at a } character followed by the end of the line. If it thinks a matching close brace already exists a new one is not inserted. Before: pubic void function () { } ^ After: pubic void function () { } ^ :type 'boolean ) (defun jde-line-end-at-open-brace () (and (looking-back {\\s-* (line-beginning-position)) (looking-at }?\\s-*$))) (defun jde-gen-embrace () Adds a new line and inserts a matching close brace if required. See variable 'jde-gen-embrace. Assumes that 'jde-line-end-at-open-brace has been called and it returned true. (interactive) (let ((open-indent (current-indentation))) (when (looking-at }) ;; if there is a } after point, put it on a new line and come back (jde-newline) (end-of-line 0) ;; move to end of previous line ) ;; make a blank line (jde-newline) (when (save-excursion ( ;; parenthesis depth at point (car (parse-partial-sexp (point-min) (point))) ;; number of unmatched open parenthesis staring from point (- (car (parse-partial-sexp (point) (point-max) ) ;; add the } on a new indented line (insert }) (indent-according-to-mode) (end-of-line 0) ;; move to