Embed Action Component into Dialog
Answered
Hello All,
I would like to create a dialog that will perform some "action" with parameters defined in the dialog window. It is clear to me how to do it, but in addition, I would like to embed RunConfigurationsComboBoxAction into dialog with the same "Presentation" that is in the Main window. Than upon click on the OK button, I would like to run the configuration which user selected, and after that execute my custom code in addition.
I would love to have end results somewhat looking as on the screenshot below. Is that possible to be achieved?
Best Regards,
Dominik Wojciechowski
Please sign in to leave a comment.
I'm not sure you really want that popup with all the additional functionality (edit/save/remove/... ) in there.
You can obtain all available run configuration via com.intellij.execution.RunManager#getAllSettings and/or filter by specific type etc. and then just use plain UI component for choosing from list.
Thanks, Yann, very good advice, I was able to use your suggestion, with an even better outcome than expected!