public AnAction addAction(AnAction action, ProjectType projectType) { if (action instanceof ActionStub) { String type = ((ActionStub) action).getProjectType(); action = ActionManagerImpl.convertStub((ActionStub) action); projectType = type == null ? null : new ProjectType(type); } return myActions.put(projectType, action); }
protected void processLeftSwipe(IdeFrame frame) { AnAction forward = myActionManager.getAction("Forward"); if (forward == null) return; myActionManager.tryToExecute(forward, createMouseEventWrapper(frame), null, null, false); }
protected void processRightSwipe(IdeFrame frame) { AnAction back = myActionManager.getAction("Back"); if (back == null) return; myActionManager.tryToExecute(back, createMouseEventWrapper(frame), null, null, false); }