public final class ExecutionUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ExecutionEnvironmentBuilder |
createEnvironment(Executor executor,
RunnerAndConfigurationSettings settings) |
static void |
doRunConfiguration(RunnerAndConfigurationSettings configuration,
Executor executor,
ExecutionTarget targetOrNullForDefault,
java.lang.Long executionId,
DataContext dataContext) |
static javax.swing.Icon |
getIndicator(javax.swing.Icon base,
int emptyIconWidth,
int emptyIconHeight,
java.awt.Color color) |
static javax.swing.Icon |
getLiveIndicator(javax.swing.Icon base) |
static javax.swing.Icon |
getLiveIndicator(javax.swing.Icon base,
int emptyIconWidth,
int emptyIconHeight) |
static void |
handleExecutionError(ExecutionEnvironment environment,
ExecutionException e) |
static void |
handleExecutionError(Project project,
java.lang.String toolWindowId,
RunProfile runProfile,
ExecutionException e) |
static void |
handleExecutionError(Project project,
java.lang.String toolWindowId,
java.lang.String taskName,
java.lang.Throwable e) |
static void |
handleExecutionError(Project project,
java.lang.String toolWindowId,
java.lang.String taskName,
java.lang.Throwable e,
java.lang.String description,
javax.swing.event.HyperlinkListener listener) |
static boolean |
isProcessNotCreated(java.lang.Throwable e) |
static void |
restart(Content content) |
static void |
restart(ExecutionEnvironment environment) |
static void |
restart(RunContentDescriptor descriptor) |
static void |
restartIfActive(RunContentDescriptor descriptor) |
static void |
runConfiguration(RunnerAndConfigurationSettings configuration,
Executor executor) |
static void |
runConfiguration(RunnerAndConfigurationSettings configuration,
Executor executor,
ExecutionTarget target) |
static void |
runConfiguration(RunnerAndConfigurationSettings configuration,
Executor executor,
ExecutionTarget target,
long executionId) |
static void |
runConfiguration(RunnerAndConfigurationSettings configuration,
Executor executor,
long executionId) |
public static void handleExecutionError(Project project, java.lang.String toolWindowId, RunProfile runProfile, ExecutionException e)
public static void handleExecutionError(ExecutionEnvironment environment, ExecutionException e)
public static void handleExecutionError(Project project, java.lang.String toolWindowId, java.lang.String taskName, java.lang.Throwable e)
public static boolean isProcessNotCreated(java.lang.Throwable e)
public static void handleExecutionError(Project project, java.lang.String toolWindowId, java.lang.String taskName, java.lang.Throwable e, java.lang.String description, javax.swing.event.HyperlinkListener listener)
public static void restartIfActive(RunContentDescriptor descriptor)
public static void restart(RunContentDescriptor descriptor)
public static void restart(Content content)
public static void restart(ExecutionEnvironment environment)
public static void runConfiguration(RunnerAndConfigurationSettings configuration, Executor executor)
public static void runConfiguration(RunnerAndConfigurationSettings configuration, Executor executor, ExecutionTarget target)
public static void runConfiguration(RunnerAndConfigurationSettings configuration, Executor executor, ExecutionTarget target, long executionId)
executionId
- Id that will be set for ExecutionEnvironment
that is created to run configuration.public static void runConfiguration(RunnerAndConfigurationSettings configuration, Executor executor, long executionId)
public static void doRunConfiguration(RunnerAndConfigurationSettings configuration, Executor executor, ExecutionTarget targetOrNullForDefault, java.lang.Long executionId, DataContext dataContext)
public static ExecutionEnvironmentBuilder createEnvironment(Executor executor, RunnerAndConfigurationSettings settings)
public static javax.swing.Icon getLiveIndicator(javax.swing.Icon base)
public static javax.swing.Icon getLiveIndicator(javax.swing.Icon base, int emptyIconWidth, int emptyIconHeight)
public static javax.swing.Icon getIndicator(javax.swing.Icon base, int emptyIconWidth, int emptyIconHeight, java.awt.Color color)