Berndl, Klaus writes: > For Paul: There is a feature-request for JDEE at the end of this mail - > or at least a question about a feature... > > Hello. > first of all: Please always send to the ECB-mailing list! > > > Is ecb capable of showing me where a particular function is called/used. > > If for example I am in the methods window can I find out where, in the valid > > source paths, a given method is called...in what source file? Thanks. > > No, currently not...in general this needs - to work really well - a "semantic" > database of all current classes and methods in a project so a tool (e.g. ECB) > can find only the right methods (e.g. polymorph methods has to recognized > to find only the correct one which is meant)... > > ECB is a language independent tool so for itself it could only offer a simple > grep-find search of the current selected method in the methods-buffer. This > method would then be search with Emacs builtin grep-find in the whole source- > patch where current source-file reside. This would be possible and probably > not really hard...maybe a good idea...let me see... > > Maybe with the semanticdb of the semantic-library a language-independent smart > and corrent mechanism could be implemented too... > > 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. - Paul
