mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix quick access tree: show actionId if action text is not set
This commit is contained in:
@@ -299,7 +299,9 @@ public class QuickListPanel {
|
||||
String actionId = (String)userObject;
|
||||
used = ((DefaultListModel)myActionsList.getModel()).lastIndexOf(actionId) >= 0;
|
||||
AnAction action = ActionManager.getInstance().getAction(actionId);
|
||||
setText(action != null ? action.getTemplatePresentation().getText() : actionId);
|
||||
String text = action == null ? actionId : action.getTemplatePresentation().getText();
|
||||
if (text == null || text.length() == 0) text = actionId;
|
||||
setText(text);
|
||||
if (action != null) {
|
||||
Icon actionIcon = action.getTemplatePresentation().getIcon();
|
||||
if (actionIcon != null) {
|
||||
|
||||
Reference in New Issue
Block a user