How to get all selected files paths.
Answered
I'm working on extending plugin, and i have to choose multiple files in IntelliJ then right-click on them and perform an action (get path of multiple files that i've chosen). What is the easiest solution of this problem?
For example we choose 3 files and then perform cut or copy. It's the same but i need to implement other functionality. I don't know if there is any list of elements chosen by me.
Please sign in to leave a comment.
You can use com.intellij.openapi.actionSystem.CommonDataKeys#VIRTUAL_FILE_ARRAY in your Action implementation
Thank you very much !