How to pop up console terminal

Hi,

  For the plugin i am developing,i have created a console window as shown below:-

ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow("Terminal");
consoleView = TextConsoleBuilderFactory.getInstance().createBuilder(project).getConsole();
Content content = toolWindow.getContentManager().getFactory().createContent(consoleView.getComponent(), "Console Window", true);
toolWindow.getContentManager().addContent(content);
toolWindow.getContentManager().setSelectedContent(content, true, true);

This will create the consoleview.But i want it to pop up after creation.Please advise
0
1 comment
Avatar
Permanently deleted user

I believe this will do the job:

toolWindow.activate(/*runnable:*/ null, /*autoFocusContents:*/ false);

0

Please sign in to leave a comment.