What should I do ?

here is an example :

<![CDATA[ ]]>
I can get what I have clicked by these codes:

<![CDATA[PsiFile file=(PsiFile) event.getDataContext().getData("psi.File");
Editor editor=(Editor) event.getDataContext().getData(DataConstants.EDITOR);

String name=file.findElementAt(editor.getCaretModel().getOffset());

]]>


but I want to obtain which tag "hello" have been placed,how can I get "greeting" ?

thx.

Please sign in to leave a comment.