At 09:55 AM 7/26/00 GMT, Max R. Andersen wrote:
>
> Ivana> I am looking for a convenient way to open a Java source in
> Ivana> Emacs by pointing to the complete class name. For example,
> Ivana> if I see the line:
>
> Ivana> Ellipse e = new Ellipse();
>
> Ivana> then I will go to top of the file and place the cursor on
> Ivana> the line that says
>
> Ivana> import com.sunflower.graphics.Ellipse;
>
> Ivana> then press a key. I want Emacs to then open the file
>
> Ivana> com\sunflower\graphics\Ellipse.java
>
> Ivana> Etags is not necessary to do this. (Of course, the
> Ivana> equivalent of a "CLASSPATH" must be separately provided to
> Ivana> Emacs, perhaps in the .emacs file.)
>
> Ivana> (Better still, maybe Emacs has already seen the import
> Ivana> statement, so I don't have to manually go to the import
> Ivana> statement.)
>
> Ivana> Is something like this already available?
>
>As someone already mentioned JDE has some support for this,
^^^^^^^^^^^^
Some support??!! The JDE's support is complete unlike the very limited ffap
solution that you propose. The jde-show-class-source command finds the
source for any class that exists on the class path defined by the
jde-global-classpath variable or CLASSPATH environment variable and whose
source is in one of the paths specified by jde-db-source-directories,
unlike your solution, which does not work for JDK API classes or jar
libraries or projects where source files and class files are stored in
separate directories.
> but for me it is dreadfull as it seems to require the startup of the
beanshell
>which is not always working correctly - so I have just put this
>solution together for you all to enjoy :)
>
I have no problems with the Beanshell on any of the Windows platforms and
occasionally have to issue the first command that requires the Beanshell
twice on Solaris but this is minor.
If you are having problems with the beanshell, please report them. A lot of
JDE functionality, e.g., the wizards, depends on the Beanshell. Thus, if it
is not working for you, you are missing out on key features of the JDE.
- Paul