Re: find all instances of method x

2002-02-01 Thread Kevin A. Burton

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

aaron armstrong [EMAIL PROTECTED] writes:

 there is one ide feature which i have used in other ides this i constantly
 miss.  there was a way to find all instances of any method within a project -
 thus allowing me to know who/what might be effected by my changes and to know
 if anything was actually using it still.

Which IDE?  Probably Visual Age.

 i've been using jde as my ide for almost 2 years now and love it, i don't use
 many of its bells and whistles, so i'm ignorant of all it can do and am hoping
 someone can give me some pointers on how to find this feature.

Basically you need either a incremental compiler with an index or the ability to
parse method bodies.  From what I hear Semantic 2 will include message body
parsing.

 what this feature would allow me to do is find all places where
 my.class.Person.create() is called in my project.

yeah... sorry.. grep?

Kevin

- -- 
Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] )
 Location - San Francisco, CA, Cell - 415.595.9965
Jabber - [EMAIL PROTECTED],  Web - http://relativity.yi.org/

Help!  I'm a neural net trapped inside a man's body!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE8WuzwAwM6xb2dfE0RApa3AJ0Z2UC1ImW8U9WaEQs9U4Zc7TgZwwCglwVB
ud9GUl3zVtPFgGggODGlQMc=
=0E87
-END PGP SIGNATURE-



Re: find all instances of method x

2002-02-01 Thread aaron armstrong

Thanks to everyone who wrote me with ideas - sounds like Paul's will
work the best for now.

aaron

At Fri, 1 Feb 2002 15:09:47 -0500,
Paul Kinnucan wrote:
 
 Curtis Clifton writes:
   Aaron,
   
   I use grep in emacs for this purpose.  In your example I would do a M-x grep,
   then grep -n -e 'create(' *.java
   
   This will display a buffer showing all the lines containing the string
   'create('.  Clicking on lines in that buffer will jump to the particular line in
   the source code.
   
 
 I use JDE-Find-Expression to search for an expression everwhere in
 the JDE source path (jde-db-source-directories). This displays all the
 hits as hyperlinks in a popup buffer. Clicking on any hyperlink takes
 you to the source of the hit. This command assumes that you have the
 Unix utilities grep and find installed on your system. The Cygwin Unix
 emulation package for Windows, which I use, includes both
 utilities. Since Windows also includes an incompatible function named
 find, I make sure that the Cygwin bin directory is ahead of the
 Windows system directory so that Emacs will find and use the Unix
 version.
 
 - Paul
 
 



RE: find all instances of method x

2002-02-01 Thread Altmann, Michael

Grep works fine for somethings, but not if you have some method like size
that appears all over the place for other classes.  In our development shop
we run a nightly process after the build that pokes the the jar file and
builds a cross reference file.  There are a variety of java decompiler tools
out there that could be used.  We use InsideJC from Dr Dobbs, cafebabe and
jode.