Hide the run tool window and show my custom tool window on project execution

I have a tool window that gets activated when a project is executed, but I can't figure out how to make it popup automatically like the run tool window does. I basically need to stop the run tool window from popping up, and show my tool window instead. Is there a way to achieve this? Thank you

A tool window has the hide and show methods which takes Runnable as an argument but I don't know how to use that.

ToolWindowManager.getInstance(project).getToolWindow("Run").hide(Runnable runnable);
1 comment
Comment actions Permalink

Maybe implementing com.intellij.execution.Executor will help (e.g. com.intellij.execution.executors.DefaultRunExecutor).

0

Please sign in to leave a comment.