check action dumb-awareness in action popups (EA-63853 - INRE: FileBasedIndexImpl...
authorpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 17:11:21 +0000 (18:11 +0100)
committerpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 18:26:46 +0000 (19:26 +0100)
platform/platform-impl/src/com/intellij/ui/popup/PopupFactoryImpl.java

index f08b196cdf36376692af029edd1d2a2182f74926..3c1106f97639fcd8e28d3144ec71fd8980d46bf9 100644 (file)
@@ -742,7 +742,9 @@ public class PopupFactoryImpl extends JBPopupFactory {
             final AnActionEvent event = new AnActionEvent(null, dataContext, ActionPlaces.UNKNOWN, action.getTemplatePresentation().clone(),
                                                           ActionManager.getInstance(), eventModifiers);
             event.setInjectedContext(action.isInInjectedContext());
-            action.actionPerformed(event);
+            if (ActionUtil.lastUpdateAndCheckDumb(action, event, false)) {
+              action.actionPerformed(event);
+            }
           }
         };
         return FINAL_CHOICE;