summaryrefslogtreecommitdiff
path: root/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/XPathAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/XPathAction.java')
-rw-r--r--plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/XPathAction.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/XPathAction.java b/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/XPathAction.java
index 20e3597c8f2f..734ec9efe9a4 100644
--- a/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/XPathAction.java
+++ b/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/XPathAction.java
@@ -41,10 +41,11 @@ public abstract class XPathAction extends AnAction {
// provide icon for toolbar
if (ActionPlaces.MAIN_TOOLBAR.equals(event.getPlace())) {
updateToolbar(event);
- } else if (ActionPlaces.MAIN_MENU.equals(event.getPlace())) {
- updateMainMenu(event);
- } else if (ActionPlaces.EDITOR_POPUP.equals(event.getPlace())) {
- presentation.setVisible(presentation.isEnabled());
+ } else if (ActionPlaces.isMainMenuOrActionSearch(event.getPlace())) {
+ updateMainMenu(event);
+ }
+ else if (ActionPlaces.EDITOR_POPUP.equals(event.getPlace())) {
+ presentation.setVisible(presentation.isEnabled());
}
}