How can one activate/deactivate/show/hide toolwindow from my code (not useing mouse click). I have a plugin which uses one tool window docking by default on left (or right) and one tool window docking at bottom. I need to show/hide the second one (which implements a console) whenever I perform an action from the first one. In ToolWindow interface there is a method
public void show(Runnable); ,
but what runnable is expected there.
Finally this seams not to be the proper way to do what I need. Could someone advise me, how to do it, please?