create references do not navigate to PsiElement

已回答

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.



1

anyone understand me? ^_^

0

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.

0

when click code text ,  focus on toolwindow tree element like psiViewer.   which part can be reference to

0

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

0

请先登录再写评论。