mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 23:20:30 +02:00
IdeInspector: Jump to implementation
git-svn-id: trunk@28689 -
This commit is contained in:
parent
48dd5f62bb
commit
37fcb6d37f
@ -340,11 +340,11 @@ end;
|
||||
|
||||
procedure TIdeInspectForm.btnOpenFileClick(Sender: TObject);
|
||||
begin
|
||||
if FCurEntry.Line > 0 then
|
||||
LazarusIDE.DoOpenFileAndJumpToPos(EditFile.Text, Point(1,FCurEntry.Line), Max(FCurEntry.Line-1,1), -1, -1, [ofOnlyIfExists, ofRegularFile])
|
||||
else
|
||||
if FCurEntry.IdentifierName <> '' then
|
||||
LazarusIDE.DoOpenFileAndJumpToIdentifier(EditFile.Text, FCurEntry.IdentifierName, -1, -1, [ofOnlyIfExists, ofRegularFile])
|
||||
else
|
||||
if FCurEntry.Line > 0 then
|
||||
LazarusIDE.DoOpenFileAndJumpToPos(EditFile.Text, Point(1,FCurEntry.Line), Max(FCurEntry.Line-1,1), -1, -1, [ofOnlyIfExists, ofRegularFile])
|
||||
else
|
||||
LazarusIDE.DoOpenEditorFile(EditFile.Text, -1, -1, [ofOnlyIfExists, ofRegularFile]);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user