Skip to content

Commit c796804

Browse files
Resolved LibertyGeneralAction.actionPerformed() deprecation (#1469)
1 parent 3e2463f commit c796804

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/io/openliberty/tools/intellij/LibertyExplorer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import com.intellij.ide.DataManager;
1313
import com.intellij.openapi.actionSystem.*;
14+
import com.intellij.openapi.actionSystem.ex.ActionUtil;
1415
import com.intellij.openapi.actionSystem.impl.SimpleDataContext;
1516
import com.intellij.openapi.application.ApplicationManager;
1617
import com.intellij.openapi.application.ModalityState;
@@ -284,9 +285,10 @@ private static void executeAction(Tree tree) {
284285
}
285286
LibertyGeneralAction action = (LibertyGeneralAction) am.getAction(actionId);
286287
if (action != null) {
287-
action.actionPerformed(new AnActionEvent(DataManager.getInstance().getDataContext(tree),
288+
AnActionEvent event = new AnActionEvent(DataManager.getInstance().getDataContext(tree),
288289
new Presentation(), ActionPlaces.UNKNOWN, ActionUiKind.NONE, null,
289-
0, am));
290+
0, am);
291+
ActionUtil.performActionDumbAwareWithCallbacks(action, event);
290292
}
291293
}
292294
}

0 commit comments

Comments
 (0)