getSelectedFiles - can there be multiple files selected at a time?
已回答
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).
请先登录再写评论。
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.