Paul Kinnucan writes:
 > Berndl, Klaus writes:

[snip]

 >  > 
 >  > But: IMHO the best would be to integrate JDEE for that. This could be done like:
 >  > 1. You select via popup-menu of the ECB-methods-buffer a method for being search
 >  >    for occurences in current source-path/project
 >  > 2. Then ECB jumps to this method in the source-buffer
 >  > 3. Then JDEE should have a function 
 > "jde-find-call-occurences-of-method-under-point"
 >  >    which does the search for the occurences with appropriate mechanisms - e.g. 
 > with
 >  >    delegating this task to the beanshell - do not know if JDEE has already such 
 > a 
 >  >    feature or when not how exactly this one could be implemented.
 >  > 4. ECB would then only call this 
 > "jde-find-call-occurences-of-method-under-point".
 >  > 
 >  > Question to Paul: Has JDEE already such a feature?
 > 
 > As of JDEE 2.3.3, for which a very stable beta is available at the
 > JDEE web site, yes, thanks to the efforts of Andy Hyatt. See the
 > "Cross-Referencing Classes" section of the "Searching Source Code"
 > chapter of the "JDEE User's Guide" for information on how to build and
 > use a method call cross-reference database for a Java project.
 > 

Hi Klaus,

Some more information about jde-xref. It builds a cross-reference database by 
parsing Java class files. It includes three functions for navigating the
database:

* jde-xref-first-caller (C-c C-v a) builds a list of callers of the method at point
  in the current buffer and displays the first caller.

* jde-xref-next-caller (C-c C-v n)  displays the next caller on the list built by 
  jde-xref-first-caller.

* jde-xref-display-call-tree displays a buffer containing a mouse-sensitive list
  of the callers of the method at point. Clicking any caller displays the source
  for that caller.


It would be nice to integrate these functions with ECB, e.g., first-caller and
next-caller should work for the method selected in the ECB's class window.
Also, it would be nice to be able (optionally?) to add a call-tree window 
to the set of windows that makes up the ECB desktop. That way, a user 
could 

1. Select a method in the class window.

2. Select a "Show Callers" command from the ECB menu.

   A Callers window would appear in the ECB desktop.

3. Click a caller in the Callers window.

   Emacs displays the source of the call.

- Paul

Reply via email to