mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 13:39:08 +02:00
IDE: find identifier references: rename option
git-svn-id: trunk@26224 -
This commit is contained in:
parent
234a5b2de1
commit
202d086cc0
16
ide/main.pp
16
ide/main.pp
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user