show/hide/activate ToolWindow

Hi,

I need to show/hide/activate ToolWindow form code, not by mouse clicks. I found methodds for that in class ToolWindow, but they require Runnable parameter. If I supply null for it, the window reacts fine on that message, but IDEA throws exception that this should be done only from EventDispatchThread.

So here my questions go:

Q: What is the Runnable parameter required for?
Is ther ean other way to manipulate ToolWindows?

Thanks for any answer!

Pavlin

0

请先登录再写评论。