First, thanks for the tip. jde-open-class-source indeed does what I want, save for one defect (mentioned below). Couple questions:
Question 1.: Is this command supposed to be bound to C-c C-v b out of the box? I'm running JDEE out of Subversion, and that keychord is not to anything, nor is there any keychord bound to jde-open-class-source. Not that this is a big deal at all. Just wondering if I'm missing something. Question 2.: How does jde-complete-function relate to this? The use-case I'm considering is when you have point in the middle of a symbol representing a type-it could be a class or an interface-and you want to browse to the type's source code. I thought jde-complete-function was for pulling up a list of members after a dereference operator, e.g., someClassInstance.somePropertyOrMethod. Sorry for the long email, but I'm a little confused about when to use jde-open-class-at-point and when to use jde-open-class-source, and what their differences are. One difference that I see is that jde-open-class-at-point seems to resolve the actual class (or interface, or member) at point, using information from the package imports. The other function, jde-open-class-source seems just to resolve based on the name, looking for anything in the classpath with that name. This difference manifests when you have multiple classes on the classpath with the same name, but in different packages. The function jde-open-class-source presents the user with a buffer showing all the choices, whereas jde-open-class-at-point finds just the one unique name. This latter behavior is ideal, which is why I favor C-c C-v C-y over C-c C-v b. Best, David From: Paul Landes [mailto:[email protected]] Sent: Tuesday, April 20, 2010 3:06 PM To: David Ventimiglia Cc: JDEE Users Willey Subject: Re: [jdee-users] find class ( jde-open-source) pops new frame when source in zip file You could use C-c C-v b instead (jde-open-class-source). I suspect it is trying to create a new file or trying to modify it in the zip since C-c C-v C-y will add an import to the file if it doesn't already exist. Also consider: (setq jde-complete-function 'jde-complete-minibuf) On Apr 20, 2010, at 4:54 PM, David Ventimiglia wrote: Hi! When a source file I'm looking for is in a Zip file, C-c C-v C-y pops up a new frame. Is there any way to avoid this? I see in jde-open-source.el, in jde-open-class-at-point, it uses jde-find-class-source-file, and if jde-finds-class-source-file evals to a buffer (which it does if the source is in an archive file), it evals (pop-up-frames t), otherwise it uses switch-to-buffer. If I change that code to eval (pop-up-frames nil), it does what I want, which is to have the same behavior regardless of whether the source is in an archive file. Is there a way to customize this, without modifying the source? Thanks! David ------------------------------------------------------------------------ ------ _______________________________________________ jdee-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jdee-users
------------------------------------------------------------------------------
_______________________________________________ jdee-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jdee-users
