本文整理汇总了Java中com.intellij.execution.RunnerRegistry类的典型用法代码示例。如果您正苦于以下问题:Java RunnerRegistry类的具体用法?Java RunnerRegistry怎么用?Java RunnerRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RunnerRegistry类属于com.intellij.execution包,在下文中一共展示了RunnerRegistry类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: debugConfiguration
import com.intellij.execution.RunnerRegistry; //导入依赖的package包/类
public static void debugConfiguration(Project project, ProgramRunner.Callback callback,
RunnerAndConfigurationSettings configSettings, Executor executor) {
ProgramRunner runner = RunnerRegistry.getInstance().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);
}
}
示例2: getRunner
import com.intellij.execution.RunnerRegistry; //导入依赖的package包/类
private ProgramRunner getRunner(
Executor executor, RunnerAndConfigurationSettingsImpl selectedConfiguration) {
logger.info("Getting ProgramRunner.");
return RunnerRegistry.getInstance()
.getRunner(executor.getId(), selectedConfiguration.getConfiguration());
}
示例3: getInstance
import com.intellij.execution.RunnerRegistry; //导入依赖的package包/类
public static ProgramRunner getInstance() {
return RunnerRegistry.getInstance().findRunnerById(DEFAULT_JAVA_RUNNER_ID);
}
示例4: getInstance
import com.intellij.execution.RunnerRegistry; //导入依赖的package包/类
public static ProgramRunner getInstance()
{
return RunnerRegistry.getInstance().findRunnerById(DEFAULT_JAVA_RUNNER_ID);
}