getSelectedFiles - can there be multiple files selected at a time? Follow
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).
Please sign in to leave a comment.
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.