Run files selectively

Hello,

In my intellij plugin I would like to select the files from project explorer and do a right click to execute only the selected files.
How can I do this?

3 comments
Comment actions Permalink

What do you mean by "execute selected files"? What kind of files are those?


0
Comment actions Permalink

They are custom filetypes. I just need an handler to all those selected files. I need the filepath of all those files. On right click when I select Run option, i can invoke a command which executes them.

Currently, on right click, i get the file name on which i did right click. But i want the filenames of all those selected.

0
Comment actions Permalink

You can use getData(CommonDataKeys.VIRTUAL_FILE_ARRAY) to get the list of all VirtualFiles which are currently selected.

0

Please sign in to leave a comment.