At 06:38 PM 1/12/00 +0000, you wrote:
>
>Hi Paul. I am looking for a feature I hope exists with
>jtags/emacs/JDE. When I am browsing existing Java source,
>I often would like to put the cursor on a class name which
>is part of a variable declaration, and go to the Java source
>file for that class, so if I have
>
> class SomeClass {
> ...
> private AnotherClass myOther;
> ...
> }
>
>I would like to put the cursor on the word "AnotherClass"
>and be able to pretty easily go to the Java source file for
>that class, which presumably is called "AnotherClass.java" and
>is in some directory with a root common to "SomeClass.java"
>
>I have tried running jtags at the top of the source tree, and
>it builds a big TAGS file. I have tried what seemed like the
>correct way to use "M-." to get to the definition, but all it
>seems to do is put me at the first method declaration which
>has a return value of that type, in whatever file comes first
>in the TAGS file I guess. So if there is a file "ACME.java"
>with a method "public AnotherClass getAnotherClass()", I will
>go there, even though it has nothing to do with defining the
>class "AnotherClass."
>
>Do you know if I can do what I want to do with jtags/JDE/emacs?
>
>
There is no such function. I myself have realized only recently
that this gap in functionality existed. I had assumed that tags
would tag types as well as fields and methods but this is not
the case. Anyway, it should be quite easy to add this functionality.
There is already a command that displays the javadoc for the class
at point. It would be very easy to reuse the jde-help-class code
to implement a jde-show-class-source command. I'll try to have this
ready for the next release.
- Paul