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 .
请先登录再写评论。