At 12:41 PM 7/26/00 -0400, you wrote:
>
>
>For what it's worth -
>
>I can't get jde-show-class-source command to work, even though I have both
>CLASSPATH and jde-db-source-directories set, while ffap-support.el worked
right
>out of the box...any thoughts?

I really wish people would define what they mean when they say "work".

I just used the Files->JDE New command to create a skeletan Swing app. My
CLASSPATH is null. My jde-global-classpath is nil. My
jde-db-source-directories points to e:/jdk-1.3/src. I invoke
jde-show-class-source on the symbol JFrame at point. Beanshell is not
running. Lo-and-behold, after about 5 seconds (all Beanshell startup),
e:/jdk-1.3/src/javax/swing/JFrame.java starts loading in my Emacs buffer.
Can ffap-support.el do that?

Then I put the cursor on the symbol File and execute the command again. The
JDE responds--this time instantaneously--

Several classes match the name you specified.
Select the ones you want to view.
Then click the OK button.

 [ ] bsh.File
 [ ] java.io.File

[Ok][Cancel]

I pick java.io.File and click OK and the source for java.io.File starts
loading instantaneously.

Can ffap-support.el do this out of the box? In fact, can ffap-support.el
even find JDK source files (without artificially putting the jdk-1.3/src
directory on the CLASSPATH environment variable). To me this is very
important as I am a heavy user of the JDK API and as the doc is not great I
find myself frequently referring to the JDK API source to figure out how a
give feature reallyw works.

Finally, Kevin, please note that the JDE, in general, makes minimal usage
of the CLASSPATH environment variable. In general, if you want to use the
JDE successfully, you should get out of the habit of thinking of the
CLASSPATH environment variable as the primary class path specifier and
instead get used to setting jde-global-classpath for all your projects. In
particular, the value of jde-global-classpath is the classpath that the
Beanshell starts up with, plus the default JDK libraries that the vm starts
with, which is why you don't even need jde-global-classpath (or CLASSPATH)
to find JDK source files.

- Paul



Reply via email to