I am trying to find a way to override the default focus stealing behavior for IDEA toolwindows. The use cases are:
1) i have a custom python console in my plugin which multiplexes between debug and run modes. That is displays the debug shell,when paused and the regular shell when running. I need to prevent the debug toolwindow from stealing my focus when paused at a breakpoint
2) My VC plugin has an autoupdater which inherits from AbstractCommonUpdateAction. Since it runs automatically I need to prevent the changes view from stealing focus and interupting whatever the user is doing.
Please let me know the best way of accomplishing this!