Java Code Examples for com.intellij.execution.runners.ProgramRunner#Callback
The following examples show how to use
com.intellij.execution.runners.ProgramRunner#Callback .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MavenDebugConfigurationType.java From MavenHelper with Apache License 2.0 | 5 votes |
public static void debugConfiguration(Project project, @NotNull MavenRunnerParameters params, @Nullable MavenGeneralSettings settings, @Nullable MavenRunnerSettings runnerSettings, @Nullable ProgramRunner.Callback callback) { RunnerAndConfigurationSettings configSettings = MavenRunConfigurationType.createRunnerAndConfigurationSettings( settings, runnerSettings, params, project); final Executor executor = DefaultDebugExecutor.getDebugExecutorInstance(); debugConfiguration(project, callback, configSettings, executor); }
Example 2
Source File: MavenDebugConfigurationType.java From MavenHelper with Apache License 2.0 | 5 votes |
public static void debugConfiguration(Project project, ProgramRunner.Callback callback, RunnerAndConfigurationSettings configSettings, Executor executor) { ProgramRunner runner = ProgramRunner.findRunnerById(DefaultDebugExecutor.EXECUTOR_ID); ExecutionEnvironment env = new ExecutionEnvironment(executor, runner, configSettings, project); try { runner.execute(env, callback); } catch (ExecutionException e) { MavenUtil.showError(project, "Failed to execute Maven goal", e); } }
Example 3
Source File: MavenDebugConfigurationType.java From MavenHelper with Apache License 2.0 | 4 votes |
public static void debugConfiguration(Project project, MavenRunnerParameters params, @Nullable ProgramRunner.Callback callback) { debugConfiguration(project, params, null, null, callback); }