[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
Re: Case sensitive Find/Replace actions messed up by search history
|
I don't have an answer to your question but here is how I would create a new
class
based on an existing one:
- select the existing class in Package Explorer
- copy
- paste it into the package. If it is the same as the source package
you are promted for a new name. This renames the top level type
as well as all internal references to that name
- open the class. Select the field with the "old" name and exeute
Refactor->Rename.
Dirk
"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.
>
> thanks,
> /michael
>