Re: Jde-import-all
I recently added a fix for this problem, it will be in the next release. Javier On Wed, 1 Dec 2004 12:31:39 +0100, Magnus Ljung [EMAIL PROTECTED] wrote: Hi, I've just started using JDE and have a little problem with jde-import-all. The problem stems from the fact that I have a dependency on a library containing several jar files which all define the same class. I.e the class p1.p2.p3.C is defined in several different jars. That means that when I run jde-import-all I get a dialog with the following content: Select imports to insert. ( ) p1.p2.p3.C ( ) p1.p2.p3.C ( ) p1.p2.p3.C ( ) p1.p2.p3.C [Ok] [Cancel] I would like to change jde-import-all to remove any duplicates. I tried to do this by changing the definition of jde-import-all-filter to: (defun jde-import-all-filter (unqualified-imports optional no-exclude) Generate a list of fully qualified names of classes to import from UNQUALIFIED-IMPORTS, excluding classes specified by `jde-import-exclude-imports' if NO-EXCLUDE is nil. (remove-duplicates (mapcar (lambda (unqualified-class) (let ((qualified-imports (jde-import-get-qualified-names unqualified-class))) (if no-exclude qualified-imports (jde-import-exclude-imports qualified-imports unqualified-imports))) But that didn't change anything. I have very little experience with writing elisp so I don't even know if I managed to run the changed version of this code. Any suggestions? Thanks, /Magnus
RE: Run jde-javadoc-checkdoc for many files?
I don't think there is. But you can take a look at the jde-stat.el file in the CVS repository, there is an example of running a command on a bunch of files. You can substitute the jde-stat-report-loc command by the jde-javadoc-checkdoc. Javier. -Original Message- From: Jeff Jensen [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 02, 2001 6:47 PM To: [EMAIL PROTECTED] Subject: Run jde-javadoc-checkdoc for many files? Hi, Is there a way to run jde-javadoc-checkdoc on a bunch of files vs manually invoking it on a per buffer basis? I have a lot of source files to verify the javadoc matches the parms and exceptions. Since most of them are correct, it would be great to only have to invoke a command once on a directory tree and have it prompt the user only at troublesome spots like it normally does for one buffer.
RE: JDE Installation difficulties
Win 2000 5.00.2195 Service pack 1. You need service pack 2. If you search the mail archives, you will find more info on this. Paul- IMHO it will be a good idea to place in the website that SP2 is a requirement for JDEBug to work in W2k. Javier
RE: info on how to use semantic
i want to get better at moving around in a java file, and i have seen references to the functionality that semantic provides to do this. so i looked on the semantic website and didn't find any helpful docs on how it is integrated into jde. i also looked in the jde users guide, but the section on browsing source code is all about the speed bar. The package to use is senator(senator uses semantic). In the latest beta release it works out of the box. It allows you to jump to methods by using M-x senator-jump. It has other features as well. You will see the features in the Senator menu. i would also like to learn how to use internal bookmarks - is this the tags functionality. They are two things here: One is emacs bookmarks. You can mark a place in a file and give it a name. Then you can jump to it by giving the name of the bookmark. i.e. C-x r m is the command to set a bookmark at point. then you can do C-x r b type the name you gave to the bookmark. If this is what you are looking for, look in the emacs manual for more info. C-h i - Emacs - Bookmarks The other thing is using tags. You can use one of the scripts jtags or jtags.csh to create a tag table. Then you can type M-. to find the tag at point. It will look in the tag table for the place where that tags was defined. As one of my colleagues described it it is the poor man links. It works quite well. Javier
RE: Browsing to an anchor
I will need to look into this more but this is my assessment. This command typed from my bash shell does exactly what is supposed to IEXPLORE.EXE file:///D:/jdk1.3.1/docs/api/java/util/Hashtable.html#entrySet\(\) Opens the documentation and goes to the entrySet anchor. I believe you are probably using the browse-url function, this seems to be using the explorer(instead IE) to open urls. The explorer command from the command line ignores any anchors added at the end of the url. An idea to solve the problem will be to call the function from the jde directly without using browse-url. This will require the user to specify their browser and the path for it. to resort to a kluge like generating an HTML doc on the fly that would require the user to click on a link to get to the anchor point or to have to create my own browser in Java. In the worst case, that you have to do this, when you generate the html page you can make it redirect automatically so that the user don't have to click on the link. Javier
RE: Openeing large files..
Like in vi is this possible to open a file and directly move to a particular line no. I use C-x C-f for visiting a file. You should try viper-mode. It is a vi emulation inside emacs. Javier
RE: debugging, remote debugging, PROBLEMS
I will strongly suggest to read the manual. For starters you can 1. jdebug-process-start-debugger 2. set breakpoints in the code you want to debug 3. jde-debug-app If you want to connect to the app through a port you have to start your application with some flags read the documentation for more info. Javier I have 2 possibilities: - either to start simply JDE - debug app, and i have the message: Process *JDEbug* not running. -either I launch my application in a JVM, and I connect on a given port to this JVM with: and when I want to launch my application, I can't ! because the menu JDEbug - Processes - Launch process is not active !! Thanks for the help Joel ___ Do You Yahoo!? -- Vos albums photos en ligne, Yahoo! Photos : http://fr.photos.yahoo.com
RE: auto-gen get/set pairs for existing class variables
I sent an old file by mistake, this is the right one. Javier -Original Message- From: Javier Lopez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 10:59 PM To: [EMAIL PROTECTED] Subject: RE: auto-gen get/set pairs for existing class variables Here is the prototype I promised. The method jde-wiz-get-set-methods will generate get/set method for all variables that are non public and non final declared in the current buffer. If the method is already defined in the buffer it won't be generated. The methods generated look like this /** * Gets the value of name * * @return the value of name */ public String getName() { return this.name; } /** * Sets the value of name * * @param name Value to assign to this.name */ public void setName(String name) { this.name = name; } Javier -Original Message- From: Javier Lopez [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 11:58 PM To: Sandip Chitale; [EMAIL PROTECTED] Subject: RE: auto-gen get/set pairs for existing class variables if no one has started working on this I will try to get a prototype working over the next few days. If someone already started doing something please let me know, so I do not want to replicate work. Javier -Original Message- From: Sandip Chitale [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: RE: auto-gen get/set pairs for existing class variables Shouldn't this be easy with Semantic. In fact, the function could show the list of non-public properties for which a getter/setter does not exist and let the user generate them in one shot e.g. Class Class1 TypeGetter Setter non-final non-public property1int [ ]getProperty1 [ ]setProperty1 non-final non-public property2int getProperty2 [ ]setProperty2 final non-public property3int [ ]getProperty3 non-final non-public property4boolean [ ]isProperty4 [ ]setProperty4 Notice - . no [ ] for property2, if, say, getter already exists . missing [ ]setProperty3 for final property3 . isProperty4 instead of getProperty4 for boolean property4 . auto insertion of static keyword for static properties etc. etc. Any takers ? Something similar exists in VAJ and its' cool ! -sandip -Original Message- From: Daniel Hegyi [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 11:43 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: auto-gen get/set pairs for existing class variables Is there a way to use the Get/Set Pair... template (or another feature) to generate the get/set pairs for all class variables already defined? I thought this feature existed, but must be dreaming (or maybe a different tool?). I also didn't see anythning in the docs nor archives that answered this. I agree. This feature would be very cool. It exists in some other IDEs and it is very handy. Daniel _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp jde-wiz.el
RE: Go to definition/declaration of a identifier ?
Is there a method in JDE that could jump to the definition/declaration of a identifier ? Yes, M-x senator-jump or C-c , j This just work for global definitions/declarations Javier
RE: Method Navigation
try M-x senator-jump Javier
RE: compile error to source links
Where is compile.el. I checked the emacs lisp directory and xemacs-packages directory. I could not find it. I am using XEmacs 21 In the distribution ofEmacs I am using is in emacs-root/lisp/progmodes/compile.el Javier
RE: Windows 2K and JDEebug
Check that you have installed the service pack 2 for win2k. If you need more info you should search the mail archives, they have a lot of information regarding this topic. Javier -Original Message- From: Sergei Gnezdov [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 12:04 PM To: '[EMAIL PROTECTED]' Subject: Windows 2K and JDEebug I just started to use emacs and JDE. I was able to use debugging functionality (jdb, JDEbug) on Windows NT machine without any problems. I can get jdb on Windows 2K. I cannot get JDEbug to get working on Windows 2K machine. I tried Java 1.3.0 and Java 1.3.1. It seems to me that JDEbug (debugger) starts just fine, but when application itself has a problem to start or connect to debugger. I cannot really give you more information because I don't know how to get it from emacs. Is it my a configuration of my machine or Windows 2K? P.S. JDE was one of the major reasons to switch from VIM.
RE: HELP! Turning off abbreviations.
How do I turn off abbreviations in JDE? When I type if then a space, it expands the parens and curlies for me. When I type br, it expands to break. I don't know how to turn this off. When I click JDE-Project-Options-General, I make sure that Jde Enable Abbrev Mode is off. After doing the above customization do M-x jde-mode so the abbrev-mode get reset. (This is just a workaround, the customization setting should take care of updating so that this does not need to be done) Optionally you can just do M-x jde-abbrev-mode or M-x abbrev-mode to turn on/off abbreviations without changing the settings. Javier
RE: New for loop template...
Read the section on creating templates in the JDE user's guide. It explains how to create new templates and register them. You can read the jde user manual locally in your machine by going to JDE-Help - JDE User's Guide. Or go online to http://sunsite.auc.dk/jde/ there is a link here to the user's guide as well. Javier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 6:17 PM To: Robert Mecklenburg Cc: JDE Users Subject: Re: New for loop template... Is there a generic way for users to add new templates to jde-mode without editing jdel lisp files? i.e. some way to use customize to create a new template, add it to the abbrev table for jde-mode and save this customiozation in your .emacs file? If this can't be done, is there a way for me to customize the abbrev table for jde-mode manually within my .emacs file? If there is no way to do it with customize, that might be a worthy feature to add. Thanks, Matt On 06/07/2001 05:59:50 PM Robert Mecklenburg wrote: Here is a new template I'm using which seems generally useful. It builds a for loop with an iterator and it bound to foriter:
RE: Problem with mouse key
This is a bug in semantic. I attached the file semantic-java.el with the fix of David Ponce for this bug. Javier -Original Message- From: Arafat Mohamed [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 2:14 PM To: [EMAIL PROTECTED] Subject: Problem with mouse key Whenever I try to use the mouse to access the menubar (or use the keyboard [F10]) I get the following error, Signaling: (invalid-function (macro . #[nil À [(skip-chars-forward )] 1 (c:/home/lisp/semantic14b5/semantic-java.elc . 18126)])) jde-javadoc-skip-spaces-forward() jde-javadoc-nonterminal-at-line() jde-javadoc-enable-menu-p() Any idea what this is? Only seems to happen in JDE. Attached is a copy of my .emacs Thanks, Arafat semantic-java.el
RE: JDE compilation-scroll-output
I don't know if anyone responded to you already. For what is worth I ran into this problem too. In my case, it turns out that if you set the compilation-window-height to a value that is less than the number of line it takes for the command running in the compilation window the scroll output does not work. In other words, running the java class calls something like: cd c:/your directory javaw -classpath large classpath taking around 12 lines MyJavaClass In this case setting the compilation-window-height to anything less than 12 will cause the output not to scroll properly. Quick fix: set the compilation-window-height to a larger value. or don't set it at all. If anyone has a real fix to this please, let me know. Javier -Original Message- From: Rob Shaw [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 12:50 AM To: [EMAIL PROTECTED] Subject: JDE compilation-scroll-output I've been using JDE 2.2.7 beta 11 since it was released. Everything is working sweet, except my compilation buffer no longer automatically scrolls to the bottom. Prior to 2.2.7beta11 the compilation buffer was behaving as expected with the following in my .emacs file: (setq compilation-scroll-output t) Since it has stopped working, I have also tried the following within one of my prj.el files: (custom-set-variables '(compilation-scroll-output t)) Unfortunately, this doesn't work either. Any suggestions? Thanks, Rob Shaw. Servidium Inc. http://www.servidium.com Build better web and wireless applications faster.
RE: Any solutions for the Gave up waiting for Emacs to connect to SIO port: Win2K woes
For whatever is worth, the *JDEbug* output of the jde-bug-sio-connect-delay with less than 14 looks good, normal behavior. You just need to set up some breakpoints and you are good to go. I have that variable jde-big-sio-connect-delay set up to 1. FYI, it is the amount of time emacs wait for a response for the debugger. It breaks after 15s, because that's the timeout in the DebuggeeSIO.java. I am guessing that emacs waits for whatever the jde-bug-sio-connect-delay is before doing anything, less than 14 it connects before the debugger stop waiting. my 2 cents, Javier
RE: the indent-buffer function
I wrote this function that indents the whole buffer without moving the cursor. (defun indent-buffer() Indent the whole buffer from point-min to point-max using the command indent-region (interactive) (indent-region 0 (point-max) nil)) Javier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 11:22 AM To: [EMAIL PROTECTED] Subject: the indent-buffer function Hi everybody, I would like to make the indent-buffer function like this: (defun indent-buffer() (beginning-of-file) function to go to the end of file while selecting (ctrl-shift-end) (indent-region) (exchange-point-and-mark) ) Being a non-lisp expert programmer (yet), I would like any help to correct and to complete the above function, please. Thanks, -- [@666[]]:: andriamasinoro fenintsoa (mr) iremia-university of la reunion (france) email : [EMAIL PROTECTED] tél : (+262) 816 863 (portable) / (+262) 938 324 (office) fax: (+262) 938 260 most people don't plan to fail, they simply fail to plan.
RE: jde-gen-get-package-statement
It already does but you have to have the jde-global-classpath variable set up. Javier -Original Message- From: Molitor, Stephen [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 20, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: jde-gen-get-package-statement Is there any way to get jde-gen-get-package statement to default to the current package, based on the directory of the buffer relative to the root source directory? Thanks! Steve Molitor [EMAIL PROTECTED]
RE: jde-gen-get-package-statement
That could do it. It works by looking if your current directory is accessible from your classpath, and use that information to suggest a package. Since the directory where you have your .java files is not in the classpath(I am assuming this is the case, by what you said) is does not suggest anything. You could probably just add the root directory where you keep your .java files to the jde-global-classpath variable. Javier -Original Message- From: Molitor, Stephen [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 20, 2001 9:51 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: jde-gen-get-package-statement Well, I do have jde-global-classpath set up (and everything compiles and runs just fine now). But, I have the global classpath pointing to my .class file output directory, NOT my .java sources directory tree. Could that be the problem? Thanks. Steve Molitor [EMAIL PROTECTED] -Original Message- From: Javier Lopez [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 20, 2001 7:17 PM To: Molitor, Stephen; [EMAIL PROTECTED] Subject: RE: jde-gen-get-package-statement It already does but you have to have the jde-global-classpath variable set up. Javier -Original Message- From: Molitor, Stephen [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 20, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: jde-gen-get-package-statement Is there any way to get jde-gen-get-package statement to default to the current package, based on the directory of the buffer relative to the root source directory? Thanks! Steve Molitor [EMAIL PROTECTED]