I want to trigger an action with outer button , and try but no context were injected

First , I try
AnAction action = ActionManager.getInstance().getAction("InspectionAction");
action.setInjectedContext(true);
InputEvent inputEvent = ActionCommand.getInputEvent("LeftClickButton");

EdtExecutorService.getInstance().execute(()->{
ActionManager.getInstance().tryToExecute(action, inputEvent, e.getComponent(), ActionPlaces.PROJECT_VIEW_POPUP, true);

THen I try but
e.getData(PlatformDataKeys.VIRTUAL_FILE) get nothing .
0

Please sign in to leave a comment.