[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case sensitive Find/Replace actions messed up by search history

"Michael Rauch" <mira-lists@xxxxxxxxxxxxxxxx> wrote in message
news:ajc06k$gch$1@xxxxxxxxxxxxxxxx
> hi,
>
> i'm developing EJB's and i have some beans which are quite similar, so i
> use an already existing .java file of a working bean (with xdoclet tags,
> etc) and run a replace over it to get the beans name, classname etc right.
> after that i go over the code and adjust the other things. this saves me a
> lot of typing.
>
> problem now is that when i want to build a bean called 'Competition' based
> on the existing code of a bean called 'Event' i do a replace-all with
> 'Event' -> 'Competition' and select the case-sensitive checkbox.  after
> that i do the same with 'event' -> 'competition' to get the lowercase
> occurencies of the text replaced (for local variables etc.). when i type
> 'event' in the inputfield (exactly when i type the last character 't') it
> finds the text 'Event' in the search history and replaces my 'event' with
> 'Event', which is no good for case-sensitive replace manouvres.
>
> how can i force the search/replace dialog to not use the choice it found
> in the history (dropdown list at the right) but use exactly what i typed
> as input? i couldn't find an option to switch that _support_ of, but maybe
> i was too impatient with searching. to me it looks like a bug, but i
> couldn't find anything in the bug database, so it's maybe a feature? .. or
> people are just not as lazy as i am and don't do replaces that much.
>
> eclipse 2.0 on a debian GNU/Linux system.
>


Sounds like a bug to me.

I'm actually lazier than you. I don't use Find/Replace to rename a class --
instead I copy and paste the class. Eclipse asks me for the new name and
changes everything for me. I don't know if this will work for your case,
though.

/peter

--
Peter Burka
Object Technology International, Inc.