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.

0
2 comments

You can use com.intellij.openapi.actionSystem.CommonDataKeys#VIRTUAL_FILE_ARRAY in your Action implementation

1
Avatar
Permanently deleted user

Thank you very much !

0

Please sign in to leave a comment.