Paul,
It sounds good to me, but with one exception. I would greatly prefer to
be able to expand and collapse methods, fields, and inner classes using
high level "methods", "fields", and "inner classes" nodes. Why? Say you
have two classes, each with lots of methods, fields, etc. - a common
situation. If I have both classes expanded simlutaneously, there is a
good chance that both won't be able to fit completely on the speedbar
window without scrolling. Otherwise I like it. After I sent my message
to the mailing list, I was pondering how I thought the speedbar should
be arranged. The idea of organizing everything under classes seemed
"right". Would implementing my preference be a difficult change to make?
Perhaps it could be cusomizable? Thanks
Chuck
-----Original Message-----
From: paulk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 02, 2000 1:34 PM
To: Irvine, Chuck R.; jde
Cc: paulk; eludlam
Subject: Re: Why no "methods" expansion on speedbar
At 12:52 PM 5/2/00 -0500, you wrote:
>In the speedbar, there are buttons for expanding and un-expanding
>classes, interfaces, variables, etc. However, there isn't a
>corresponding button for methods. Why not? This would be more useful to
>me than the button for classes, for examples. Thanks
>
Funny, you should ask. I've been thinking about this issue recently and
am
interested in your input. First, some background.
The next JDE release, which is imminent, will provide support for the
latest, parser-based version of Eric Ludlam's speedbar. (You will be
required to download this version plus Eric's new parser generator
package
for Emacs, semantic, from Eric's web page.) With this version, the first
expansion level for each source file will have three buttons: Package,
Types, and Misc. These names were chosen by Eric to be language
independent. In the case of Java, expanding the Package option will show
the java package to which the file belongs; expanding the Types entry
will
show all the top-level classes in the source file; expanding the Misc
button will show all the import statements in the file. (This entry may
be
changed to Dependencies.)
You will be able to expand the entry for each class to show the methods,
fields, and inner classes defined in that class plus the class's parent.
You will be able to expand each method entry to show its arguments.
The following is an example of how the speedbar will look:
+ A.java
- B.java
- Package
com.mycompany.pkg1
- Types
- class B
- method1 ()
- (arg1
@ String
+ |arg2
+ )arg3
@ void
+ method2 ()
+ field1 =
- field2 =
@ BeanInfo
+ field3 =
- class InnerClassA
+ InnerClass AA
+ method1 ()
+ field1 =
+ class InnerClassB
> Frame
- Misc
import java.lang.String
import java.awt.Frame
+ C.java
The new version of speedbar does not support expansion of methods.
However,
Eric and I have discussed the desirability of this capability. The
benefit
I can see would be the ability to navigate to variables and classes
defined
within methods. The tradeoff would be greater time to parse the buffer.
I'd be interested in yours (and others) input on this issue and on the
new
speedbar design.
- Paul
------------------------------------------------------------
TECH SUPPORT POLICY
I respond only to requests that contain a complete problem report. The
easiest way to ensure that your report is complete is to include the
output
of the JDE->Help->Submit Problem Report command in your request.
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
JDE website: http://sunsite.auc.dk/jde/
JDE mailing list archive:
http://www.mail-archive.com/[email protected]/maillist.html