List of usage examples for com.intellij.openapi.wm ToolWindow getContentUiType
@NotNull ToolWindowContentUiType getContentUiType();
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; }