ExecutionConsole (@NotNull ConsoleView executionConsole) { return new ConsoleViewWrapperBase(executionConsole) { private final JPanel myPanel; { myPanel = new NonOpaquePanel(new BorderLayout()); JComponent baseComponent = getDelegate().getComponent(); myPanel.add(baseComponent, BorderLayout.CENTER); DefaultActionGroup actionGroup = new DefaultActionGroup(executionConsole.createConsoleActions()); ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("BuildConsole", actionGroup, false); toolbar.setTargetComponent(baseComponent); myPanel.add(toolbar.getComponent(), BorderLayout.EAST); } @Override public @NotNull JComponent getComponent() { return myPanel; } }; }