How to detect the selected package in Package View?


Someone tell me that this can get the select package.
but it only return only of them. So how can i get all selected packages from package view?

1 comment
Comment actions Permalink

You might want to try
PsiElement[] p = (PsiElement[])event.getDataContext().getData("psi.Element.array");

I didn't use it myself yet, but I found this

  • "psi.Element", "psi.Element.array" - current PSI element(s) in project view/commander etc.

here
http://www.intellij.org/twiki/bin/view/Main/PsiIntroduction

Sascha

PeterGC wrote:

 Object o = event.getDataContext().getData("psi.Element");
> ]]>

>

Someone tell me that this can get the select package.
but it only return only of them. So how can i get all selected packages from package view?

>


0

Please sign in to leave a comment.