I have looked at the web site but have not really worked with xref, so I am not sure
of its capabilities and shortcomings.  One refactoring method I would LOVE to be able
to do with JDE is rename method/class/package.  Often in the middle of development, I
find a name that is more appropriate than the name I am using and I would like to
rename it---methods, classes, packages, even public static final variables.  (I can do
private variables, myself easily enough with search and replace! :-)  Is there a way
to get JDE (and/or tags) to help me with renaming?  (If the answer is tags, could you
please explain how?  I have used emacs for years, but have never mastered tags.)

Ultimately, I am not talking about simple global replace but rather a java aware
renamer that replaces all uses of a name, all java doc references to a name, and all
package/import uses.  For now, however, I would appreciate hearing any insight on best
practices on how to use JDE/etags/emacs for renaming.

Thanks,
Phil

"Kevin A. Burton" wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> "Berche, Guillaume" <[EMAIL PROTECTED]> writes:
>
> > Hi,
> >
> > Reading one article of Martin Fowler about tool support for refactoring
> > (http://www.martinfowler.com/articles/refactoringRubicon.html), I had a look at
> > the Xrefactory emacs-based tool( http://www.xref-tech.com/xrefactory/main.html )
>
> A lot of the features from xref are already in Emacs/JDE.  It would be nice to
> have code completion which used a menu like this:
>
> http://www.xref-tech.com/xrefactory/images/compl/java/search.png
> <snip>
>
> >
> > The Ctrl-P pressed anywhere inside method call parentheses brings the tooltip
> > with available method signatures.
>
> Emacs doesn't support tooltips easily.  When Emacs 21 comes out it will be worth
> putting in the effort to solve this (assuming it isn't already done)
> <snip>
>
> - --
> Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] )
>         Cell: 408-910-6145 URL: http://relativity.yi.org ICQ: 73488596
>
> Learn from other people's mistakes, you don't have time to make your own.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
>
> iD8DBQE6pwLhAwM6xb2dfE0RAh92AKDI5BiMT02eSbOCG9mQceWeE0b+ywCgqSU5
> kbdFLHQDOTDaIyOGeu5coyI=
> =Gc4k
> -----END PGP SIGNATURE-----
begin:vcard 
n:Miller;Philip
tel;fax:(609) 734-2662
tel;work:(609) 734-2779
x-mozilla-html:FALSE
org:Sarnoff Corporation;Advanced Video Processing
adr:;;201 Washington Road;Princeton;NJ;08543;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:MTS
end:vcard

Reply via email to