Re: Java classes and package renaming tool?

From: Juha Laiho (Juha.Laiho_at_iki.fi)
Date: 10/16/03


Date: Thu, 16 Oct 2003 15:27:00 GMT

Alex Hunsley <lard@tardis.ed.ac.molar.uk> said:
>I'm refactoring some existing java code soon, and I need to rename quite
>a few classes and a few packages. Is there some sort of tool available
>that renames classes/packages by renaming the actual files, and then
>corrects the references in the code? If not, I was thinking of writing a
>perl script to do such a thing (regexps would be handy, if dangerous!).

If I'm not mistaken, this action of renaming classes and packages,
moving classes from package to another, and even rearranging methods
between classes is called refactoring. So, you might find something
you're looking for by keyword "refactoring tools". As I understand,
the Eclipse IDE (that was suggested in another response) has rather
good refactoring support.

-- 
Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
         PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)


Relevant Pages

  • Re: Java classes and package renaming tool?
    ... > I'm refactoring some existing java code soon, and I need to rename quite ... > a few classes and a few packages. ...
    (comp.lang.java.programmer)
  • Re: Java classes and package renaming tool?
    ... > I'm refactoring some existing java code soon, and I need to rename quite ... > a few classes and a few packages. ...
    (comp.lang.java.help)
  • Re: Java classes and package renaming tool?
    ... >I'm refactoring some existing java code soon, and I need to rename quite ... If I'm not mistaken, this action of renaming classes and packages, ... between classes is called refactoring. ...
    (comp.lang.java.help)
  • Re: CryptRL 0.6340 first ASCII release
    ... You will see that i don't use packages. ... Eclipse or NetBeans, you will find their refactoring tools very useful ...
    (rec.games.roguelike.development)
  • Re: Selective Loading 2006
    ... packages so BDS doesn't use .NET at all. ... I guess that means you don't use refactoring and a lot of other IDE stuff? ...
    (borland.public.delphi.non-technical)