List of usage examples for com.intellij.openapi.wm ToolWindow getStripeTitle
@NotNull String getStripeTitle();
From source file:com.intellij.ide.actions.ActivateToolWindowAction.java
License:Apache License
private void updatePresentation(@NotNull Presentation presentation, @NotNull ToolWindow toolWindow) { String title = toolWindow.getStripeTitle(); presentation.setText(title);//from w w w . java 2 s .c o m presentation.setDescription(IdeBundle.message("action.activate.tool.window", title)); Icon icon = toolWindow.getIcon(); if (EventLog.LOG_TOOL_WINDOW_ID.equals(myToolWindowId)) { icon = AllIcons.Ide.Info_notifications; } presentation.setIcon(icon == null ? null : new SizedIcon(icon, icon.getIconHeight(), icon.getIconHeight())); }
From source file:com.intellij.ide.actions.SwitcherToolWindowsListRenderer.java
License:Apache License
protected void customizeCellRenderer(JList list, Object value, int index, boolean selected, boolean hasFocus) { hide = false;//from w w w .j ava 2 s . co m if (value instanceof ToolWindow) { final ToolWindow tw = (ToolWindow) value; setIcon(getIcon(tw)); final String name; String stripeTitle = tw.getStripeTitle(); if (myPinned) { name = stripeTitle; } else { append(shortcuts.get(tw), new SimpleTextAttributes(SimpleTextAttributes.STYLE_UNDERLINE, null)); name = ": " + stripeTitle; } append(name); if (mySpeedSearch != null && mySpeedSearch.isPopupActive()) { hide = mySpeedSearch.matchingFragments(stripeTitle) == null && !StringUtil.isEmpty(mySpeedSearch.getEnteredPrefix()); } } }
From source file:com.intellij.ide.actions.ToggleToolbarAction.java
License:Apache License
@NotNull public static String getShowToolbarProperty(@NotNull ToolWindow window) { return "ToolWindow" + window.getStripeTitle() + ".ShowToolbar"; }