Open the file using the link from the plugin

Answered

Hi! How can I implement the transition to the project file from the plugin window? For example, there is such a thing in the problems window, where a link to the error file is indicated.

0
3 comments

To show PSI element: com.intellij.codeInsight.navigation.NavigationUtil#activateFileWithPsiElement(com.intellij.psi.PsiElement)

To navigate to file with position: com.intellij.openapi.fileEditor.OpenFileDescriptor

Both can be attached to any UI element "click" behavior

0

is there a visual example (template)? and then it's not entirely clear what to write and where с:

0

Sorry IDK what kind of visual example/template you'd expect here, as it's highly specific to your plugin and your UI elements where you actually want to put the link

0

Please sign in to leave a comment.