Skip to content

Commit

Permalink
Fix override-only violation: AnAction.actionPerformed(AnActionEvent)
Browse files Browse the repository at this point in the history
See #178
  • Loading branch information
AB-xdev committed Oct 31, 2024
1 parent 85969b0 commit f64e3e7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.ex.ActionUtil;
import com.intellij.openapi.actionSystem.impl.SimpleDataContext;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.compiler.CompilerManager;
import com.intellij.openapi.fileEditor.FileEditorManager;
import com.intellij.openapi.project.Project;
Expand Down Expand Up @@ -91,7 +93,9 @@ public enum BuildProcessor implements Processor
ActionUiKind.NONE,
null);

anAction.actionPerformed(event);
// Run Action on EDT thread
ApplicationManager.getApplication().invokeLater(() ->
ActionUtil.performActionDumbAwareWithCallbacks(anAction, event));
}
})
{
Expand Down

0 comments on commit f64e3e7

Please sign in to comment.