Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Run files selectively
Permanently deleted user
Created
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?
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.
What do you mean by "execute selected files"? What kind of files are those?
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.
You can use getData(CommonDataKeys.VIRTUAL_FILE_ARRAY) to get the list of all VirtualFiles which are currently selected.