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
Please sign in to leave a comment.
I believe this will do the job:
toolWindow.activate(/*runnable:*/ null, /*autoFocusContents:*/ false);