getSelectedFiles - can there be multiple files selected at a time?

Answered

Why does FileEditorManager.getSelectedFiles method returns an array, not a single VirtualFile? Can there be many selected files in an editor? How to select multiple files in the editor?

I understand that the selected files are the files for which the tab is currently open and active (only one seems to be always active, hence my question).

1 comment
Comment actions Permalink

Hi,

As its Javadoc states, it returns all the files opened in split editors. See example:

FileEditorManager.getSelectedFiles() will return both SimpleFileType and SimpleIcons files.

0

Please sign in to leave a comment.