private void initGosuPlugin() { final IModule rootModule = GosuModuleUtil.getGlobalModule(_project); TypeSystem.pushModule(rootModule); try { _projectConnection = _project.getMessageBus().connect(); addCompiler(); addTypeRefreshListener(); addModuleRefreshListener(); addEditorSourceProvider(); ActionManagerImpl actionManager = (ActionManagerImpl) ActionManagerImpl.getInstance(); AnAction oldNewClassAction = actionManager.getAction("NewClass"); actionManager.unregisterAction("NewClass"); CreateClassAction action = new CreateClassAction(); actionManager.registerAction("NewClass", action); } finally { TypeSystem.popModule(rootModule); } }
public MultirunRunnerState( String name, List<RunConfiguration> runConfigurations, boolean startOneByOne, boolean separateTabs, boolean markFailedProcess, boolean hideSuccessProcess) { this.name = name; this.separateTabs = separateTabs; this.startOneByOne = startOneByOne; this.runConfigurations = runConfigurations; this.markFailedProcess = markFailedProcess; this.hideSuccessProcess = hideSuccessProcess; ActionManager actionManager = ActionManagerImpl.getInstance(); stopRunningMultirunConfiguration = (StopRunningMultirunConfigurationsAction) actionManager.getAction("stopRunningMultirunConfiguration"); }