mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-52740 remove redundant action context
GitOrigin-RevId: 8f8fb83418789a2d887f8f6dafe319affad2e3db
This commit is contained in:
committed by
intellij-monorepo-bot
parent
924166e6f7
commit
346ef88c3c
@@ -87,7 +87,6 @@ public class RunAnythingPopupUI extends BigPopupUI {
|
||||
private static final String HELP_PLACEHOLDER = "?";
|
||||
private static final int LIST_REBUILD_DELAY = 100;
|
||||
private final Alarm myAlarm = new Alarm(Alarm.ThreadToUse.SWING_THREAD, ApplicationManager.getApplication());
|
||||
private final AnActionEvent myActionEvent;
|
||||
private boolean myIsUsedTrigger;
|
||||
private CalcThread myCalcThread;
|
||||
private volatile ActionCallback myCurrentWorker;
|
||||
@@ -420,7 +419,7 @@ public class RunAnythingPopupUI extends BigPopupUI {
|
||||
dataMap.put(CommonDataKeys.VIRTUAL_FILE.getName(), getWorkDirectory());
|
||||
dataMap.put(EXECUTOR_KEY.getName(), getExecutor());
|
||||
dataMap.put(RunAnythingProvider.EXECUTING_CONTEXT.getName(), myChooseContextAction.getSelectedContext());
|
||||
return SimpleDataContext.getSimpleContext(dataMap, myActionEvent.getDataContext());
|
||||
return SimpleDataContext.getSimpleContext(dataMap, null);
|
||||
}
|
||||
|
||||
public void initMySearchField() {
|
||||
@@ -834,13 +833,11 @@ public class RunAnythingPopupUI extends BigPopupUI {
|
||||
public RunAnythingPopupUI(@NotNull AnActionEvent actionEvent) {
|
||||
super(actionEvent.getProject());
|
||||
|
||||
myActionEvent = actionEvent;
|
||||
|
||||
myCurrentWorker = ActionCallback.DONE;
|
||||
myVirtualFile = actionEvent.getData(CommonDataKeys.VIRTUAL_FILE);
|
||||
|
||||
myProject = ObjectUtils.notNull(myActionEvent.getData(CommonDataKeys.PROJECT));
|
||||
myModule = myActionEvent.getData(LangDataKeys.MODULE);
|
||||
myProject = ObjectUtils.notNull(actionEvent.getData(CommonDataKeys.PROJECT));
|
||||
myModule = actionEvent.getData(LangDataKeys.MODULE);
|
||||
|
||||
init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user