IDE: find identifier references: rename option

git-svn-id: trunk@26224 -
This commit is contained in:
mattias 2010-06-21 09:20:29 +00:00
parent 234a5b2de1
commit 202d086cc0

View File

@ -14321,15 +14321,8 @@ begin
// ToDo: search i18n references
// ToDo: designer references
// show result
if (not Options.Rename) or (not Rename) then begin
Result:=ShowIdentifierReferences(DeclarationUnitInfo.Source,
DeclarationCaretXY,PascalReferences);
if Result<>mrOk then exit;
end;
// rename identifier
if Options.Rename and Rename then begin
if Options.Rename then begin
if CompareIdentifiers(PChar(Identifier),PChar(CurUnitName))=0 then
begin
IDEMessageDialog(srkmecRenameIdentifier,
@ -14347,6 +14340,13 @@ begin
end;
end;
// show result
if (not Options.Rename) or (not Rename) then begin
Result:=ShowIdentifierReferences(DeclarationUnitInfo.Source,
DeclarationCaretXY,PascalReferences);
if Result<>mrOk then exit;
end;
finally
Files.Free;
OwnerList.Free;