[Lazarus] Renaming an existing unit
Jürgen Hestermann
juergen.hestermann at gmx.de
Sat Apr 21 13:54:16 CEST 2012
Sven Barth schrieb:
> On 19.04.2012 19:30, Jürgen Hestermann wrote:
>> Richard Mace schrieb:
>> > > What's the best steps for renaming a unit, that is part of an
existing
>> > > project?
>> > File -> Save as. And answer yes on the question whether you want to
>> > update all references.
>> > Wow, I wasn't expecting it to be that easy/cool :)
>>
>> Not so very cool IMO.
>> The question was how to *rename* a unit. But this is not a rename.
>> It seems to create a copy and you have to clean up the original version
>> yourself.
>> Though better than nothing of course.
>
> Joost did forget to mention that between the Save As and
> the update of the references dialog there is also a dialog
> which asks you whether you want to delete the original file.
Though it does actually what was intended I still think this is a very
crude workaround.
If I don't know about the mentioned behaviour I would not click on "Save
as" when I
just want to rename a unit. I would search for a function "Rename" instead.
"Save as" is a common function for creating a copy of something.
That a dialog will appear that allows deletion of the original version
is completely unexpected an unintuitve. Much better would be to offer
a "Rename" directly.
More information about the Lazarus
mailing list