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);
}
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);
}
}
}
}
}
Aggregations