I want to make simple plugin to have in files popup menu option "Upload to all servers in Deployment section".
First question: is this possible at all? (get from plugin servers list in phpstorm and push for each upload action in loop). And if possible - how to get this deployements servers, cause seems its something special thing for phpstrom\webstorm and idea dont know about them.
I started from webinar tutorial, made simple plugin that has action in projects right click popup, found code to get selected files here.
This was working, than i found this link http://confluence.jetbrains.com/display/PhpStorm/Setting-up+environment+for+PhpStorm+plugin+development, it says "... in the second case you need to specify current installation of PhpStorm. This step is described in the Getting Started with Plugin Development...", so i changed in projects settings SDK to phpstrom folder, instead of idea. And add idea sources. After this run button start running phpstrom, plugin inside, but it say:
when code try to
VirtualFile selectedFiles = DataKeys.VIRTUAL_FILE_ARRAY.getData(dataContext);
At same time when i switching SDK back to idea folder, and export plugin as jar, import in phpstrom - this code works.