Java Code Examples for com.intellij.execution.runners.ExecutionEnvironment#getExecutor()

The following examples show how to use com.intellij.execution.runners.ExecutionEnvironment#getExecutor() . 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: CppRunner.java    From CppTools with Apache License 2.0 5 votes vote down vote up
@Nullable
@Override
protected RunContentDescriptor doExecute(Project project, RunProfileState runProfileState, RunContentDescriptor runContentDescriptor, ExecutionEnvironment executionEnvironment) throws ExecutionException {
  FileDocumentManager.getInstance().saveAllDocuments();
  Executor executor = executionEnvironment.getExecutor();

  ExecutionResult executionResult = runProfileState.execute(executor, this);
  if (executionResult == null) return null;
  final RunContentBuilder contentBuilder = new RunContentBuilder(executionResult, executionEnvironment);
  onProcessStarted(executionEnvironment.getRunnerSettings(), executionResult);

  return contentBuilder.showRunContent(runContentDescriptor);
}
 
Example 2
Source File: BlazeCommandRunConfigurationRunner.java    From intellij with Apache License 2.0 4 votes vote down vote up
static boolean isDebugging(ExecutionEnvironment environment) {
  Executor executor = environment.getExecutor();
  return executor instanceof DefaultDebugExecutor;
}
 
Example 3
Source File: HotSwapUtils.java    From intellij with Apache License 2.0 4 votes vote down vote up
private static boolean isDebugging(ExecutionEnvironment environment) {
  Executor executor = environment.getExecutor();
  return executor instanceof DefaultDebugExecutor;
}
 
Example 4
Source File: BlazeCidrRunConfigurationRunner.java    From intellij with Apache License 2.0 4 votes vote down vote up
private static boolean isDebugging(ExecutionEnvironment environment) {
  Executor executor = environment.getExecutor();
  return executor instanceof DefaultDebugExecutor;
}