From e57d9f8862340f21ca4389ef8e075c8601d1fdf5 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Tue, 28 Jun 2016 12:28:50 +0300 Subject: [PATCH] go to action: show action description in tooltip --- .../src/com/intellij/ide/util/gotoByName/GotoActionModel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java index 2ca3a7cb88c2..f2a9425950a7 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java +++ b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java @@ -541,6 +541,7 @@ public class GotoActionModel implements ChooseByNameModel, Comparator, E panel.add(createIconLabel(presentation.getIcon()), BorderLayout.WEST); } appendWithColoredMatches(nameComponent, getName(presentation.getText(), groupName, toggle), pattern, fg, isSelected); + panel.setToolTipText(presentation.getDescription()); Shortcut[] shortcuts = KeymapManager.getInstance().getActiveKeymap().getShortcuts(ActionManager.getInstance().getId(anAction)); String shortcutText = KeymapUtil.getPreferredShortcutText(