use of com.intellij.ui.SizedIcon in project intellij-community by JetBrains.
the class ActivateToolWindowAction method updatePresentation.
private void updatePresentation(@NotNull Presentation presentation, @NotNull ToolWindow toolWindow) {
String title = toolWindow.getStripeTitle();
presentation.setText(title);
presentation.setDescription(IdeBundle.message("action.activate.tool.window", title));
Icon icon = toolWindow.getIcon();
if (EventLog.LOG_TOOL_WINDOW_ID.equals(myToolWindowId)) {
icon = AllIcons.Ide.Notification.InfoEvents;
}
presentation.setIcon(icon == null ? null : new SizedIcon(icon, icon.getIconHeight(), icon.getIconHeight()));
}
Aggregations