Jump to Source code programmatically from tool window

I have a tool window displaying a bunch of log entries. The log includes the class location with line numbers where ever applicable. I need to add the capability to jump to the correct source code file and the line number when a user clicks on a log entry. Can someone point me in the right direction.

Note that I have the class and the line number. How do i make the jump to the source code? Thank you

0
正式评论

see com.intellij.openapi.fileEditor.OpenFileDescriptor

Avatar
Permanently deleted user

Thank you, will look into this and respond

0

请先登录再写评论。