how to get psiclass from editor

Hi,
I  want to get the pisclass from currently ope editor,, how can i do that

0
1 comment
Avatar
Permanently deleted user

something like this:


PsiFile psiFile = PsiDocumentManager.getInstance(editor.getProject()).getPsiFile(editor.getDocument());
PsiClass psiClass = ((PsiJavaFile) psiFile).getClasses()[0];


regards,
Markus

0

Please sign in to leave a comment.