Re: find java file

"Jeffrey Phillips" <[email protected]>
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
I use cscope http://cscope.sourceforge.net/ for this task.

Then in prj.el, I add:

   '(cscope-initial-directory "myproject/directory/src")

to the jde-set-variables alist.

Then I can search for functions, functions calling functions, global
defs, etc., etc.

I also have a jde-mode menu item that I can reindex the project source
directory by calling:

    (cscope-index-files cscope-initial-directory)

It's a pretty powerful tool for java, even if it was intended for C.

As Phillip recommends, depending on the source browsing workflow, ECB
and recentf are also used very frequently.

On 4/18/06, Phillip Lord <[email protected]> wrote:
> >>>>> "PSdC" == Pedro Sa da Costa <[email protected]> writes:
>
>   PSdC> I suppose this question is a jdee question and not a emacs
>   PSdC> question.
>
>   PSdC> How can i find quickly a java file in jdee environment in
>   PSdC> emacs? For example, i want to find the foo.java file. My wish
>   PSdC> is to, simple write foo.java, and automatically, the jdee goes
>   PSdC> to the right dir and opens the file. If not possible, i want
>   PSdC> to know in what directory is the foo.java file.
>
>   PSdC> My application is inside a project. What i'm saying is that i
>   PSdC> have a prj.el configured in my application.
>
>
>
> There are a number of tools which provide this sort of
> functionality. The closest to what you are asking for is globalff.el;
> it uses the locate command to search your file system giving feedback
> on appropriate files as you type.
>
> I, personally, use ido.el. This doesn't do what you are asking for,
> but allows you to navigate directories so quickly that it's good
> enough. Or find-dired which does what you want, but it slower than
> globalff.el, but doesn't need a precomputed database and is part of
> standard emacs. Or recentf, which stores recently open files. As does
> ECB, which does lots of other things as well.
>
> So many options...
>
> Phil
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.