Example usage for com.intellij.openapi.actionSystem.ex ActionUtil performDumbAwareUpdate

List of usage examples for com.intellij.openapi.actionSystem.ex ActionUtil performDumbAwareUpdate

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem.ex ActionUtil performDumbAwareUpdate.

Prototype

@Deprecated
public static boolean performDumbAwareUpdate(@NotNull AnAction action, @NotNull AnActionEvent e,
        boolean beforeActionPerformed) 

Source Link

Usage

From source file:com.android.tools.idea.uibuilder.property.editors.NlBooleanIconEditor.java

License:Apache License

public void setProperty(@NotNull NlProperty property) {
    myAction.setProperty(property);//from  w  ww  .  ja  v a 2  s  .c o m
    updateDescription(property);

    // This will update the selected state of the ActionButton:
    AnActionEvent event = new AnActionEvent(null, DataManager.getInstance().getDataContext(myButton),
            INSPECTOR_PLACE, myPresentation, ActionManager.getInstance(), 0);
    ActionUtil.performDumbAwareUpdate(myAction, event, false);
    myButton.updateIcon();
}

From source file:com.intellij.ide.util.gotoByName.GotoActionModel.java

License:Apache License

public static AnActionEvent updateActionBeforeShow(AnAction anAction, DataContext dataContext) {
    final AnActionEvent event = new AnActionEvent(null, dataContext, ActionPlaces.UNKNOWN, new Presentation(),
            ActionManager.getInstance(), 0);
    ActionUtil.performDumbAwareUpdate(anAction, event, false);
    ActionUtil.performDumbAwareUpdate(anAction, event, true);
    return event;
}