toolWindow.setIcon(Icons.WINDOW_EXECUTION_CONSOLE);
toolWindow.setToHideOnEmptyContent(true);
}
if (toolWindow.getContentManager().getContents().length == 0) {
ExecutionConsoleForm executionConsoleForm = getExecutionConsoleForm();
ContentFactory contentFactory = new ContentFactoryImpl();
Content content = contentFactory.createContent(executionConsoleForm.getComponent(), null, true);
toolWindow.getContentManager().addContent(content);
toolWindow.setAvailable(true, null);
}
return toolWindow;
}