public static void executeConfiguration( @NotNull Project project, @NotNull RunnerAndConfigurationSettings configuration, @NotNull Executor executor) { ExecutionEnvironmentBuilder builder; try { builder = ExecutionEnvironmentBuilder.create(executor, configuration); } catch (ExecutionException e) { LOG.error(e); return; } executeConfiguration( builder.contentToReuse(null).dataContext(null).activeTarget().build(), true, true); }
private static void start(@NotNull ExecutionEnvironment environment) { RunnerAndConfigurationSettings settings = environment.getRunnerAndConfigurationSettings(); ProgramRunnerUtil.executeConfiguration( environment, settings != null && settings.isEditBeforeRun(), true); }
public void actionPerformed(@NotNull AnActionEvent e) { ProgramRunnerUtil.executeConfiguration( getProject(e), myConfigurationSettings, DefaultRunExecutor.getRunExecutorInstance()); }