Package com.intellij.execution

Examples of com.intellij.execution.ExecutionResult


      XDebuggerManager.getInstance(module.getProject()).startSession(runner, env, contentToReuse, new XDebugProcessStarter() {
        @NotNull
        public XDebugProcess start(@NotNull final XDebugSession session) throws ExecutionException {
          try {
            NMERunningState runningState = new NMERunningState(env, module, false, true);
            final ExecutionResult executionResult = runningState.execute(executor, runner);
            final BCBasedRunnerParameters params = new BCBasedRunnerParameters();
            params.setModuleName(module.getName());
            return new HaxeDebugProcess(session, bc, params);
          }
          catch (IOException e) {
View Full Code Here


      XDebuggerManager.getInstance(module.getProject()).startSession(runner, env, contentToReuse, new XDebugProcessStarter() {
        @NotNull
        public XDebugProcess start(@NotNull final XDebugSession session) throws ExecutionException {
          try {
            OpenFLRunningState runningState = new OpenFLRunningState(env, module, true, true);
            final ExecutionResult executionResult = runningState.execute(executor, runner);
            final BCBasedRunnerParameters params = new BCBasedRunnerParameters();
            params.setModuleName(module.getName());
            return new HaxeDebugProcess(session, bc, params);
          }
          catch (IOException e) {
View Full Code Here

    FileDocumentManager.getInstance().saveAllDocuments();

    final DartRunConfigurationBase configuration = (DartRunConfigurationBase)env.getRunProfile();
    final VirtualFile mainDartFile = configuration.getRunnerParameters().getDartFile();

    final ExecutionResult executionResult = state.execute(env.getExecutor(), this);
    if (executionResult == null) return null;

    final XDebuggerManager debuggerManager = XDebuggerManager.getInstance(env.getProject());
    final XDebugSession debugSession = debuggerManager.startSession(env, new XDebugProcessStarter() {
      @Override
View Full Code Here

  }

  @NotNull
  @Override
  protected AsyncResult<RunProfileStarter> prepare(@NotNull ExecutionEnvironment environment, @NotNull RunProfileState state) throws ExecutionException {
    final ExecutionResult executionResult = state.execute(environment.getExecutor(), this);
    if (executionResult == null) {
      return AsyncResult.done(null);
    }

    final KarmaConsoleView consoleView = KarmaConsoleView.get(executionResult);
View Full Code Here

  @Nullable
  @Override
  protected RunContentDescriptor doExecute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException {
    FileDocumentManager.getInstance().saveAllDocuments();
    ExecutionResult executionResult = state.execute(environment.getExecutor(), this);
    if (executionResult == null) {
      return null;
    }
    KarmaConsoleView consoleView = KarmaConsoleView.get(executionResult);
    if (consoleView == null) {
      LOG.error("Can't get KarmaConsoleView from executionResult!");
      return null;
    }
    final RunContentDescriptor descriptor = new RunContentBuilder(executionResult, environment).showRunContent(environment.getContentToReuse());

    KarmaServer server = consoleView.getKarmaExecutionSession().getKarmaServer();
    if (!server.areBrowsersReady()) {
      server.onBrowsersReady(new Runnable() {
        @Override
        public void run() {
          ExecutionUtil.restartIfActive(descriptor);
        }
      });
    }
    else {
      RerunTestsNotification.showRerunNotification(environment.getContentToReuse(), executionResult.getExecutionConsole());
    }
    RerunTestsAction.register(environment);
    return descriptor;
  }
View Full Code Here

    @Nullable
    @Override
    public RunContentDescriptor execute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException {
      FileDocumentManager.getInstance().saveAllDocuments();
      JstdRunProfileState jstdState = JstdRunProfileState.cast(state);
      ExecutionResult executionResult = jstdState.executeWithServer(myServer);
      RunContentBuilder contentBuilder = new RunContentBuilder(executionResult, environment);
      final RunContentDescriptor descriptor = contentBuilder.showRunContent(environment.getContentToReuse());
      if (myServer != null && executionResult.getProcessHandler() instanceof NopProcessHandler) {
        myServer.addLifeCycleListener(new JstdServerLifeCycleAdapter() {
          @Override
          public void onBrowserCaptured(@NotNull JstdBrowserInfo info) {
            if (myFromDebug) {
              scheduleRestart(descriptor, 1000);
View Full Code Here

      FileDocumentManager.getInstance().saveAllDocuments();
      JstdRunConfiguration runConfiguration = (JstdRunConfiguration) environment.getRunProfile();
      CoverageEnabledConfiguration coverageEnabledConfiguration = CoverageEnabledConfiguration.getOrCreate(runConfiguration);
      String coverageFilePath = coverageEnabledConfiguration.getCoverageFilePath();
      JstdRunProfileState jstdState = new JstdRunProfileState(environment, runConfiguration.getRunSettings(), coverageFilePath);
      ExecutionResult executionResult = jstdState.executeWithServer(myServer);

      RunContentBuilder contentBuilder = new RunContentBuilder(executionResult, environment);
      final RunContentDescriptor descriptor = contentBuilder.showRunContent(environment.getContentToReuse());
      ProcessHandler processHandler = executionResult.getProcessHandler();
      if (processHandler instanceof NopProcessHandler) {
        if (myServer != null) {
          myServer.addLifeCycleListener(new JstdServerLifeCycleAdapter() {
            @Override
            public void onBrowserCaptured(@NotNull JstdBrowserInfo info) {
View Full Code Here

    protected RunContentDescriptor doExecute(@NotNull RunProfileState state,
                                             @NotNull ExecutionEnvironment env) throws ExecutionException {
        FileDocumentManager.getInstance().saveAllDocuments();

        ExecutionResult executionResult = state.execute(env.getExecutor(), this);
        if (executionResult == null) {
            return null;
        }

        env = RunContentBuilder.fix(env, this);
View Full Code Here

    }

    protected RunContentDescriptor doExecute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment env) throws ExecutionException {
        FileDocumentManager.getInstance().saveAllDocuments();

        final ExecutionResult executionResult = state.execute(env.getExecutor(), this);
        if (executionResult == null) {
            return null;
        }

        final Project project = env.getProject();
View Full Code Here

                                             final RunProfileState state,
                                             final RunContentDescriptor contentToReuse,
                                             final ExecutionEnvironment env) throws ExecutionException {
        FileDocumentManager.getInstance().saveAllDocuments();

        ExecutionResult executionResult = state.execute(env.getExecutor(), this);
        if (executionResult == null || executionResult.getExecutionConsole() == null) return null;

        final RunContentBuilder contentBuilder = new RunContentBuilder(this, executionResult, env);
        return contentBuilder.showRunContent(contentToReuse);
    }
View Full Code Here

TOP

Related Classes of com.intellij.execution.ExecutionResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.