Get selected PsiDirectory's when more than one is selected
I have the following code, which returns an array with length=1 when only one directory is selected, but returns an empty array when more than one is selected. I feel like I have to missing something stupid/easy here? Can anyone help me out?
IdeView ideView = evt.getData(LangDataKeys.IDE_VIEW);
PsiDirectory[] directories = ideView.getDirectories();
Please sign in to leave a comment.
LangDataKeys.PSI_ELEMENT_ARRAY