You can try the (fairly beta) jde-usages
(http://jde-usages.sourceforge.net). It has a
function called jde-open-class-source-with-completion, which is a
wrapper around
jde-open-class-source that gives you tab-completion on the class and
optional package name.

So how does this help you? If you say M-x
jde-open-class-source-with-completion and hit tab, the completions
buffer will get populated with a list of all the classes that are in
the jde-global-classpath; you can seach for regular expressions here
and hitting enter on any line will take you to the class source.

Since this function is setup for easy class name completion a class
"package.name.Class" is listed as "Class|package.name", so construct
your regexps accordingly.

Suraj

PS: The latest build of jde-usages (from today) adds code to ensure
that the list of classes used by jde-open-class-source-with-completion
is as up to date as the usage and class hierarchy functions, that is,
they are all always in sync with the files in jde-global-classpath.

On Tue, 15 Jun 2004 10:44:29 -0700, Chitale, Sandip V
<[EMAIL PROTECTED]> wrote:
> 
> I think what plalleme is looking for enumeration of all classes/interfaces (java 
> types in general) on the classpath. I think the:
> 
> jde.util.JdeUtilities
> jde.util.ProjectClasses
> or in general jde.util.*
> 
> classes deals with that. However I think there is no method to enumerate the ALL 
> types on classpath.
> 
> -sandip
> HINT:
> 
> Look into
> 
>     /**
>      * returns a list of fully qualified classnames matching an
>      * unqualified name in all classpath entries for the project.
>      *
>      * @param unqualifiedName a <code>String</code> value
>      * @return a <code>List</code> value
>      * @exception IOException if an error occurs
>      */
>     List getClassNames(String unqualifiedName) throws IOException {
>         List rv = new ArrayList();
>         for (Iterator i = classPathEntries.iterator(); i.hasNext();) {
> 
>             ClassPathEntry cpe = (ClassPathEntry) i.next();
>             rv.addAll(cpe.getClassNames(unqualifiedName));
>         }
>         return rv;
>     }
> 
> of jde.util.ProjectClasses
> 
> Sandip
> 
> 
> 
> -----Original Message-----
> From: Paul Kinnucan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 15, 2004 10:23 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Trans.: Class finding
> 
> [EMAIL PROTECTED] writes:
>  >
>  > Hi,
>  >
>  > is there a way to find all class names in the jde project matching a regexp ?
>  > i've read the jde doc, but it seems nothing appears about it. (i don't want jump
>  > to classsource, but just watch all class names then choose one and jump to source)
>  >
> 
> Your question is not very clear. JDE->Find->Expression finds all occurrences of
> a regular expression in the current directory that matches a regular expression
> and displays the results in a buffer. Clicking on any result takes you to the source
> of the match. JDE->Find->Expression... finds all occurrences of a regular expression
> in a directory tree. Why can't you use these commands?
> 
> Paul
> 
>  > Thx
>  >
>  > Christophe
>  >
>  >
>  > ----- Fin du message transf�r� -----
>  >
>  >
> 
>

Reply via email to