Search in sources :

Example 1 with RunnerContentUi

use of com.intellij.execution.ui.layout.impl.RunnerContentUi in project intellij-community by JetBrains.

the class ToggleToolbarLayoutAction method setSelected.

@Override
public void setSelected(@NotNull AnActionEvent e, boolean state) {
    RunnerContentUi ui = getRunnerUi(e);
    assert ui != null;
    ui.setHorizontalToolbar(state);
}
Also used : RunnerContentUi(com.intellij.execution.ui.layout.impl.RunnerContentUi)

Example 2 with RunnerContentUi

use of com.intellij.execution.ui.layout.impl.RunnerContentUi in project intellij-community by JetBrains.

the class XDebugSessionTab method showView.

private static void showView(@NotNull XDebugSessionImpl session, String viewId) {
    XDebugSessionTab tab = session.getSessionTab();
    if (tab != null) {
        tab.toFront(false, null);
        // restore watches tab if minimized
        tab.restoreContent(viewId);
        JComponent component = tab.getUi().getComponent();
        if (component instanceof DataProvider) {
            RunnerContentUi ui = RunnerContentUi.KEY.getData(((DataProvider) component));
            if (ui != null) {
                Content content = ui.findContent(viewId);
                // make sure we make it visible to the user
                if (content != null) {
                    ui.select(content, false);
                }
            }
        }
    }
}
Also used : Content(com.intellij.ui.content.Content) RunnerContentUi(com.intellij.execution.ui.layout.impl.RunnerContentUi)

Aggregations

RunnerContentUi (com.intellij.execution.ui.layout.impl.RunnerContentUi)2 Content (com.intellij.ui.content.Content)1