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.

3 comments
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

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.