mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 18:00:26 +02:00
IDE: rename identifier: open changed files
git-svn-id: trunk@35724 -
This commit is contained in:
parent
b80f4dd6e2
commit
3f4bf66b8b
21
ide/main.pp
21
ide/main.pp
@ -15600,6 +15600,7 @@ var
|
||||
PascalReferences: TAVLTree;
|
||||
ListOfLazFPDocNode: TFPList;
|
||||
CurUnitname: String;
|
||||
OldChange: Boolean;
|
||||
begin
|
||||
Result:=mrCancel;
|
||||
if not BeginCodeTool(TargetSrcEdit,TargetUnitInfo,[]) then exit;
|
||||
@ -15713,13 +15714,19 @@ begin
|
||||
mtInformation,[mbCancel],'');
|
||||
exit(mrCancel);
|
||||
end;
|
||||
if not CodeToolBoss.RenameIdentifier(PascalReferences,
|
||||
Identifier,Options.RenameTo)
|
||||
then begin
|
||||
DoJumpToCodeToolBossError;
|
||||
debugln('TMainIDE.DoFindRenameIdentifier unable to commit');
|
||||
Result:=mrCancel;
|
||||
exit;
|
||||
OldChange:=OpenEditorsOnCodeToolChange;
|
||||
OpenEditorsOnCodeToolChange:=true;
|
||||
try
|
||||
if not CodeToolBoss.RenameIdentifier(PascalReferences,
|
||||
Identifier,Options.RenameTo)
|
||||
then begin
|
||||
DoJumpToCodeToolBossError;
|
||||
debugln('TMainIDE.DoFindRenameIdentifier unable to commit');
|
||||
Result:=mrCancel;
|
||||
exit;
|
||||
end;
|
||||
finally
|
||||
OpenEditorsOnCodeToolChange:=OldChange;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user