create references do not navigate to PsiElement
Answered
I need to create a create a reference for PsiLiteralExpression , when cmd + click , I want show my own toolWindow and select relative Ui component.
I read the SDK Reference Contributor, but can find how to do it. which part I can refer to.
Please sign in to leave a comment.
anyone understand me? ^_^
PsiReference is meant to navigate to other PSI element(s). You can provide com.intellij.ide.SelectInTarget extension point that will understand how to locate current context in your tool window ("Open Test in XXX tool window") via Navigate->Select In... action.
when click code text , focus on toolwindow tree element like psiViewer. which part can be reference to
This synchronization is performed via com.intellij.openapi.editor.event.CaretListener. See PsiViewer implementation in https://github.com/cmf/psiviewer/blob/master/src/idea/plugin/psiviewer/controller/project/EditorListener.java