Example usage for com.intellij.openapi.wm ToolWindow getContentUiType

List of usage examples for com.intellij.openapi.wm ToolWindow getContentUiType

Introduction

In this page you can find the example usage for com.intellij.openapi.wm ToolWindow getContentUiType.

Prototype

@NotNull
    ToolWindowContentUiType getContentUiType();

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()//from  ww  w.  j  av  a2 s.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;
}