Example usage for com.intellij.openapi.wm ToolWindowContentUiType TABBED

List of usage examples for com.intellij.openapi.wm ToolWindowContentUiType TABBED

Introduction

In this page you can find the example usage for com.intellij.openapi.wm ToolWindowContentUiType TABBED.

Prototype

ToolWindowContentUiType TABBED

To view the source code for com.intellij.openapi.wm ToolWindowContentUiType TABBED.

Click Source Link

Usage

From source file:com.intellij.ide.actions.ShowContentAction.java

License:Apache License

@Override
public void update(AnActionEvent e) {
    final ToolWindow window = getWindow(e);
    e.getPresentation().setEnabled(window != null && window.getContentManager().getContentCount() > 1);
    e.getPresentation()/* w  ww  . jav a 2s  .co m*/
            .setText(window == null || window.getContentUiType() == ToolWindowContentUiType.TABBED
                    ? "Show List of Tabs"
                    : "Show List of Views");
}

From source file:com.intellij.ide.actions.ToggleContentUiTypeAction.java

License:Apache License

@Override
protected boolean isSelected(ToolWindow window) {
    return window.getContentUiType() == ToolWindowContentUiType.TABBED;
}

From source file:com.intellij.ide.actions.ToggleContentUiTypeAction.java

License:Apache License

@Override
protected void setSelected(ToolWindow window, boolean state) {
    window.setContentUiType(state ? ToolWindowContentUiType.TABBED : ToolWindowContentUiType.COMBO, null);
}