mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 09:20:49 +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);
|
procedure TIdeInspectForm.btnOpenFileClick(Sender: TObject);
|
||||||
begin
|
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
|
if FCurEntry.IdentifierName <> '' then
|
||||||
LazarusIDE.DoOpenFileAndJumpToIdentifier(EditFile.Text, FCurEntry.IdentifierName, -1, -1, [ofOnlyIfExists, ofRegularFile])
|
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
|
else
|
||||||
LazarusIDE.DoOpenEditorFile(EditFile.Text, -1, -1, [ofOnlyIfExists, ofRegularFile]);
|
LazarusIDE.DoOpenEditorFile(EditFile.Text, -1, -1, [ofOnlyIfExists, ofRegularFile]);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user