- DumbService.getInstance(project)
- .showDumbModeNotification("Goto Class action is not available until indices are built, using Goto File instead");
- ActionManager.getInstance()
- .tryToExecute(ActionManager.getInstance().getAction(GotoFileAction.ID), ActionCommand.getInputEvent(GotoFileAction.ID),
- e.getData(PlatformDataKeys.CONTEXT_COMPONENT), e.getPlace(), true);
+ DumbService.getInstance(project).showDumbModeNotification(IdeBundle.message("go.to.class.dumb.mode.message"));
+ AnAction action = ActionManager.getInstance().getAction(GotoFileAction.ID);
+ InputEvent event = ActionCommand.getInputEvent(GotoFileAction.ID);
+ Component component = e.getData(PlatformDataKeys.CONTEXT_COMPONENT);
+ ActionManager.getInstance().tryToExecute(action, event, component, e.getPlace(), true);