|
10 | 10 | package io.openliberty.tools.intellij.actions; |
11 | 11 |
|
12 | 12 | import com.intellij.ide.DataManager; |
13 | | -import com.intellij.openapi.actionSystem.ActionManager; |
14 | | -import com.intellij.openapi.actionSystem.ActionUpdateThread; |
15 | | -import com.intellij.openapi.actionSystem.AnAction; |
16 | | -import com.intellij.openapi.actionSystem.AnActionEvent; |
| 13 | +import com.intellij.openapi.actionSystem.*; |
17 | 14 | import com.intellij.openapi.diagnostic.Logger; |
18 | 15 | import com.intellij.openapi.project.Project; |
19 | 16 | import com.intellij.openapi.wm.ToolWindow; |
@@ -84,7 +81,7 @@ private void handleLibertyTreeEvent(@NotNull AnActionEvent e, Project project, b |
84 | 81 | } else { |
85 | 82 | // calls selected action |
86 | 83 | AnAction action = ActionManager.getInstance().getAction(Constants.FULL_ACTIONS_MAP.get(lastPathComponent)); |
87 | | - action.actionPerformed(new AnActionEvent(null, DataManager.getInstance().getDataContext(libertyTree), e.getPlace(), e.getPresentation(), ActionManager.getInstance(), 0)); |
| 84 | + action.actionPerformed(new AnActionEvent(DataManager.getInstance().getDataContext(libertyTree), e.getPresentation(), e.getPlace(), ActionUiKind.NONE, null, 0, ActionManager.getInstance())); |
88 | 85 | } |
89 | 86 | } |
90 | 87 | } |
@@ -120,7 +117,7 @@ public void actionPerformed(@NotNull AnActionEvent e) { |
120 | 117 | String selectedAction = libertyActions[ret]; |
121 | 118 | // run selected action |
122 | 119 | AnAction action = ActionManager.getInstance().getAction(Constants.FULL_ACTIONS_MAP.get(selectedAction)); |
123 | | - action.actionPerformed(new AnActionEvent(null, e.getDataContext(), e.getPlace(), e.getPresentation(), ActionManager.getInstance(), 0)); |
| 120 | + action.actionPerformed(new AnActionEvent(e.getDataContext(), e.getPresentation(), e.getPlace(), ActionUiKind.NONE, null, 0, ActionManager.getInstance())); |
124 | 121 | } |
125 | 122 | } else { |
126 | 123 | handleLibertyTreeEvent(e, project, false); |
|
0 commit comments