public XDebugTabLayouter createTabLayouter() {
return new XDebugTabLayouter() {
@Override
public void registerAdditionalContent(@NotNull RunnerLayoutUi ui) {
Content gdbConsoleContent = ui.createContent("GdbRawConsoleContent",
m_gdbRawConsole.getComponent(), "GDB RAW Output", AllIcons.Debugger.ToolConsole,
m_gdbRawConsole.getPreferredFocusableComponent());
gdbConsoleContent.setCloseable(false);
ui.addContent(gdbConsoleContent, 3, PlaceInGrid.bottom, false);
gdbConsoleContent = ui.createContent("GdbConsoleContent",
m_gdbConsole.getComponent(), "GDB Console", AllIcons.Debugger.Console,
m_gdbConsole.getPreferredFocusableComponent());
gdbConsoleContent.setCloseable(false);
// Create the actions
final DefaultActionGroup consoleActions = new DefaultActionGroup();
AnAction[] actions = m_gdbConsole.getConsole().createConsoleActions();
for (AnAction action : actions) {
consoleActions.add(action);
}
gdbConsoleContent.setActions(consoleActions, ActionPlaces.DEBUGGER_TOOLBAR,
m_gdbConsole.getConsole().getPreferredFocusableComponent());
ui.addContent(gdbConsoleContent, 2, PlaceInGrid.bottom, false);
}
};