Java Code Examples for com.intellij.execution.runners.ExecutionEnvironment#putCopyableUserData()
The following examples show how to use
com.intellij.execution.runners.ExecutionEnvironment#putCopyableUserData() .
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: BlazeCommandRunConfiguration.java From intellij with Apache License 2.0 | 5 votes |
@Override @Nullable public RunProfileState getState(Executor executor, ExecutionEnvironment environment) throws ExecutionException { BlazeCommandRunConfigurationRunner runner = handler.createRunner(executor, environment); if (runner != null) { environment.putCopyableUserData(BlazeCommandRunConfigurationRunner.RUNNER_KEY, runner); return runner.getRunProfileState(executor, environment); } return null; }
Example 2
Source File: ClassFileManifestBuilder.java From intellij with Apache License 2.0 | 5 votes |
/** Called when initializing our run profile state, to support hotswapping. */ public static void initState(ExecutionEnvironment env) { if (!HotSwapUtils.canHotSwap(env)) { return; } if (env.getCopyableUserData(MANIFEST_KEY) == null) { env.putCopyableUserData(MANIFEST_KEY, new AtomicReference<>()); } }
Example 3
Source File: FastBuildConfigurationRunner.java From intellij with Apache License 2.0 | 5 votes |
@Override public RunProfileState getRunProfileState(Executor executor, ExecutionEnvironment env) { if (!canRun(env.getRunProfile())) { return new BlazeCommandRunProfileState(env); } FastBuildSuggestion.getInstance().triedFastBuild(); env.putCopyableUserData(BUILD_INFO_KEY, new AtomicReference<>()); env.putCopyableUserData(BLAZE_CONTEXT, new AtomicReference<>()); return new FastBuildRunProfileState(env); }
Example 4
Source File: BlazePyRunConfigurationRunner.java From intellij with Apache License 2.0 | 5 votes |
@Override public RunProfileState getRunProfileState(Executor executor, ExecutionEnvironment env) { if (!BlazeCommandRunConfigurationRunner.isDebugging(env) || BlazeCommandName.BUILD.equals(BlazeCommandRunConfigurationRunner.getBlazeCommand(env))) { return new BlazeCommandRunProfileState(env); } BlazeCommandRunConfiguration configuration = BlazeCommandRunConfigurationRunner.getConfiguration(env); env.putCopyableUserData(EXECUTABLE_KEY, new AtomicReference<>()); return new BlazePyDummyRunProfileState(configuration); }
Example 5
Source File: BlazeGoRunConfigurationRunner.java From intellij with Apache License 2.0 | 5 votes |
@Override public RunProfileState getRunProfileState(Executor executor, ExecutionEnvironment env) throws ExecutionException { BlazeCommandRunConfiguration configuration = BlazeCommandRunConfigurationRunner.getConfiguration(env); if (!BlazeCommandRunConfigurationRunner.isDebugging(env) || BlazeCommandName.BUILD.equals(BlazeCommandRunConfigurationRunner.getBlazeCommand(env))) { return new BlazeCommandRunProfileState(env); } env.putCopyableUserData(EXECUTABLE_KEY, new AtomicReference<>()); return new BlazeGoDummyDebugProfileState(configuration); }