complete
Hi I have been using JDEE for a while but I cant get auto complete to work on my own classes. It says No completions available at this time. My entire project builds (with and without ant) so I must have my classpath setup correctly. Is there something else I need to set? I noticed that there bsh-commands directory in my xemacs packages - do i need that or is that only present in later versions? Thanks Richard
Re: complete
Thanks for your help My version of jde is jde-2.3.2. I have nothing in my prj.el since I am setting all the options in the menus. my source path is [INS] [DEL] Path: ~/workspace/product/ota/src/ [INS] [DEL] Path: ~/workspace/product/axis/src/ [INS] [DEL] Path: ~/workspace/product/db/src/ [INS] [DEL] Path: ~/workspace/product/net/src/ [INS] [DEL] Path: ~/workspace/product/netsh/src/ [INS] [DEL] Path: ~/workspace/product/spine/src/ [INS] [DEL] Path: /data/JBoss-2.4.10_Tomcat-3.2.3/jboss/lib/ext/jboss.jar the output from the bsh buffer is cd /users/richard/workspace/product/ota/src/system/servlet/ /usr/java/jdk1.3.1_04/bin/java -classpath /usr/share/xemacs/xemacs-packages/etc/jde/java/bsh-commands:/usr/java/jdk1.3.1_04/lib/tools.jar:/opt/java/jakarta-ant-1.5/lib/ant.jar:/opt/java/jakarta-ant-1.5/lib/clover.jar:/opt/java/jakarta-ant-1.5/lib/genjar.jar:/opt/java/jakarta-ant-1.5/lib/junit.jar:/opt/java/jakarta-ant-1.5/lib/optional.jar:/opt/java/jakarta-ant-1.5/lib/xercesImpl.jar:/opt/java/jakarta-ant-1.5/lib/xml-apis.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/checkstyle-all.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jakarta-regexp.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jde.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/bsh.jar:/users/richard/workspace/product/ota/src/:/users/richard/workspace/product/axis/src/:/users/richard/workspace/product/db/src/:/users/richard/workspace/product/net/src/:/users/richard/workspace/product/netsh/src/:/users/richard/workspace/product/spine/src/ bsh.Interpreter BeanShell 1.2.7 - by Pat Niemeyer ([EMAIL PROTECTED]) bsh % Cheers Richard Paul Landes wrote: Auto completion uses bsh to do classpath lookups using `jde-sourcepath'; are you setting this? We don't have much to go on, can you please post your prj.el, JDEE version (`jde-version') and any other configuration, please. Richard Martin writes: > Hi > > I have been using JDEE for a while but I cant get auto complete to work > on my own classes. It says No completions available at this time. My > entire project builds (with and without ant) so I > must have my classpath setup correctly. Is there something else I need > to set? > > I noticed that there bsh-commands directory in my xemacs packages - do i > need that or is that only present in later versions? > > Thanks > Richard >
Re: complete
Unless something has changed recently you would also need to setup your jde-global-classpath to point to the classes generated from these sources. Your classpath for bsh also has the directories from your sourcepath. If you are using a beanshell 2.0 jar and you know that bsh can parse your .java files without any problems you might be ok, but otherwise you need to jde-sourcepath to include only your src directories and put in all external jars and directories or jars of genrated classes in jde-global-classpath. Suraj Richard Martin wrote: Thanks for your help My version of jde is jde-2.3.2. I have nothing in my prj.el since I am setting all the options in the menus. my source path is [INS] [DEL] Path: ~/workspace/product/ota/src/ [INS] [DEL] Path: ~/workspace/product/axis/src/ [INS] [DEL] Path: ~/workspace/product/db/src/ [INS] [DEL] Path: ~/workspace/product/net/src/ [INS] [DEL] Path: ~/workspace/product/netsh/src/ [INS] [DEL] Path: ~/workspace/product/spine/src/ [INS] [DEL] Path: /data/JBoss-2.4.10_Tomcat-3.2.3/jboss/lib/ext/jboss.jar the output from the bsh buffer is cd /users/richard/workspace/product/ota/src/system/servlet/ /usr/java/jdk1.3.1_04/bin/java -classpath /usr/share/xemacs/xemacs-packages/etc/jde/java/bsh-commands:/usr/java/jdk1.3.1_04/lib/tools.jar:/opt/java/jakarta-ant-1.5/lib/ant.jar:/opt/java/jakarta-ant-1.5/lib/clover.jar:/opt/java/jakarta-ant-1.5/lib/genjar.jar:/opt/java/jakarta-ant-1.5/lib/junit.jar:/opt/java/jakarta-ant-1.5/lib/optional.jar:/opt/java/jakarta-ant-1.5/lib/xercesImpl.jar:/opt/java/jakarta-ant-1.5/lib/xml-apis.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/checkstyle-all.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jakarta-regexp.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jde.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/bsh.jar:/users/richard/workspace/product/ota/src/:/users/richard/workspace/product/axis/src/:/users/richard/workspace/product/db/src/:/users/richard/workspace/product/net/src/:/users/richard/workspace/product/netsh/src/:/users/richard/workspace/product/spine/src/ bsh.Interpreter BeanShell 1.2.7 - by Pat Niemeyer ([EMAIL PROTECTED]) bsh % Cheers Richard Paul Landes wrote: Auto completion uses bsh to do classpath lookups using `jde-sourcepath'; are you setting this? We don't have much to go on, can you please post your prj.el, JDEE version (`jde-version') and any other configuration, please. Richard Martin writes: > Hi > > I have been using JDEE for a while but I cant get auto complete to work > on my own classes. It says No completions available at this time. My > entire project builds (with and without ant) so I > must have my classpath setup correctly. Is there something else I need > to set? > > I noticed that there bsh-commands directory in my xemacs packages - do i > need that or is that only present in later versions? > > Thanks > Richard >
Re: complete
Suraj Acharya writes: > Unless something has changed recently you would also need to setup your > jde-global-classpath to point to the classes generated from these sources. > Your classpath for bsh also has the directories from your sourcepath. If > you are using a beanshell 2.0 jar and you know that bsh can parse your > .java files without any problems you might be ok, but otherwise you need > to jde-sourcepath to include only your src directories and put in all > external jars and directories or jars of genrated classes in > jde-global-classpath. > Yes. Completion works only for compiled classes specified on jde-global-classpath plus the JDK classes. Completion does not use jde-sourcepath. Richard, it would help if you filed a complete problem report and told us the paths of the classes that the JDEE is failing to complete. Paul > Suraj > > Richard Martin wrote: > > > Thanks for your help > > > > My version of jde is jde-2.3.2. I have nothing in my prj.el since I am > > setting all the options in the menus. > > > > my source path is > > > > [INS] [DEL] Path: ~/workspace/product/ota/src/ > > [INS] [DEL] Path: ~/workspace/product/axis/src/ > > [INS] [DEL] Path: ~/workspace/product/db/src/ > > [INS] [DEL] Path: ~/workspace/product/net/src/ > > [INS] [DEL] Path: ~/workspace/product/netsh/src/ > > [INS] [DEL] Path: ~/workspace/product/spine/src/ > > [INS] [DEL] Path: /data/JBoss-2.4.10_Tomcat-3.2.3/jboss/lib/ext/jboss.jar > > > > the output from the bsh buffer is > > > > cd /users/richard/workspace/product/ota/src/system/servlet/ > > /usr/java/jdk1.3.1_04/bin/java -classpath > > /usr/share/xemacs/xemacs-packages/etc/jde/java/bsh-commands:/usr/java/jdk1.3.1_04/lib/tools.jar:/opt/java/jakarta-ant-1.5/lib/ant.jar:/opt/java/jakarta-ant-1.5/lib/clover.jar:/opt/java/jakarta-ant-1.5/lib/genjar.jar:/opt/java/jakarta-ant-1.5/lib/junit.jar:/opt/java/jakarta-ant-1.5/lib/optional.jar:/opt/java/jakarta-ant-1.5/lib/xercesImpl.jar:/opt/java/jakarta-ant-1.5/lib/xml-apis.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/checkstyle-all.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jakarta-regexp.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jde.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/bsh.jar:/users/richard/workspace/product/ota/src/:/users/richard/workspace/product/axis/src/:/users/richard/workspace/product/db/src/:/users/richard/workspace/product/net/src/:/users/richard/workspace/product/netsh/src/:/users/richard/workspace/product/spine/src/ > > > > bsh.Interpreter > > > > BeanShell 1.2.7 - by Pat Niemeyer ([EMAIL PROTECTED]) > > bsh % > > > > Cheers > > Richard > > > > Paul Landes wrote: > > > >> Auto completion uses bsh to do classpath lookups using > >> `jde-sourcepath'; are you setting this? > >> > >> We don't have much to go on, can you please post your > >> prj.el, JDEE version (`jde-version') and any other > >> configuration, please. > >> > >> Richard Martin writes: > >> > Hi > >> > > I have been using JDEE for a while but I cant get auto complete > >> to work > >> > on my own classes. It says No completions available at this time. My > >> > entire project builds (with and without ant) so I > >> > must have my classpath setup correctly. Is there something else I need > >> > to set? > >> > > I noticed that there bsh-commands directory in my xemacs packages > >> - do i > >> > need that or is that only present in later versions? > >> > > Thanks > >> > Richard > >> > > >> > >> > >> > > > > > >
Re: complete
Thanks for your help everyone - I think I'm getting somewhere. It now says "Beanshell eval error. See messages buffer for details." but in the bsh buffer there is no error output - am i looking in the wrong place? On Thu, 2004-02-19 at 05:49, Paul Kinnucan wrote: > Suraj Acharya writes: > > Unless something has changed recently you would also need to setup your > > jde-global-classpath to point to the classes generated from these sources. > > Your classpath for bsh also has the directories from your sourcepath. If > > you are using a beanshell 2.0 jar and you know that bsh can parse your > > .java files without any problems you might be ok, but otherwise you need > > to jde-sourcepath to include only your src directories and put in all > > external jars and directories or jars of genrated classes in > > jde-global-classpath. > > > > Yes. Completion works only for compiled classes specified on > jde-global-classpath plus the JDK classes. Completion does not use > jde-sourcepath. Richard, it would help if you filed a complete problem report and > told us the paths of the classes that the JDEE is failing to complete. > > Paul > > > > Suraj > > > > Richard Martin wrote: > > > > > Thanks for your help > > > > > > My version of jde is jde-2.3.2. I have nothing in my prj.el since I am > > > setting all the options in the menus. > > > > > > my source path is > > > > > > [INS] [DEL] Path: ~/workspace/product/ota/src/ > > > [INS] [DEL] Path: ~/workspace/product/axis/src/ > > > [INS] [DEL] Path: ~/workspace/product/db/src/ > > > [INS] [DEL] Path: ~/workspace/product/net/src/ > > > [INS] [DEL] Path: ~/workspace/product/netsh/src/ > > > [INS] [DEL] Path: ~/workspace/product/spine/src/ > > > [INS] [DEL] Path: /data/JBoss-2.4.10_Tomcat-3.2.3/jboss/lib/ext/jboss.jar > > > > > > the output from the bsh buffer is > > > > > > cd /users/richard/workspace/product/ota/src/system/servlet/ > > > /usr/java/jdk1.3.1_04/bin/java -classpath > > > > /usr/share/xemacs/xemacs-packages/etc/jde/java/bsh-commands:/usr/java/jdk1.3.1_04/lib/tools.jar:/opt/java/jakarta-ant-1.5/lib/ant.jar:/opt/java/jakarta-ant-1.5/lib/clover.jar:/opt/java/jakarta-ant-1.5/lib/genjar.jar:/opt/java/jakarta-ant-1.5/lib/junit.jar:/opt/java/jakarta-ant-1.5/lib/optional.jar:/opt/java/jakarta-ant-1.5/lib/xercesImpl.jar:/opt/java/jakarta-ant-1.5/lib/xml-apis.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/checkstyle-all.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jakarta-regexp.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jde.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/bsh.jar:/users/richard/workspace/product/ota/src/:/users/richard/workspace/product/axis/src/:/users/richard/workspace/product/db/src/:/users/richard/workspace/product/net/src/:/users/richard/workspace/product/netsh/src/:/users/richard/workspace/product/spine/src/ > > > > bsh.Interpreter > > > > > > BeanShell 1.2.7 - by Pat Niemeyer ([EMAIL PROTECTED]) > > > bsh % > > > > > > Cheers > > > Richard > > > > > > Paul Landes wrote: > > > > > >> Auto completion uses bsh to do classpath lookups using > > >> `jde-sourcepath'; are you setting this? > > >> > > >> We don't have much to go on, can you please post your > > >> prj.el, JDEE version (`jde-version') and any other > > >> configuration, please. > > >> > > >> Richard Martin writes: > > >> > Hi > > >> > > I have been using JDEE for a while but I cant get auto complete > > >> to work > > >> > on my own classes. It says No completions available at this time. My > > >> > entire project builds (with and without ant) so I > > >> > must have my classpath setup correctly. Is there something else I need > > >> > to set? > > >> > > I noticed that there bsh-commands directory in my xemacs packages > > >> - do i > > >> > need that or is that only present in later versions? > > >> > > Thanks > > >> > Richard > > >> > > > >> > > >> > > >> > > > > > > > > > > -- Richard Martin <[EMAIL PROTECTED]> AePONA Ltd
RE: complete
The buffer to look in is the one called *Messages* (I think it might have a different name on XEmacs). But as Paul says, the best thing to do when asking for help is using the JDE/Help/Submit Problem Report function in the menu. That is, provoke the error, then do a "Submit Problem Report". That will generate a large buffer with all the necessary information for people to try to solve the problem. Just email that to this list. / Petter > -Original Message- > From: Richard Martin [mailto:[EMAIL PROTECTED] > Sent: den 19 februari 2004 11:29 > To: Paul Kinnucan > Cc: Suraj Acharya; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: complete > > > Thanks for your help everyone - I think I'm getting somewhere. It now > says > > "Beanshell eval error. See messages buffer for details." > > but in the bsh buffer there is no error output - am i looking in the > wrong place? > > On Thu, 2004-02-19 at 05:49, Paul Kinnucan wrote: > > Suraj Acharya writes: > > > Unless something has changed recently you would also > need to setup your > > > jde-global-classpath to point to the classes generated > from these sources. > > > Your classpath for bsh also has the directories from > your sourcepath. If > > > you are using a beanshell 2.0 jar and you know that bsh > can parse your > > > .java files without any problems you might be ok, but > otherwise you need > > > to jde-sourcepath to include only your src directories > and put in all > > > external jars and directories or jars of genrated classes in > > > jde-global-classpath. > > > > > > > Yes. Completion works only for compiled classes specified on > > jde-global-classpath plus the JDK classes. Completion does not use > > jde-sourcepath. Richard, it would help if you filed a > complete problem report and told us the paths of the classes > that the JDEE is failing to complete. > > > > Paul > > > > > > > Suraj > > > > > > Richard Martin wrote: > > > > > > > Thanks for your help > > > > > > > > My version of jde is jde-2.3.2. I have nothing in my > prj.el since I am > > > > setting all the options in the menus. > > > > > > > > my source path is > > > > > > > > [INS] [DEL] Path: ~/workspace/product/ota/src/ > > > > [INS] [DEL] Path: ~/workspace/product/axis/src/ > > > > [INS] [DEL] Path: ~/workspace/product/db/src/ > > > > [INS] [DEL] Path: ~/workspace/product/net/src/ > > > > [INS] [DEL] Path: ~/workspace/product/netsh/src/ > > > > [INS] [DEL] Path: ~/workspace/product/spine/src/ > > > > [INS] [DEL] Path: > /data/JBoss-2.4.10_Tomcat-3.2.3/jboss/lib/ext/jboss.jar > > > > > > > > the output from the bsh buffer is > > > > > > > > cd /users/richard/workspace/product/ota/src/system/servlet/ > > > > /usr/java/jdk1.3.1_04/bin/java -classpath > > > > > /usr/share/xemacs/xemacs-packages/etc/jde/java/bsh-commands:/u sr/java/jdk1.3.1_> 04/lib/tools.jar:/opt/java/jakarta-ant-1.5/lib/ant.jar:/opt/ja > va/jakarta-ant-1.5/lib/clover.jar:/opt/java/jakarta-ant-1.5/li b/genjar.jar:/opt/java/jakarta-ant-> 1.5/lib/junit.jar:/opt/java/jakarta-ant-1.5/lib/optional.jar:/ > opt/java/jakarta-ant-1.5/lib/xercesImpl.jar:/opt/java/jakarta- > ant-1.5/lib/xml-apis.jar:/usr/share/xemacs/xemacs-packages/etc /jde/java/lib/checkstyle-> all.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/lib/jak > arta-regexp.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java > /lib/jde.jar:/usr/share/xemacs/xemacs-packages/etc/jde/java/li > b/bsh.jar:/users/richard/workspace/product/ota/src/:/users/ric > hard/workspace/product/axis/src/:/users/richard/workspace/prod > uct/db/src/:/users/richard/workspace/product/net/src/:/users/r > ichard/workspace/product/netsh/src/:/users/richard/workspace/p > roduct/spine/src/ > > > > bsh.Interpreter > > > > > > > > BeanShell 1.2.7 - by Pat Niemeyer ([EMAIL PROTECTED]) > > > > bsh % > > > > > > > > Cheers > > > > Richard > > > > > > > > Paul Landes wrote: > > > > > > > >> Auto completion uses bsh to do classpath lookups using > > > >> `jde-sourcepath'; are you setting this? > > > >> > > > >> We don't have much to go on, can you please post your > > > >> prj.el, JDEE version (`jde-version') and any other > > > >> configuration, please. > > > >> > > > >> Richard Martin writes: > > > >> > Hi > > > >> > > I have been using JDEE for a while but I cant get > auto complete > > > >> to work > > > >> > on my own classes. It says No completions available > at this time. My > > > >> > entire project builds (with and without ant) so I > > > >> > must have my classpath setup correctly. Is there > something else I need > > > >> > to set? > > > >> > > I noticed that there bsh-commands directory in my > xemacs packages > > > >> - do i > > > >> > need that or is that only present in later versions? > > > >> > > Thanks > > > >> > Richard > > > >> > > > > >> > > > >> > > > >> > > > > > > > > > > > > > > > -- > Richard Martin <[EMAIL PROTECTED]> > AePONA Ltd >
JDE Complete Menu
I am currently using dabbrev-completion to complete variable names in a Java buffer. How difficult would it be to add this functionality to the JDE Complete Menu function? For example, if there is a ".", then the jde-complete-menu as it now would be called and if a "." is not present then dabbrev-completion function would be called. Can this be added to the wish list? __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
JDE Complete Menu
Jeba Bhaskaran writes: > I am currently using dabbrev-completion to complete > variable names in a Java buffer. How difficult would > it be to add this functionality to the JDE Complete > Menu function? For example, if there is a ".", then > the jde-complete-menu as it now would be called and if > a "." is not present then dabbrev-completion function > would be called. Can this be added to the wish list? > This would be easy to do but I don't believe it is the right thing to do. I don't see the point of calling dabbrev to complete field and method names defined or inherited by the class in the current buffer. - Paul
JDE Complete Problem
I am having the following problem when trying to use jde-complete. If the class for the variable that I am trying to get methods for is not imported, jde prompts to try to import the class in the minibuffer. Once I enter the 'Y' and the import statement is inserted, I am again prompted to find out if I want to import the class, but this time instead of the minibuffer it is in a pop up window. Below is the content of jde-submit-problem-report: Emacs : GNU Emacs 21.2.1 (i386-msvc-nt5.1.2600) of 2002-03-19 on buffy Package: JDE version 2.3.2 Required packages: semantic-1.4 eieio-0.17 speedbar-0.14beta2 current state: == (setq jde-gen-session-bean-template '("(jde-import-insert-imports-into-buffer " " (list \"javax.ejb.*\"" "\"java.rmi.RemoteException\"))" "'>" "(jde-wiz-update-implements-clause \"SessionBean\")" "'>" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"ejbActivate\"" " nil" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"ejbPassivate\"" " nil" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"ejbRemove\"" " nil" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"setSessionContext\"" " \"SessionContext ctx\"" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"unsetSessionContext\"" " nil" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "'>") jde-gen-beep '("(end-of-line) '&" "\"Toolkit.getDefaultToolkit().beep();\"'>'n'>") jde-complete-signature-display '("Eldoc") jde-project-name "Jeba's Personal Projects" jde-which-method-format '("[" jde-which-method-current "]") jde-run-classic-mode-vm nil jde-complete-unique-method-names nil jde-find-granularity '("Character") jde-which-method-max-length 20 jde-imenu-include-classdef t jde-complete-display-result-type t jde-gen-code-templates '(("Get Set Pair" . jde-gen-get-set) ("toString method" . jde-gen-to-string-method) ("Action Listener" . jde-gen-action-listener) ("Window Listener" . jde-gen-window-listener) ("Mouse Listener" . jde-gen-mouse-listener) ("Mouse Motion Listener" . jde-gen-mouse-motion-listener) ("Inner Class" . jde-gen-inner-class) ("println" . jde-gen-println) ("beep" . jde-gen-beep) ("property change support" . jde-gen-property-change-support) ("EJB Entity Bean" . jde-gen-entity-bean) ("EJB Session Bean" . jde-gen-session-bean)) jde-gen-cflow-else '("(if (jde-parse-co
[PATCH] smart complete?
Andy Piper writes: > I haven't submitted this, but I like this idea. This basically rebinds > indent key (TAB usually) to indent and then try completion if indentation > does nothing. > > What do people think? > I think this is okay if it is a customizable option that is off by default to avoid confusing people who are not expecting this behavior. - Paul
jde-complete methods / variable ...
After looking at the java src code, I noticed that the completion of methods (and also for variables) are limited to those declared by the class/interface at point. My guess is this is for efficiency reason. But what about providing a customization or a different function to complete with all the methods (declared AND inherited)? Thanks, j.t. __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com
jde-complete-in-line
Hi *, I have some problems with the 'jde-complete-in-line' function. When I call 'jde-complete-in-line' at following position: String s = ""; s. I get following message: Wrong type argument: listp, "CASE_INSENSITIVE_ORDER" I am using JDEE 2.3.1 and XEmacs for Windows version 21.4 What am I doing wrong? Thanks in advance Thomas
jde-complete-menu error
Jayakrishnan Nair writes: > I get the following error while trying to do > jde-complete-menu. I am using J2SE 1.4.1 > > Debugger entered--Lisp error: (error "Beanshell eval > error. See messages buffer for details.") > signal(error ("Beanshell eval error. See messages > buffer for details.")) > error("Beanshell eval error. See messages buffer for > details.") > > >bsh-eval("jde.util.Completion.getClassInfo(\"org.openide.explorer.ExplorerPanel\",0);" > t) [snip] > Starting the BeanShell. Please wait... > Beanshell expression evaluation error. > Expression: > jde.util.Completion.getClassInfo("org.openide.explorer.ExplorerPanel",0); > Error: // Error: // Uncaught Exception: TargetError > : at Line: 16 : in file: : jde .util > .Completion .getClassInfo ( > "org.openide.explorer.ExplorerPanel" , 0 ) > Target exception: java.lang.LinkageError: Class > org/openide/windows/Workspace violates loader > constraints > [2 times] [snip] The completion command could not load your ExplorerPanel class because of the LinkageError. I have no idea what constraints the error message refers to. Does this error occur all the time or only in the case of this particular class? - Paul
Re: JDE Complete Menu
Hi Jeba, Hi Paul, Paul Kinnucan <[EMAIL PROTECTED]> writes: > Jeba Bhaskaran writes: > > I am currently using dabbrev-completion to complete > > variable names in a Java buffer. How difficult would > > it be to add this functionality to the JDE Complete > > Menu function? For example, if there is a ".", then > > the jde-complete-menu as it now would be called and if > > a "." is not present then dabbrev-completion function > > would be called. Can this be added to the wish list? > > > > This would be easy to do but I don't believe it is > the right thing to do. I don't see the point of calling > dabbrev to complete field and method names defined > or inherited by the class in the current buffer. > > - Paul I have a function `jde-indent-complete' which provides this functionality. Instead of dabbrev-expand I use hippie-expand, because of the support semantic provides for it. Semantic automatically adds `senator-try-expand-semantic' to your `hippie-expand-try-functions-list'. This gives you local member name completion via semantic. If this fails, hippie-expand calls abbrev-expand and dabbrev-expand afterwards. For words with a dot in front `jde-complete' will be called. I have bound this to function to TAB, so completion feels the same as in the shell and in the rest of emacs. I couldn't live without it :-) The function has gone though various changes/optimizations as my elisp knowledge slowly grew from clueless to dilettante, here comes the current version: (defun jde-indent-complete () "A special indent/complete function. I calls three different functions depending on context: - The region is active: reindent the region. - The point is in front of the text on this line: try to reindent the line. - The point is directly after a dot character (\".\") or in/at the end of a word starting with a dot: call `jde-complete' - Otherwise: call `hippie-expand' " (interactive) (if (mark-or-region-active) (indent-region (mark) (point) nil) (if (save-excursion (skip-chars-backward " \t") (bolp)) (indent-for-tab-command) (if (not (equal major-mode 'jde-mode)) (hippie-expand 1) (if (or (char-equal (char-before) ?.) (save-excursion (backward-word 1) (char-equal (char-before) ?.))) (jde-complete) (hippie-expand 1)) ; you probably need this also: (require 'hippie-exp) (setq hippie-expand-try-functions-list '(try-expand-all-abbrevs try-expand-dabbrev try-expand-dabbrev-all-buffers try-expand-dabbrev-from-kill)) -- Ole Arndt http://www.sugarshark.com ---
Re: JDE Complete Menu
Hello Ole, I copied your code to my init.el file and getting the following error when trying to use the method ( called by M-x jde-indent-complete): Signaling: (void-function mark-or-region-active) (mark-or-region-active) (if (mark-or-region-active) (indent-region (mark) (point) nil) (if (save-excursion ... ...) (indent-for-tab-command) (if ... ... ...))) (lambda nil "A special indent/complete function. I calls three different\nfunctions depending on context:\n\n- The region is active:\nreindent the region.\n\n- The point is in front of the text on this line:\ntry to reindent the line. \n\n- The point is directly after a dot character (\".\") or in/at\n the end of a word starting with a dot:\n call `jde-complete'\n\n- Otherwise:\ncall `hippie-expand'\n" (interactive) (if (mark-or-region-active) (indent-region ... ... nil) (if ... ... ...)))() call-interactively(jde-indent-complete) command-execute(jde-indent-complete t) execute-extended-command(nil) call-interactively(execute-extended-command) --- Ole Arndt <[EMAIL PROTECTED]> wrote: > > Hi Jeba, Hi Paul, > > Paul Kinnucan <[EMAIL PROTECTED]> writes: > > Jeba Bhaskaran writes: > > > I am currently using dabbrev-completion to > complete > > > variable names in a Java buffer. How difficult > would > > > it be to add this functionality to the JDE > Complete > > > Menu function? For example, if there is a ".", > then > > > the jde-complete-menu as it now would be called > and if > > > a "." is not present then dabbrev-completion > function > > > would be called. Can this be added to the wish > list? > > > > > > > This would be easy to do but I don't believe it is > > the right thing to do. I don't see the point of > calling > > dabbrev to complete field and method names defined > > or inherited by the class in the current buffer. > > > > - Paul > > I have a function `jde-indent-complete' which > provides this > functionality. > > Instead of dabbrev-expand I use hippie-expand, > because of the support > semantic provides for it. Semantic automatically > adds > `senator-try-expand-semantic' to your > `hippie-expand-try-functions-list'. > This gives you local member name completion via > semantic. If this fails, > hippie-expand calls abbrev-expand and dabbrev-expand > afterwards. > For words with a dot in front `jde-complete' will be > called. > > I have bound this to function to TAB, so completion > feels the same > as in the shell and in the rest of emacs. I couldn't > live without it :-) > > The function has gone though various > changes/optimizations as my elisp > knowledge slowly grew from clueless to dilettante, > here comes the > current version: > > (defun jde-indent-complete () > "A special indent/complete function. I calls three > different > functions depending on context: > > - The region is active: > reindent the region. > > - The point is in front of the text on this line: > try to reindent the line. > > - The point is directly after a dot character > (\".\") or in/at >the end of a word starting with a dot: > call `jde-complete' > > - Otherwise: > call `hippie-expand' > " > (interactive) > (if (mark-or-region-active) > (indent-region (mark) (point) nil) > (if (save-excursion (skip-chars-backward " \t") > (bolp)) > (indent-for-tab-command) > (if (not (equal major-mode 'jde-mode)) > (hippie-expand 1) > (if (or (char-equal (char-before) ?.) > (save-excursion (backward-word 1) > (char-equal (char-before) ?.))) > (jde-complete) > (hippie-expand 1)) > > > ; you probably need this also: > > (require 'hippie-exp) > (setq hippie-expand-try-functions-list > '(try-expand-all-abbrevs > try-expand-dabbrev > try-expand-dabbrev-all-buffers > try-expand-dabbrev-from-kill)) > > > -- > Ole Arndt > http://www.sugarshark.com > --- > __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Re: JDE Complete Menu
Jeba Bhaskaran <[EMAIL PROTECTED]> writes: > Hello Ole, > I copied your code to my init.el file and getting the > following error when trying to use the method ( called > by M-x jde-indent-complete): > > Signaling: (void-function mark-or-region-active) > (mark-or-region-active) > (if (mark-or-region-active) (indent-region (mark) > (point) nil) (if (save-excursion ... ...) > (indent-for-tab-command) (if ... ... ...))) > (lambda nil "A special indent/complete function. I > calls three different\nfunctions depending on > context:\n\n- The region is active:\nreindent > the region.\n\n- The point is in front of the text on > this line:\ntry to reindent the line. \n\n- > The point is directly after a dot character (\".\") or > in/at\n the end of a word starting with a dot:\n >call `jde-complete'\n\n- Otherwise:\ncall > `hippie-expand'\n" (interactive) (if > (mark-or-region-active) (indent-region ... ... nil) > (if ... ... ...)))() > call-interactively(jde-indent-complete) > command-execute(jde-indent-complete t) > execute-extended-command(nil) > call-interactively(execute-extended-command) > Oops, you need this as well: (or (boundp 'running-xemacs) (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))) ;; unify region checking (if running-xemacs (defun mark-or-region-active () "check if the region is currenty active" zmacs-region-active-p) (defun mark-or-region-active () "check if the region is currenty active" mark-active) ) -- Ole Arndt http://www.sugarshark.com --- Any sufficiently advanced bug is indistinguishable from a feature. -- Rich Kulawiec
Re: [PATCH] smart complete?
Sounds yummy as long as it can be turned on/off (like jde-abbrev stuff). I can't wait for the new packages on xemacs.org... Otis On Tue, 1 Apr 2003, Andy Piper ([EMAIL PROTECTED]) wrote: > I haven't submitted this, but I like this idea. This basically rebinds > indent key (TAB usually) to indent and then try completion if indentation > does nothing. > > What do people think? > > andy > > 2003-04-01 Andy Piper <[EMAIL PROTECTED]> > > * jde.el (jde-mode): bind to jde-indent-or-complete. > > * jde-complete.el (jde-indent-or-complete): new function. run > c-indent-command and then completion if no indentation occurred. > > > > > ATTACHMENT 1: application/octet-stream; name="compl.patch" > DISPOSITION: attachment; filename="compl.patch" > Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag
Re: [PATCH] smart complete?
otisg - What new packages on xemacs.org are you referring to? andy - I'm not sure I would like tab to complete. Completion sometimes is very, very slow. I once narrowed down the slowness to the part where we have to go through the import list and try to fully qualify the class getting imported. Plus, completion is sometimes flaky, and there are situations where it doesn't work at all. At any rate, until completion works better, I would vote to hold off on that change. Or check in it, with a default of "off". otisg <[EMAIL PROTECTED]> writes: > Sounds yummy as long as it can be turned > on/off (like jde-abbrev stuff). > > I can't wait for the new packages on > xemacs.org... > > Otis > > > On Tue, 1 Apr 2003, Andy Piper > ([EMAIL PROTECTED]) wrote: > >> I haven't submitted this, but I like this > idea. This basically rebinds >> indent key (TAB usually) to indent and > then try completion if indentation >> does nothing. >> >> What do people think? >> >> andy >> >> 2003-04-01 Andy Piper <[EMAIL PROTECTED]> >> >> * jde.el (jde-mode): bind to > jde-indent-or-complete. >> >> * jde-complete.el > (jde-indent-or-complete): new function. run >> c-indent-command and then completion if > no indentation occurred. >> >> >> >> >> ATTACHMENT 1: application/octet-stream; > name="compl.patch" >> DISPOSITION: attachment; > filename="compl.patch" >> > > > > Get your own "800" number > Voicemail, fax, email, and a lot more > http://www.ureach.com/reg/tag
RE: [PATCH] smart complete?
> At any rate, until completion works better, I would vote to hold off > on that change. Or check in it, with a default of "off". Right, that's what Paul wanted. I find completion reasonably quick, but if its more accessible that will also motivate me to use it and fix bugs that I find... andy
jde-complete-at-point
Hi! I think I have found another bug. I got jde-complete-at-point working by setting jde-global-classpath to a list (instead of nil, but IMHO I should not have to do that, this command should be able to handle the case when only the CLASSPATH is available). But, if I place point at the '^' in the code below import java.util.Arrays; import java.util.List; import java.util.Iterator; public class Foo { public static void main(String[] args) { List myList = Arrays.asList(args); Iterator iterator = myList.iterator(); iterator.^ while (iterator.hasNext()) { System.out.println(iterator.next()); } } } and I type C-c C-v ., the mode line contains java.lang.Object next() instead of java.util.Iterator next() ;) A question: The help documentation does not say anything about if it is possible to insert the completed item, e.g. if I wanted to have the next() method in the example above, do I have to type it in manually, or can I get Emacs to insert it for me? If so, how? /John -- LM/ERA/SVA/KD John Olsson mailto:[EMAIL PROTECTED] Ericsson Radio Systems AB, Box 1248, S-581 12 Linkoping - Phone: +46 13 321070 ECN: 868 1070 Fax: +46 13 287370 - I was doing object-oriented assembly when I was 1 year old... For some reason my mom insists on calling it "Playing with blocks"
bug in jde-complete
I haven't ever seriously used jde-complete b/c it didn't quite work (Xemacs, linux) and I could be bothered to find out why. Well, I finally looked closer and believe I've found the reason. Symptoms: The problem was that it wouldn't cycle through the possible completions: instead it would emit a not-very-useful stub which I would then have to edit. Also, it complained about an eldoc function not being defined. so, java.util.List l = new ArrayList(); l.i[M-x jde-complete-at-point] ===> l.indexOf(java.lang.Object : int); && a message about problems with eldoc. Diagnosis: The jde-complete.el source has this in it: ;;jde-eldoc for completion signatures (eval-when-compile (require 'eldoc) (require 'senator)) This makes it possible to compile jde-complete.el to jde-complete.elc. BUT, there's no runtime (require 'eldoc) anywhere in the JDE. Since I don't use eldoc (which is part of (x)emacs) in any of my other emacs stuff, eldoc never gets loaded, and jde-complete's references to eldoc code do not work. Hence, jde-complete does not work. I don't know much about eval-when-compile, but I'm guessing that it does get evaluated when you load jde-complete from the .el file (as opposed to a byte-compiled .elc file). If this is true, it would explain why this code might work for those who do not byte compile the JDE, yet fail for those who do. [I'm speculating - I haven't looked into this at all.] At any rate, since semantic is a requirement for the JDE and since eldoc is part of (x)emacs, I propose dropping the 'eval-when-compile' bit and just having plain old (require 'eldoc) (require 'senator) With this minor change, jde-complete works as advertised and has become a very handy tool! Eric
RE: jde-complete methods / variable ...
I was involved ever so slightly in correcting a bug in that code, and at that time, it was recursive to check also inherited methods and variables. And as far as I can tell in Completion.java for 2.2.9beta6, it is still the case (recursiveListMethods, recursiveListFields, etc.). Are you sure it is only limited to the current class? / Petter -Original Message- From: J. T. [mailto:[EMAIL PROTECTED]] Sent: den 12 december 2001 16:06 To: [EMAIL PROTECTED] Subject: jde-complete methods / variable ... After looking at the java src code, I noticed that the completion of methods (and also for variables) are limited to those declared by the class/interface at point. My guess is this is for efficiency reason. But what about providing a customization or a different function to complete with all the methods (declared AND inherited)? Thanks, j.t. __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com
Re: jde-complete-menu error
Paul, I declared a PropertyChangeEvent evt and then later in the code I thought it was declared as e (instead of evt). So I typed e.get and then jde-complete-menu. Since e was not available in the file, this error came. But when I changed it to evt.get and typed jde-complete-menu, the menu appeared. Somehow the error message was not very informative. Thanks again for a great development environment. JK --- Paul Kinnucan <[EMAIL PROTECTED]> wrote: > Jayakrishnan Nair writes: > > I get the following error while trying to do > > jde-complete-menu. I am using J2SE 1.4.1 > > > > Debugger entered--Lisp error: (error "Beanshell > eval > > error. See messages buffer for details.") > > signal(error ("Beanshell eval error. See > messages > > buffer for details.")) > > error("Beanshell eval error. See messages > buffer for > > details.") > > > > > bsh-eval("jde.util.Completion.getClassInfo(\"org.openide.explorer.ExplorerPanel\",0);" > > t) > > [snip] > > > Starting the BeanShell. Please wait... > > Beanshell expression evaluation error. > > Expression: > > > jde.util.Completion.getClassInfo("org.openide.explorer.ExplorerPanel",0); > > Error: // Error: // Uncaught Exception: > TargetError > > : at Line: 16 : in file: : jde > .util > > .Completion .getClassInfo ( > > "org.openide.explorer.ExplorerPanel" , 0 ) > > Target exception: java.lang.LinkageError: Class > > org/openide/windows/Workspace violates loader > > constraints > > [2 times] > > [snip] > > The completion command could not load your > ExplorerPanel class because > of the LinkageError. I have no idea what constraints > the error message > refers to. Does this error occur all the time or > only in the > case of this particular class? > > - Paul > __ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com
Re: Re: [PATCH] smart complete?
Tools > Packages > Add Download Site > xemacs.org Tools > Packages > List and Install That's how I usually update XEmacs packages. Otis On Wed, 02 Apr 2003, Andrew Hyatt ([EMAIL PROTECTED]) wrote: > > otisg - > > What new packages on xemacs.org are you referring to? > > andy - > > I'm not sure I would like tab to complete. Completion sometimes is > very, very slow. I once narrowed down the slowness to the part where > we have to go through the import list and try to fully qualify the > class getting imported. Plus, completion is sometimes flaky, and > there are situations where it doesn't work at all. > > At any rate, until completion works better, I would vote to hold off > on that change. Or check in it, with a default of "off". > > > > otisg <[EMAIL PROTECTED]> writes: > > > Sounds yummy as long as it can be turned > > on/off (like jde-abbrev stuff). > > > > I can't wait for the new packages on > > xemacs.org... > > > > Otis > > > > > > On Tue, 1 Apr 2003, Andy Piper > > ([EMAIL PROTECTED]) wrote: > > > >> I haven't submitted this, but I like this > > idea. This basically rebinds > >> indent key (TAB usually) to indent and > > then try completion if indentation > >> does nothing. > >> > >> What do people think? > >> > >> andy > >> > >> 2003-04-01 Andy Piper <[EMAIL PROTECTED]> > >> > >>* jde.el (jde-mode): bind to > > jde-indent-or-complete. > >> > >>* jde-complete.el > > (jde-indent-or-complete): new function. run > >>c-indent-command and then completion if > > no indentation occurred. > >> > >> > >> > >> > >> ATTACHMENT 1: application/octet-stream; > > name="compl.patch" > >> DISPOSITION: attachment; > > filename="compl.patch" > >> > > > > > > > > Get your own "800" number > > Voicemail, fax, email, and a lot more > > http://www.ureach.com/reg/tag > > > Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag
RE: Re: [PATCH] smart complete?
> Tools > Packages > List and Install Or -> Update Installed Packages andy
jde-complete with J2ME classes
Hi, with several (not all!) classes from the the J2ME SDK I get an error when I try to use jde-complete. The J2ME classes are in my jde-global-classpath. Is this a configuration problem on my side or a not (yet ;-)) supported feature of JDE. Regards, juergen = OUTPUT ON MESSAGE BUFFER: = Beanshell expression evaluation error. Expression: jde.util.Completion.getClassInfo("javax.microedition.lcdui.List",0); Error: // Error: // Uncaught Exception: Method Invocation jde.util.Completion.getClassInfo : at Line: 3 : in file: : jde .util .Completion .getClassInfo ( "javax.microedition.lcdui.List" , 0 ) Target exception: java.lang.UnsatisfiedLinkError: init java.lang.UnsatisfiedLinkError: init at javax.microedition.lcdui.Font.init(Native Method) at javax.microedition.lcdui.Font.(Font.java:148) at javax.microedition.lcdui.Font.(Font.java:389) at javax.microedition.lcdui.Screen.(Screen.java:72) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at jde.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:99) at jde.util.Completion.getClassInfo(Completion.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at bsh.Reflect.invokeMethod(Unknown Source) at bsh.Reflect.invokeStaticMethod(Unknown Source) at bsh.Name.invokeMethod(Unknown Source) at bsh.BSHMethodInvocation.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.Interpreter.run(Unknown Source) at bsh.Interpreter.main(Unknown Source) Beanshell eval error. See messages buffer for details. === JDE BUG REPORT: === To: [EMAIL PROTECTED] Subject: --text follows this line-- Please enter the details of your bug report here Emacs : GNU Emacs 21.3.1 (i386-msvc-nt5.0.2195) of 2003-03-28 on buffy Package: JDE version 2.3.2 Required packages: semantic-1.4.4 eieio-0.17 speedbar-0.14beta4 current state: == (setq jde-gen-session-bean-template '("(jde-import-insert-imports-into-buffer " " (list \"javax.ejb.*\"" "\"java.rmi.RemoteException\"))" "'>" "(jde-wiz-update-implements-clause \"SessionBean\")" "'>" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"ejbActivate\"" " nil" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"ejbPassivate\"" " nil" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"ejbRemove\"" " nil" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" " \"public\"" " \"void\"" " \"setSessionContext\"" " \"SessionContext ctx\"" " \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" " \"public\""
Problem with jde-complete... commands
I'm having a problem with jde-complete-at-point and jde-complete-at-point-menu. Say, I have the following class definitions: -- Class.java -- public class Class extends Superclass { public void classMethod() { } } --- SuperClass.java -- public class Superclass { public void foo() {} } and that both classes have been successfully compiled. Now, in a buffer containing Class.java, with my cursor placed after "fo": public class Class extends Superclass { public void classMethod() { fo --- if I invoke jde-complete-at-point, I get a completion of: fothis.equals( Invoking jde-complete-at-point-menu gives the similar incorrect behavior of displaying a menu of a large number of methods, only one of which is a valid completion. Any help is appreciated. Chuck --- To: [EMAIL PROTECTED] Subject: --text follows this line-- Please enter the details of your bug report here Emacs : GNU Emacs 20.7.1 (i386-*-nt4.0.1381) of Tue Jun 13 2000 on buffy Package: JDE version 2.2.6.2 current state: == (setq jde-gen-session-bean-template '("(jde-import-insert-imports-into-buffer (list \"javax.ejb.*\"\n\"java.rmi.RemoteException\"))" "(jde-wiz-update-implements-clause \"SessionBean\")" "'> \"public void ejbActivate() throws RemoteException {\"'>'n \"}\"'>'n\n'>'n" "'> \"public void ejbPassivate() throws RemoteException {\"'>'n \"}\"'>'n\n'>'n" "'> \"public void ejbRemove() throws RemoteException {\"'>'n \"}\"'>'n '>'n" "'> \"public void setSessionContext(SessionContext ctx) throws\nRemoteException {\"" "'>'n \"}\"'>'n '>'n" "'> \"public void unsetSessionContext() throws RemoteException {\"'>'n\n\"}\"'>'n '>'n'>") jde-gen-beep '("(end-of-line) '&" "\"Toolkit.getDefaultToolkit().beep();\"'>'n'>") jde-which-method-format '("[" jde-which-method-current "]") jde-run-classic-mode-vm nil jde-javadoc-gen-nodeprecatedlist nil jde-which-method-max-length 20 jde-imenu-include-classdef t jde-javadoc-gen-link-online nil jde-gen-code-templates '(("Get Set Pair" . jde-gen-get-set) ("toString method" . jde-gen-to-string-method) ("Action Listener" . jde-gen-action-listener) ("Window Listener" . jde-gen-window-listener) ("Mouse Listener" . jde-gen-mouse-listener) ("Mouse Motion Listener" . jde-gen-mouse-motion-listener) ("Inner Class" . jde-gen-inner-class) ("println" . jde-gen-println) ("beep" . jde-gen-beep) ("property change support" . jde-gen-property-change-support) ("EJB Entity Bean" . jde-gen-entity-bean) ("EJB Session Bean" . jde-gen-session-bean)) jde-gen-cflow-else '("(if (jde-parse-comment-or-quoted-p)" "'(l \"else\")" "'(l '> \"else \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end of else\"'>'n'>)" ")") jde-make-args "" jde-javadoc-gen-destination-directory "JavaDoc" jde-mode-line-format '("-" mode-line-mule-info mode-line-modified mode-line-frame-identification mode-line-buffer-identification " " global-mode-string " %[(" mode-name mode-line-process minor-mode-alist "%n" ")%]--" (line-number-mode "L%l--") (column-number-mode &
jde-complete-at-point-menu
I import import java.awt.Toolkit; then type Toolkit, then execute jde-complete-at-point-menu, and I get the menu. I arrow down to getDefaultToolkit() and hit enter. So now I have: Toolkit.getDefaultToolkit() I tried the same completion method here (with and without the '.' following the parens), but what I get is the following error: Could not find type of Toolkit.getDefaultToolkit. Any ideas? Thanks, Jeff
Re: bug in jde-complete
Hi Eric, To accommodate users who want a minimal JDE, i.e., no parsing of files or anything that depends on it, I have tried to make the loading of semantic, senator, and eldoc optional. I have done this in the latest beta by invoking the require funciton for these packages dynamically. I'd prefer to keep it this way rather than put unconditional requires for semantic, senator, and eldoc in the JDE sources. I don't know what version of the JDE you have so I can't tell whether my code for dynamically loading these packages does not work on your setup. - Paul At 12:08 PM 8/5/2001 -0700, Eric D. Friedman wrote: > >I haven't ever seriously used jde-complete b/c it didn't quite work >(Xemacs, linux) and I could be bothered to find out why. Well, I >finally looked closer and believe I've found the reason. > >Symptoms: > >The problem was that it wouldn't cycle through the possible completions: >instead it would emit a not-very-useful stub which I would then have >to edit. Also, it complained about an eldoc function not being defined. > >so, > >java.util.List l = new ArrayList(); >l.i[M-x jde-complete-at-point] ===> l.indexOf(java.lang.Object : int); > >&& a message about problems with eldoc. > >Diagnosis: > >The jde-complete.el source has this in it: > >;;jde-eldoc for completion signatures >(eval-when-compile (require 'eldoc) > (require 'senator)) > >This makes it possible to compile jde-complete.el to jde-complete.elc. >BUT, there's no runtime (require 'eldoc) anywhere in the JDE. Since I >don't use eldoc (which is part of (x)emacs) in any of my other emacs >stuff, eldoc never gets loaded, and jde-complete's references to eldoc >code do not work. Hence, jde-complete does not work. > >I don't know much about eval-when-compile, but I'm guessing that it >does get evaluated when you load jde-complete from the .el file >(as opposed to a byte-compiled .elc file). If this is true, it would >explain why this code might work for those who do not byte compile the >JDE, yet fail for those who do. [I'm speculating - I haven't looked into >this at all.] > >At any rate, since semantic is a requirement for the JDE and since eldoc >is part of (x)emacs, I propose dropping the 'eval-when-compile' bit and >just having plain old > >(require 'eldoc) >(require 'senator) > >With this minor change, jde-complete works as advertised and has become >a very handy tool! > >Eric
jde-complete-at-point-menu
Javier, Well, I cleaned up my project files, and cleaned up my .emacs, now I see the only issue being that if an import is collapsed, the completion doesn't appear to correctly parse the import, e.g. I have in my source: import javax.servlet.http.*; public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException, ServletException { request. } Attempting to complete request. results in: Could not find type of request. Attempt to import HttpServletRequest (y or n) If I say yes, the class gets imported successfully, and I get the correct completion menu, if I select no, I get: Could not find type of HttpServletRequest and it fails. Jeff
[NEWBIE] Auto complete Woes OS X
Hello everyone, I am trying to make the migration to JDE from Netbeans. Of course one of my favorite features is auto-completion of methods / members. This feature is partially on my Emacs installation for OS X. I am running the following versions of JDE etc... 1. JDE - 2.3.2 2. EIEIO - 0.17 3. ELIB - 1.0 4. SEMANTIC 1.4.3 5. SPEEDBAR 0.14beta4 6. GNU Emacs 21.3.50 for OS X (Andrew Choi) Whenever I user C-c C-v C-. The drag down menu appears, but when I hit Enter nothing happens and I recieve an imenu internal bug message. Message: Semantic Imenu override problem. (Internal bug) [2 times] Here is my .emacs file: (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. '(global-font-lock-mode t nil (font-core)) '(jde-bug-stack-info t) '(jde-complete-function (quote jde-complete-menu)) '(jde-enable-abbrev-mode t) '(jde-jdk-registry (quote (("1.4.1" . "/System/Library/Frameworks/JavaVM.framew ork/Versions/1.4.1" '(semanticdb-project-roots (quote ("~/OWASP/portal"))) '(show-paren-mode t nil (paren)) '(transient-mark-mode t)) (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. ) (add-to-list 'load-path "~/emacs/speedbar-0.14beta4") (add-to-list 'load-path "~/emacs/eieio-0.17") (add-to-list 'load-path "~/emacs/semantic-1.4.3/") (add-to-list 'load-path "/Users/davidraphael/emacs/jde-2.3.2/lisp") (setq semantic-load-turn-everything-on t) (require 'semantic-load) (setq load-path (append (list "/usr/share/emacs/21.3.50/lisp/elib") load-path)) (require 'jde) Any help here is much appreciated! Thanks, David Raphael
Re: Problem with jde-complete... commands
At 12:30 PM 2/5/01 -0600, [EMAIL PROTECTED] wrote: >I'm having a problem with jde-complete-at-point and >jde-complete-at-point-menu. Say, I have the following class definitions: > >-- Class.java -- >public class Class extends Superclass { > > public void classMethod() { > } > >} >--- > SuperClass.java -- >public class Superclass { > > public void foo() {} > >} > > >and that both classes have been successfully compiled. Now, in a buffer >containing Class.java, with my cursor placed after "fo": > > >public class Class extends Superclass { > > public void classMethod() { > fo >--- > >if I invoke jde-complete-at-point, I get a completion of: > >fothis.equals( > >Invoking jde-complete-at-point-menu gives the similar incorrect >behavior of displaying a menu of a large number of methods, only one of >which is a valid completion. > >Any help is appreciated. > >From the JDE User's Guide: Names of fields and methods of the current class must start with this or . (period). Names of fields and methods declared by the parent of the current class must start with super. For example, this command completes . ^ this. ^ super. ^ - Paul
RE: jde-complete-at-point-menu
It does not currently handle that case. Javier > -Original Message- > From: Jeff Rancier [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 21, 2001 2:22 PM > To: Jde-List > Subject: jde-complete-at-point-menu > > > I import > > import java.awt.Toolkit; > > then type Toolkit, then execute jde-complete-at-point-menu, and I get the > menu. I arrow down to getDefaultToolkit() and hit enter. > > So now I have: > > Toolkit.getDefaultToolkit() > > I tried the same completion method here (with and without the '.' > following > the parens), but what I get is the following error: > > Could not find type of Toolkit.getDefaultToolkit. > > Any ideas? > > Thanks, > Jeff >
RE: jde-complete-at-point-menu
It does not currently handle that case. Javier > -Original Message- > From: Jeff Rancier [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 21, 2001 2:22 PM > To: Jde-List > Subject: jde-complete-at-point-menu > > > I import > > import java.awt.Toolkit; > > then type Toolkit, then execute jde-complete-at-point-menu, and I get the > menu. I arrow down to getDefaultToolkit() and hit enter. > > So now I have: > > Toolkit.getDefaultToolkit() > > I tried the same completion method here (with and without the '.' > following > the parens), but what I get is the following error: > > Could not find type of Toolkit.getDefaultToolkit. > > Any ideas? > > Thanks, > Jeff >
jde-complete-at-point does not work
Hi all, jde-complete-at-point-menu fails :( I already tried jde-wiz-update-class-list -- no success. Though, it works on JDK classes?! I am clueless ... Thanks for your help, Ralph Here my details: -Win 2000 -JDE 2.2.9beta9.1 -NTEmacs 21.2 *Messages* Parsing error messages...done. Mark set Beanshell expression evaluation error. Expression: jde.util.Completion.getClassInfo("com.apldbio.arrays.illumina.chemprep.SampleSheetRow",0); Error: // Error: // Uncaught Exception: TargetError : at Line: 72 : in file: : jde .util .Completion .getClassInfo ( "com.apldbio.arrays.illumina.chemprep.SampleSheetRow" , 0 ) Target exception: java.lang.NoClassDefFoundError [2 times] progn: Beanshell eval error. See messages buffer for details. Auto-saving...done Auto-saving...done Beanshell expression evaluation error. Expression: jde.util.Completion.getClassInfo("com.apldbio.arrays.base.common.samples.SampleVO",0); Error: // Error: // Uncaught Exception: TargetError : at Line: 81 : in file: : jde .util .Completion .getClassInfo ( "com.apldbio.arrays.base.common.samples.SampleVO" , 0 ) Target exception: java.lang.NoClassDefFoundError [2 times] progn: Beanshell eval error. See messages buffer for details. Wrote l:/Java/Src/com/apldbio/arrays/illumina/chemprep/SampleTableModel.java (No files need saving) Refreshing speedbar...done Flushed completion cache. Parsing error messages...done. Mark set [3 times] e exclude-regexp=bsh.* new-import=com.apldbio.arrays.illumina.chemprep.SampleSheetRow Imported com.apldbio.arrays.illumina.chemprep.SampleSheetRow Quit Wrote l:/Java/Src/com/apldbio/arrays/illumina/chemprep/SampleTableModel.java (No files need saving) Refreshing speedbar...done Flushed completion cache. Parsing error messages...done. Mark set Undo! [6 times] Wrote l:/Java/Src/com/apldbio/arrays/illumina/chemprep/SampleSheetRow.java (No files need saving) Refreshing speedbar...done Flushed completion cache. (No changes need to be saved) (No files need saving) Refreshing speedbar...done Flushed completion cache. Parsing error messages...done. Mark set Type C-x 1 to remove help window. C-M-v to scroll the help. Beanshell expression evaluation error. Expression: jde.util.Completion.getClassInfo("com.apldbio.arrays.illumina.chemprep.SampleSheetRow",0); Error: // Error: // Uncaught Exception: TargetError : at Line: 89 : in file: : jde .util .Completion .getClassInfo ( "com.apldbio.arrays.illumina.chemprep.SampleSheetRow" , 0 ) Target exception: java.lang.NoClassDefFoundError [2 times] progn: Beanshell eval error. See messages buffer for details. _ .emacs ;; --- ;; $Id: .emacs,v 1.2 2001/01/24 00:39:05 rjocham Exp $ ;; --- ;; $Log: .emacs,v $ ;; Revision 1.2 2001/01/24 00:39:05 rjocham ;; changed tab-indent for java mode from 3 to 2 ;; ;; Revision 1.1 2001/01/06 17:28:31 rjocham ;; Initial revision ;; ;; --- ;; Set the load paths ;; --- (setq load-path (nconc '( ;; on Windows (Mickeysoft) "E:/emacs/lisp/speedbar-0.13a/" "E:/emacs/lisp/semantic-1.4beta14/" "E:/emacs/lisp/eieio-0.17beta4/" "E:/emacs/lisp/elib-1.0/" "E:/emacs/lisp/jde-2.2.9beta9.1/lisp/" "E:/emacs/lisp/" "C:/emacs/emacs-21.2/lisp/" ;; on UNIX (Linux box) ;;"~/emacs/lisp/jde-2.2.6/lisp/" ;;"~/emacs/lisp/speedbar-0.13a/" ;;"~/emacs/lisp/semantic-1.3.3/" ;;"~/emacs/lisp/eieio-0.16/" ;;"~/emacs/lisp/elib-1.0/" ;;"~/emacs/lisp/" ) load-path )) ;; --- ;; Sams teach yourself Emacs in 24 hours' book package - quite usefull ;; --- (require 'sams-lib) ;; --- ;; Some usefull functions written by me ;) ;; --- (require 'rj-lib) ;; --- ;; The great Jave IDE from Paul Kinukan ;; --- (require 'jde) ;; --- ;; Oracle SQL*Plus support ;; --- (require '
jde-complete-function is a list. Why??
Berndl, Klaus writes: > Hello Paul, > > why is jde-complete-function a list??? > > It's not a big problem..just for my interest? IMHO a function-symbol would be also >ok or even more intuitive.. > Hi Klaus, I implemented jde-complete-function as a radio-button-choice widget. I have never been able to get radio-button-choice to work outside of a list. The next release reimplements this variable as a choice widget which does support an atom as the value of a variable. - Paul
Re: [NEWBIE] Auto complete Woes OS X
Hi David, [...] > Whenever I user C-c C-v C-. The drag down menu appears, but when I hit > Enter nothing happens and I recieve an imenu internal bug message. > > Message: > Semantic Imenu override problem. (Internal bug) [2 times] [...] In Emacs 21.3.50, imenu implementation has changed. As JDEE's menu completion delegates the menu creation to imenu it is impacted. I did the following change to jde-complete.el to fix that: *** jde-complete.el.ori Tue Feb 25 08:13:09 2003 --- jde-complete.el Tue Feb 25 09:08:48 2003 *** *** 809,819 (car index-alist) (if use-menu ;; delegates menu handling to imenu :-) ! (imenu--mouse-menu ! index-alist ! ;; Popup window at text cursor ! (jde-cursor-posn-as-event) ! (or title "Completion")) (assoc (completing-read (or title "Completion: ") index-alist nil ;;predicate --- 809,825 (car index-alist) (if use-menu ;; delegates menu handling to imenu :-) ! (let* ((jde-complete-selected-item nil) !(imenu-default-goto-function ! #'(lambda (name pos &rest rest) ! (setq jde-complete-selected-item ! (cons name pos) ! (imenu--mouse-menu !index-alist !;; Popup window at text cursor !(jde-cursor-posn-as-event) !(or title "Completion")) ! jde-complete-selected-item) (assoc (completing-read (or title "Completion: ") index-alist nil ;;predicate Does it fix your problem? David
Re: [NEWBIE] Auto complete Woes OS X
It fixed the problem partially. I am the kind of guy that would like to help myself ;) So if you could point me to a quick-and-dirty boot-camp for this Lisp syntax I would appreciate that. It looks like the index of the selection is off by 2. When you select an item and press enter, it selects the item 2 rows above it. Seems like a simple problem to fix. This looks like it is because OS X adds this extra grey title and a space underneath it. I dunno. Sounds good ;) /D On Friday, March 14, 2003, at 04:10 AM, David PONCE wrote: Hi David, [...] Whenever I user C-c C-v C-. The drag down menu appears, but when I hit Enter nothing happens and I recieve an imenu internal bug message. Message: Semantic Imenu override problem. (Internal bug) [2 times] [...] In Emacs 21.3.50, imenu implementation has changed. As JDEE's menu completion delegates the menu creation to imenu it is impacted. I did the following change to jde-complete.el to fix that: *** jde-complete.el.ori Tue Feb 25 08:13:09 2003 --- jde-complete.el Tue Feb 25 09:08:48 2003 *** *** 809,819 (car index-alist) (if use-menu ;; delegates menu handling to imenu :-) ! (imenu--mouse-menu ! index-alist ! ;; Popup window at text cursor ! (jde-cursor-posn-as-event) ! (or title "Completion")) (assoc (completing-read (or title "Completion: ") index-alist nil ;;predicate --- 809,825 (car index-alist) (if use-menu ;; delegates menu handling to imenu :-) ! (let* ((jde-complete-selected-item nil) !(imenu-default-goto-function ! #'(lambda (name pos &rest rest) ! (setq jde-complete-selected-item ! (cons name pos) ! (imenu--mouse-menu !index-alist !;; Popup window at text cursor !(jde-cursor-posn-as-event) !(or title "Completion")) ! jde-complete-selected-item) (assoc (completing-read (or title "Completion: ") index-alist nil ;;predicate Does it fix your problem? David
Re: [NEWBIE] Auto complete Woes OS X
Additionally, System.out Whenever I call the auto complete on that particular case, depending on where in the list I am in the completion value may be off between 2-5 methods.So it does seem that the extra fields that are in the list ( the greyed out sections) are altering the index somehow. Maybe I am wrong about this completely, but this does seem like a different behavior than on PC / UNIX widgets. Regards, Dave On Friday, March 14, 2003, at 10:23 PM, David Raphael wrote: It fixed the problem partially. I am the kind of guy that would like to help myself ;) So if you could point me to a quick-and-dirty boot-camp for this Lisp syntax I would appreciate that. It looks like the index of the selection is off by 2. When you select an item and press enter, it selects the item 2 rows above it. Seems like a simple problem to fix. This looks like it is because OS X adds this extra grey title and a space underneath it. I dunno. Sounds good ;) /D On Friday, March 14, 2003, at 04:10 AM, David PONCE wrote: Hi David, [...] Whenever I user C-c C-v C-. The drag down menu appears, but when I hit Enter nothing happens and I recieve an imenu internal bug message. Message: Semantic Imenu override problem. (Internal bug) [2 times] [...] In Emacs 21.3.50, imenu implementation has changed. As JDEE's menu completion delegates the menu creation to imenu it is impacted. I did the following change to jde-complete.el to fix that: *** jde-complete.el.ori Tue Feb 25 08:13:09 2003 --- jde-complete.el Tue Feb 25 09:08:48 2003 *** *** 809,819 (car index-alist) (if use-menu ;; delegates menu handling to imenu :-) ! (imenu--mouse-menu ! index-alist ! ;; Popup window at text cursor ! (jde-cursor-posn-as-event) ! (or title "Completion")) (assoc (completing-read (or title "Completion: ") index-alist nil ;;predicate --- 809,825 (car index-alist) (if use-menu ;; delegates menu handling to imenu :-) ! (let* ((jde-complete-selected-item nil) !(imenu-default-goto-function ! #'(lambda (name pos &rest rest) ! (setq jde-complete-selected-item ! (cons name pos) ! (imenu--mouse-menu !index-alist !;; Popup window at text cursor !(jde-cursor-posn-as-event) !(or title "Completion")) ! jde-complete-selected-item) (assoc (completing-read (or title "Completion: ") index-alist nil ;;predicate Does it fix your problem? David
jde-complete generates imports I don't want
Create a file A.java with the following contents: public class A { public static int main(String[] args) { A a = new A(); a.@ } } Position point on "@", delete the character, then hit C-c C-v . and observe how it adds "import org.apache.ecs.xhtml.a;" to the beginning of the file. Or this one: create a file Action.java that looks like this: public class Action { public int foo() { return 42; } } Then create a file BTest.java that looks like this: public class BTest extends Action { public int bar() { return this. } } Then position point after "this." and invoke jde-complete (in one of its flavors). Observe how it adds an import statement for javax.swing.Action. Is it pilot error? Is it just me? Kai PS: Using jde 2.3.4 on GNU Emacs 21.3.50.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2004-11-02 on ketchup, modified by Debian.
jde-complete generates imports I don't want
Kai Grossjohann writes: > Create a file A.java with the following contents: > > public class A { > public static int main(String[] args) > { > A a = new A(); > a.@ > } > } > > Position point on "@", delete the character, then hit C-c C-v . and > observe how it adds "import org.apache.ecs.xhtml.a;" to the beginning > of the file. Because there is a class named a on hyour classpath, the JDEE assumes that you are trying to complete a static member of that class and therefore creates an import statement for class a. As it is unlikely that you will ever intend to use class a in your programs, you can easily deal with this problem by excluding the org.apache.ecs class from importation via jde-import-excluded-classes. > > Or this one: create a file Action.java that looks like this: > > public class Action { > public int foo() { > return 42; > } > } > > Then create a file BTest.java that looks like this: > > public class BTest extends Action { > public int bar() { > return this. > } > } > > Then position point after "this." and invoke jde-complete (in one of > its flavors). Observe how it adds an import statement for > javax.swing.Action. This is because javax.swing.Action is the only class on the classpath at this point. Compile your Action class and then retry the completion. The JDEE should then prompt you to choose one of the Action classes to import. Paul > > Is it pilot error? > > Is it just me? > > Kai > > PS: Using jde 2.3.4 on GNU Emacs 21.3.50.1 (i386-pc-linux-gnu, X > toolkit, Xaw3d scroll bars) of 2004-11-02 on ketchup, modified by > Debian. >
Re: jde-complete-at-point does not work
It sort of works for me, but i do get an error message when completion has been done: jde-complete-display-current-signature: Symbol's function definition is void: eldoc-message -- Jon Kvebaek - [EMAIL PROTECTED] Pungenday, the 40th day of Discord in the YOLD 3168
Re: jde-complete-at-point does not work
rkflow.jar" "B:/service/lib/workflowTest.jar" "B:/service/lib/castor/castor-0.9.3.jar" "B:/service/lib/castor/castor-0.9.3-xml.jar" "B:/service/lib/castor/xerces.jar" "B:/service/lib/crimson/crimson.jar" "B:/service/lib/crimson/jaxp.jar" "B:/service/lib/crimson/xalan.jar" "B:/service/jboss/lib/ext/ab-jnpserver.jar" "B:/service/jboss/lib/ext/activation.jar" "B:/service/jboss/lib/ext/castor-0.9.1.jar" "B:/service/jboss/lib/ext/gnu-regexp-1.0.8.jar" "B:/service/jboss/lib/ext/hsql.jar" "B:/service/jboss/lib/ext/hsqldb.jar" "B:/service/jboss/lib/ext/jboss-j2ee.jar" "B:/service/jboss/lib/ext/jboss-management.jar" "B:/service/jboss/lib/ext/jboss.jar" "B:/service/jboss/lib/ext/jbosscx.jar" "B:/service/jboss/lib/ext/jbossmq.jar" "B:/service/jboss/lib/ext/jbosspool.jar" "B:/service/jboss/lib/ext/jbosssx.jar" "B:/service/jboss/lib/ext/jcert.jar" "B:/service/jboss/lib/ext/jdbm.jar" "B:/service/jboss/lib/ext/jmxtools.jar" "B:/service/jboss/lib/ext/jndi.jar" "B:/service/jboss/lib/ext/jnet.jar" "B:/service/jboss/lib/ext/jnpserver.jar" "B:/service/jboss/lib/ext/jpl-util-0_5b.jar" "B:/service/jboss/lib/ext/jsse.jar" "B:/service/jboss/lib/ext/log4j.jar" "B:/service/jboss/lib/ext/mail.jar" "B:/service/jboss/lib/ext/oswego-concurrent.jar" "B:/service/jboss/lib/ext/ots-jts_1.0.jar" "B:/service/jboss/lib/ext/tyrex-0.9.8.5.jar" "b:/service/JMS/lib/fmprtl.zip"))) '(jde-make-program "") '(jde-ant-home "L:/Java/Ant") '(jde-db-source-directories (quote ("L:/Java/Src" "E:/JDK1.3.1-Source/j2sdk1.3.1/src/share/classes"))) '(jde-build-function (quote (jde-ant-build))) '(jde-gen-k&r nil) '(jde-gen-cflow-for (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"for\")" "'(l '> \"for (\" (p \"for-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} \"'>'n'>)" ")"))) '(jde-gen-cflow-catch (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"catch\")" "'(l '> \"catch (\" (p \"catch what: \" clause) \" e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} \"'>'n'>)" ")"))) '(jde-gen-get-set-var-template (quote ("(end-of-line) '&" "\"private \"" "(P \"Variable type: \" type) \" \"" "(P \"Variable name: \" name) \";\" '>'n '>'n" "'>'\"public \" (s type)" "(if (string= \"boolean\" (jde-gen-lookup-named 'type) ) " "\" is\" " "\" get\" ) " "(jde-gen-init-cap (jde-gen-lookup-named 'name))" "\"() \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\" '>'n" "\"return m\" (jde-gen-init-cap (jde-gen-lookup-named 'name)) \";\" '>'n \"}\"" "'>'n '>'n" "'>'\"public void set\" (jde-gen-init-cap (jde-gen-lookup-named 'name))" "\"(\" (s type) \" \" (s name) \")\" " "(if jde-gen-k&r " "()" "'>'n)" "\"{\" '>'n" "'>'\"m\" (jde-gen-init-cap (jde-gen-lookup-named 'name)) \" = \" (s name) \";\" '>'n \"}\" '>'n'>"))) '(jde-gen-cflow-if (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"if\")" "'(l '> \"if (\" (p \"if-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} \"'>'n'>)" ")"))) '(jde-gen-cflow-try-finally (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"try\")" "'(l \"try \"" "(if jde-gen-k&r " "()" "
Re: jde-complete-at-point does not work
Jon Kvebaek writes: > It sort of works for me, but i do get an error message when completion > has been done: > > jde-complete-display-current-signature: Symbol's function definition > is void: eldoc-message > This means that Emacs cannot find the eldoc package, which is required by the JDEE for completion. eldoc is a standard Emacs package. There must be something wrong with your installation. - Paul
Re: jde-complete-at-point does not work
Paul Kinnucan writes: > Jon Kvebaek writes: > > It sort of works for me, but i do get an error message when completion > > has been done: > > > > jde-complete-display-current-signature: Symbol's function definition > > is void: eldoc-message > > > > This means that Emacs cannot find the eldoc package, which is required > by the JDEE for completion. eldoc is a standard Emacs package. There must > be something wrong with your installation. > Actually an earlier message from David.Ostrovsky points out that this may be a problem with the JDEE not loading eldoc because of a regression error. I plan to fix this problem in the next release. Meanwhile, you can fix the problem by putting (require 'eldoc) in your .emacs file. - Paul
Re: jde-complete generates imports I don't want
Paul Kinnucan <[EMAIL PROTECTED]> writes: > Kai Grossjohann writes: > > Then position point after "this." and invoke jde-complete (in one of > > its flavors). Observe how it adds an import statement for > > javax.swing.Action. > > This is because javax.swing.Action is the only class on the classpath > at this point. Compile your Action class and then retry the completion. > The JDEE should then prompt you to choose one of the Action classes > to import. Hm. I just invoked "javac Action.java", then tried again. Now I get "no completion". The environment variable $CLASSPATH starts with ".:", and Action.class is in the current working directory, together with Action.java and BTest.java. But this was just a test case, in the real code that I've got, I see the same behavior I described originally, even though the code has been compiled many times on this machine already, and a corresponding *.jar file is mentioned in $CLASSPATH. Originally, I thought that the problem comes from the "import foo.*" statements in the *.java file -- I normally don't use asterisks in import statements but the author of the file in question doesn't want me to expand them. Then I made this test case and observed the same error. What can I do to track down the problem? Something weird must be going on, but I don't know where to start looking. Kai
Re: jde-complete generates imports I don't want
Kai Grossjohann writes: > Paul Kinnucan <[EMAIL PROTECTED]> writes: > > > Kai Grossjohann writes: > > > Then position point after "this." and invoke jde-complete (in one of > > > its flavors). Observe how it adds an import statement for > > > javax.swing.Action. > > > > This is because javax.swing.Action is the only class on the classpath > > at this point. Compile your Action class and then retry the completion. > > The JDEE should then prompt you to choose one of the Action classes > > to import. > > Hm. I just invoked "javac Action.java", then tried again. Now I get > "no completion". The environment variable $CLASSPATH starts with > ".:", and Action.class is in the current working directory, together > with Action.java and BTest.java. What is the setting of jde-resolve-relative-paths-p? Paul > > But this was just a test case, in the real code that I've got, I see > the same behavior I described originally, even though the code has > been compiled many times on this machine already, and a corresponding > *.jar file is mentioned in $CLASSPATH. > > Originally, I thought that the problem comes from the "import foo.*" > statements in the *.java file -- I normally don't use asterisks in > import statements but the author of the file in question doesn't want > me to expand them. Then I made this test case and observed the same > error. > > What can I do to track down the problem? Something weird must be > going on, but I don't know where to start looking. > > Kai >
Re: jde-complete generates imports I don't want
Paul Kinnucan <[EMAIL PROTECTED]> writes: > Kai Grossjohann writes: > > Paul Kinnucan <[EMAIL PROTECTED]> writes: > > > > > Kai Grossjohann writes: > > > > Then position point after "this." and invoke jde-complete (in one of > > > > its flavors). Observe how it adds an import statement for > > > > javax.swing.Action. > > > > > > This is because javax.swing.Action is the only class on the classpath > > > at this point. Compile your Action class and then retry the completion. > > > The JDEE should then prompt you to choose one of the Action classes > > > to import. > > > > Hm. I just invoked "javac Action.java", then tried again. Now I get > > "no completion". The environment variable $CLASSPATH starts with > > ".:", and Action.class is in the current working directory, together > > with Action.java and BTest.java. > > What is the setting of jde-resolve-relative-paths-p? t Kai
Re: jde-complete generates imports I don't want
Kai Grossjohann writes: > Paul Kinnucan <[EMAIL PROTECTED]> writes: > > > Kai Grossjohann writes: > > > Paul Kinnucan <[EMAIL PROTECTED]> writes: > > > > > > > Kai Grossjohann writes: > > > > > Then position point after "this." and invoke jde-complete (in one > > of > > > > > its flavors). Observe how it adds an import statement for > > > > > javax.swing.Action. > > > > > > > > This is because javax.swing.Action is the only class on the classpath > > > > at this point. Compile your Action class and then retry the > > completion. > > > > The JDEE should then prompt you to choose one of the Action classes > > > > to import. > > > > > > Hm. I just invoked "javac Action.java", then tried again. Now I get > > > "no completion". The environment variable $CLASSPATH starts with > > > ".:", and Action.class is in the current working directory, together > > > with Action.java and BTest.java. > > > > What is the setting of jde-resolve-relative-paths-p? > > t I asked this to determine whether the JDEE on your project was treating the . character as meaning the current directory or the directory of the project file for the current project. The default setting of jde-resolve-relative-paths-p is t, which means that the JDEE replaces the . in a path with the path of the directory containing the project file for your project. If your project does not have a project file, then the JDEE replaces the . with the path of the current directory. I don't know whether you are using a project file so I don't know how . is being resolved on your system. In any case, I performed the following experiment 1. I created an environment variable CLASSPATH equal to a single . (period). 2. I restarted Emacs. 3. I created a directory named test. 4. In test, I created a file called Action.java containing public class Action { public int foo() { return 42; } } 5. In test, I created a filed called BTest.java containing public class BTest extends Action { public int bar() { return this. } } 6. I tried to complete return this. The JDEE imported javax.swing.Action; This is because the JDEE noticed that BTest extends a class named Action and the only class of that name on the classpath at this point is javax.swing.Action. The JDEE also signaled a no completion error. That is because BTest.java has not yet been compiled and hence is not on the classpath and hence cannot be completed because the JDEE only knows about classes that are on the classpath, i.e., that have been compiled. 7. I erased the import statement in BTest.java and changed return this; to return 1; so that BTest.java could be compiled. 8. I compiled Action.java and BTest.java. 9. In BTest.java, I changed the line return 1; to return this. 10. I tried to complete return this. ^ The JDEE, as I expected, displayed a menu of the default members that BTest class inherits from Class class for completion. Based on this experiment, I believe that JDEE 2.3.4 handles the test case that you presented correctly within its limitations, i.e., that it only imports and completes things that are on the classpath. Paul
Re: jde-complete generates imports I don't want
Paul Kinnucan <[EMAIL PROTECTED]> writes: > Based on this experiment, I believe that JDEE 2.3.4 handles the test > case that you presented correctly within its limitations, i.e., that > it only imports and completes things that are on the classpath. I verified that the same thing happens with the test case in my environment. I didn't realize that one has to compile both *.java files to make it work. So now I need to work on getting a test case that demonstrates the problem: the problem still happens with the real code that I'm editing. One difference between the test case and the real code is that the real code is compiled, jared (jarred? jar'd?) and the *.jar file is in $CLASSPATH. But the *.class files are NOT in $CLASSPATH. Another difference is that the real project has a prj.el file whereas the test case didn't have one. I'm sure that this is pilot error; I just don't know what I'm doing wrong. Kai
RE: Suggestion about jde-complete-at-point* commands.
I agree! Although having the parameter types printed out is occasionally useful, most of the time I just want the method name inserted, with the cursor positioned between the parenthesis. Steve Molitor [EMAIL PROTECTED] -Original Message- From: Eric Chastan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 2:27 AM To: [EMAIL PROTECTED] Subject: Suggestion about jde-complete-at-point* commands. Hello all, I'm using JDE (with ECB) very intensively and I have a suggestion about the jde-complete-at-point* commands: 1) First I think that it is not useful to have several times the same method with different signatures in the menu because this increases dramaticaly the menu size and then it is not very efficient to scroll in it. 2) Second writing the parameter types when the method is inserted is also very unefficient because this implies to go back, delete types and rewrite parameters. I think that the better is to insert the opening "(" and the closing ")" and to set the cursor between them. On a other hand providing the parameter types is very useful so the solution could be to have an other popup that raises when the cursor is between the "()" that shows all possible parameters types (only showing them without allowing selection). What do you think about this suggestion ? Is it possible to have customizable variables that disable method signatures in menu and suppress parameter types on insertion ? Thanks, Eric.
AW: Suggestion about jde-complete-at-point* commands.
>I agree! Although having the parameter types printed out is occasionally >useful, >most of the time I just want the method name inserted, with the cursor >positioned >between the parenthesis. I second this suggestion! Klaus Steve Molitor [EMAIL PROTECTED] -Original Message- From: Eric Chastan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 2:27 AM To: [EMAIL PROTECTED] Subject: Suggestion about jde-complete-at-point* commands. Hello all, I'm using JDE (with ECB) very intensively and I have a suggestion about the jde-complete-at-point* commands: 1) First I think that it is not useful to have several times the same method with different signatures in the menu because this increases dramaticaly the menu size and then it is not very efficient to scroll in it. 2) Second writing the parameter types when the method is inserted is also very unefficient because this implies to go back, delete types and rewrite parameters. I think that the better is to insert the opening "(" and the closing ")" and to set the cursor between them. On a other hand providing the parameter types is very useful so the solution could be to have an other popup that raises when the cursor is between the "()" that shows all possible parameters types (only showing them without allowing selection). What do you think about this suggestion ? Is it possible to have customizable variables that disable method signatures in menu and suppress parameter types on insertion ? Thanks, Eric.
RE: Suggestion about jde-complete-at-point* commands.
Title: AW: Suggestion about jde-complete-at-point* commands. Me too. Cheers, Karel -- Karel Sprenger, senior solution specialist COMPAQ, Professional Services Phone: +31(030)283 4542 Home: +31(020) 670 0942 Email: [EMAIL PROTECTED] Home: [EMAIL PROTECTED] "Memory fault -- core...uh...um...core... Oh dammit, I forget!" -Original Message-From: Berndl, Klaus [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 12, 2001 16:29To: 'Molitor, Stephen'Cc: 'JDE'Subject: AW: Suggestion about jde-complete-at-point* commands. >I agree! Although having the parameter types printed out is occasionally >useful, >most of the time I just want the method name inserted, with the cursor >positioned >between the parenthesis. I second this suggestion! Klaus Steve Molitor [EMAIL PROTECTED] -Original Message- From: Eric Chastan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 2:27 AM To: [EMAIL PROTECTED] Subject: Suggestion about jde-complete-at-point* commands. Hello all, I'm using JDE (with ECB) very intensively and I have a suggestion about the jde-complete-at-point* commands: 1) First I think that it is not useful to have several times the same method with different signatures in the menu because this increases dramaticaly the menu size and then it is not very efficient to scroll in it. 2) Second writing the parameter types when the method is inserted is also very unefficient because this implies to go back, delete types and rewrite parameters. I think that the better is to insert the opening "(" and the closing ")" and to set the cursor between them. On a other hand providing the parameter types is very useful so the solution could be to have an other popup that raises when the cursor is between the "()" that shows all possible parameters types (only showing them without allowing selection). What do you think about this suggestion ? Is it possible to have customizable variables that disable method signatures in menu and suppress parameter types on insertion ? Thanks, Eric.
RE: Suggestion about jde-complete-at-point* commands.
Title: RE: Suggestion about jde-complete-at-point* commands. Check out Phillip Lord's completion patch http://www.mail-archive.com/jde@sunsite.dk/msg00102.html -Original Message- From: Sprenger, Karel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 10:36 AM To: 'Berndl, Klaus'; 'Molitor, Stephen' Cc: 'JDE' Subject: RE: Suggestion about jde-complete-at-point* commands. Me too. Cheers, Karel -- Karel Sprenger, senior solution specialist COMPAQ, Professional Services Phone: +31(030)283 4542 Home: +31(020) 670 0942 Email: [EMAIL PROTECTED] Home: [EMAIL PROTECTED] "Memory fault -- core...uh...um...core... Oh dammit, I forget!" -Original Message- From: Berndl, Klaus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 16:29 To: 'Molitor, Stephen' Cc: 'JDE' Subject: AW: Suggestion about jde-complete-at-point* commands. >I agree! Although having the parameter types printed out is occasionally >useful, >most of the time I just want the method name inserted, with the cursor >positioned >between the parenthesis. I second this suggestion! Klaus Steve Molitor [EMAIL PROTECTED] -Original Message- From: Eric Chastan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 2:27 AM To: [EMAIL PROTECTED] Subject: Suggestion about jde-complete-at-point* commands. Hello all, I'm using JDE (with ECB) very intensively and I have a suggestion about the jde-complete-at-point* commands: 1) First I think that it is not useful to have several times the same method with different signatures in the menu because this increases dramaticaly the menu size and then it is not very efficient to scroll in it. 2) Second writing the parameter types when the method is inserted is also very unefficient because this implies to go back, delete types and rewrite parameters. I think that the better is to insert the opening "(" and the closing ")" and to set the cursor between them. On a other hand providing the parameter types is very useful so the solution could be to have an other popup that raises when the cursor is between the "()" that shows all possible parameters types (only showing them without allowing selection). What do you think about this suggestion ? Is it possible to have customizable variables that disable method signatures in menu and suppress parameter types on insertion ? Thanks, Eric.
Re: Suggestion about jde-complete-at-point* commands.
Eric Chastan wrote: > > Hello all, > > I'm using JDE (with ECB) very intensively and I have a suggestion about > the jde-complete-at-point* commands: > 1) First I think that it is not useful to have several times the > same method with different signatures in the menu because this increases > dramaticaly the menu size and then it is not very efficient to scroll in > it. > 2) Second writing the parameter types when the method is inserted is > also very unefficient because this implies to go back, delete types and > rewrite parameters. I think that the better is to insert the opening > "(" and the closing ")" and to set the cursor between them. > > On a other hand providing the parameter types is very useful so the > solution could be to have an other popup that raises when the cursor is > between the "()" that shows all possible parameters types (only showing > them without allowing selection). > > What do you think about this suggestion ? > Is it possible to have customizable variables that disable method > signatures in menu and suppress parameter types on insertion ? > Thanks, > Eric. I like having the menu showing the parameters (how about a submenus for those methods with the same name but different argument types?) but I agree that it would be nice to have it optional whether to insert the method types. I would also like it configurable whether to insert a space between the method name and opening '(' i.e. foo ( (to comply with our coding standards!) Whereabouts in JDE works out what to return and how to format it? As an aside java-font-lock20a.el with jde seems to do a slightly better job of fontifying. It does some underlining in comments and seems to handle fontifying over multiple lines better. It was written by > ;; [original] Regexps written with help from Fred White <[EMAIL PROTECTED]> and > ;; Anders Lindgren <[EMAIL PROTECTED]>. > ;;; 1999.03.26 Modifications by CarlManning ([EMAIL PROTECTED]): Nick
Antwort: Re: jde-complete-at-point does not work
Jon, I'm getting the same error. Temporary workaround add this in your .emacs file: (require 'eldoc) David Ostrovsky Jon Kvebaek Kopie: Thema: Re: jde-complete-at-point does not work 23.04.02 13:08 It sort of works for me, but i do get an error message when completion has been done: jde-complete-display-current-signature: Symbol's function definition is void: eldoc-message -- Jon Kvebaek - [EMAIL PROTECTED] Pungenday, the 40th day of Discord in the YOLD 3168
jde-complete-at-point-menu menu too wide for screen
Hello, Does anyone know if there is anything that can be done about the method completion menu being too wide for the screen? The menu is getting cut off because of some methods with very long names. I can see the end portion of the long method name, but cannot see any of the other methods. Thanks, Aaron
RE: jde-complete-at-point-menu menu too wide for screen
What OS? Emacs or XEmacs? Which JDEE version (although that might not be entirely relevant if I understand the problem correctly). I'll take wild guess and say you are using Emacs 20.7.1 with JDEE 2.2.8 on NT or Win2k. It sounds like you are running into a limit in NT/Win2k. It shouldn't after all try to create a menu that's wider than the screen. If so, I suppose you have three options (really two): 1. Increase your screen resolution. I use 1280x1024 and rarely have the problem you're seeing. And we use extremely long method names and class names, etc. 2. Pick a desktop scheme that uses a smaller font or manually go change the Menu font in Control Panel -> Display -> Appearance under "Item" to be a smaller font (although much smaller than 8 pt Tahoma is nigh unreadable). 3. Write shorter method names ;-> I know that's not practical. If I'm way off base, please provide us with more information regarding OS, Emacs type/version, JDEE version, screen resolution you are using, which window manager if you're on X, etc. Troy -Original Message- From: Aaron Phillips [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: jde-complete-at-point-menu menu too wide for screen Hello, Does anyone know if there is anything that can be done about the method completion menu being too wide for the screen? The menu is getting cut off because of some methods with very long names. I can see the end portion of the long method name, but cannot see any of the other methods. Thanks, Aaron