diff options
Diffstat (limited to 'platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java')
-rw-r--r-- | platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java b/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java index e72428804ee4..92a1d9c8b42c 100644 --- a/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java +++ b/platform/platform-api/src/com/intellij/openapi/actionSystem/ex/ComboBoxAction.java @@ -47,6 +47,7 @@ public abstract class ComboBoxAction extends AnAction implements CustomComponent private static final Icon DISABLED_ARROW_ICON = IconLoader.getDisabledIcon(ARROW_ICON); private boolean mySmallVariant = true; + private String myPopupTitle; private DataContext myDataContext; protected ComboBoxAction() { @@ -77,6 +78,10 @@ public abstract class ComboBoxAction extends AnAction implements CustomComponent mySmallVariant = smallVariant; } + public void setPopupTitle(String popupTitle) { + myPopupTitle = popupTitle; + } + @Override public void update(AnActionEvent e) { super.update(e); @@ -247,7 +252,7 @@ public abstract class ComboBoxAction extends AnAction implements CustomComponent DataContext context = getDataContext(); myDataContext = null; final ListPopup popup = JBPopupFactory.getInstance().createActionGroupPopup( - null, group, context, JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, false, onDispose, getMaxRows()); + myPopupTitle, group, context, JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, false, onDispose, getMaxRows()); popup.setMinimumSize(new Dimension(getMinWidth(), getMinHeight())); return popup; } |