How to add event listener to Deployment Configurations window?
Answered
I have looked other places to find answer to this question. But I couldn't find anything helpful. So here is what I actually want to achieve.
I would like to perform some code in my plugin when the user opens up the “Tools > Deployment > Configurations” dialog window, before it can be shown to the user so that I can update some configuration. Is it possible that I can add some sort of event listener to that window & get notified? If so, could you please mention the classes/methods I need to use? Would be helpful with an example code!
Please sign in to leave a comment.
Hi Abdul,
Is the use case the same as here?
https://intellij-support.jetbrains.com/hc/en-us/community/posts/14217553319570-Deployment-mapping-s-path-update-by-plugin?page=1#community_comment_14346004079634
I doubt there is an extension point that allows to perform any action on dialog open, as it would cause potential UI freezes.
If the use case is the same, please continue in the previous topic.
Hi Karol,
I am so confused. The other topic has been resolved already. But I don't see comments from others on that thread.
here is the link to that request: https://intellij-support.jetbrains.com/hc/en-us/requests/5599737
Anyway, no, this is completely a differenet topic. Here, I want to learn how I can add event listener to Deployment Configuration dialog window so that I can do other stuff. Talking about extension points, I could not figure out anything.
So it is not possible then?
Thank you very much for you help.
Hi Abdul,
I didn't know about this topic being resolved via direct support request. Please never ask the same questions on multiple channels. I spent time trying to help you, while my colleague was doing the same on another channel. Thank you for understanding.
Regarding running the code on dialog open, I don't see any API for achieving this.