Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » search and replace
search and replace [message #224602] Thu, 23 February 2006 09:08 Go to next message
Eclipse UserFriend
Originally posted by: jwoofy.hotmail.com

I would like to change from using log4j to my own subclass of log4j. I many
files with the line:
Logger cat = Logger.getLogger(String);

which I want to change to:
JeffLogger cat = JeffLogger.getLogger(String);

Does Eclipse have a global search and replace across files to change
instances of Logger to JeffLogger? Refactor won't work because Logger is a
library.

Thanks

--
Jeff
Re: search and replace [message #224924 is a reply to message #224602] Tue, 28 February 2006 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.eclipse.org

Jeff wrote:

>I would like to change from using log4j to my own subclass of log4j. I many
>files with the line:
>Logger cat = Logger.getLogger(String);
>
>which I want to change to:
>JeffLogger cat = JeffLogger.getLogger(String);
>
>Does Eclipse have a global search and replace across files to change
>instances of Logger to JeffLogger?
>
Search > File...

Dani

> Refactor won't work because Logger is a
>library.
>
>Thanks
>
>
>
Re: search and replace [message #225565 is a reply to message #224602] Wed, 08 March 2006 05:32 Go to previous message
Eclipse UserFriend
If it's only about replacing calls a few static methods, you can use the
'Introduce Indirection' refactoring, which has been added for 3.2M5:
http://download.eclipse.org/downloads/drops/S-3.2M5-20060217 1115/eclipse-news-M5.html

HTH,
Markus

Jeff wrote:

> I would like to change from using log4j to my own subclass of log4j. I many
> files with the line:
> Logger cat = Logger.getLogger(String);
>
> which I want to change to:
> JeffLogger cat = JeffLogger.getLogger(String);
>
> Does Eclipse have a global search and replace across files to change
> instances of Logger to JeffLogger? Refactor won't work because Logger is a
> library.
>
> Thanks
>
Previous Topic:Customized editor very slow, what's wrong
Next Topic:Show Key Assists
Goto Forum:
  


Current Time: Thu Jun 05 05:16:42 EDT 2025

Powered by FUDForum. Page generated in 0.26942 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top