Пример #1
0
  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);
    }
  }
Пример #2
0
  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");
  }