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

The following are Jave code examples for showing how to use getRunnerSettings() of the com.intellij.execution.runners.ExecutionEnvironment class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: intellij-ce-playground   File: RemoteConfiguration.java   Source Code and License Vote up 5 votes
@Override
public RunProfileState getState(@NotNull final Executor executor, @NotNull final ExecutionEnvironment env) throws ExecutionException {
  final GenericDebuggerRunnerSettings debuggerSettings = (GenericDebuggerRunnerSettings)env.getRunnerSettings();
  if (debuggerSettings != null) {
    // sync self state with execution environment's state if available
    debuggerSettings.LOCAL = false;
    debuggerSettings.setDebugPort(USE_SOCKET_TRANSPORT ? PORT : SHMEM_ADDRESS);
    debuggerSettings.setTransport(USE_SOCKET_TRANSPORT ? DebuggerSettings.SOCKET_TRANSPORT : DebuggerSettings.SHMEM_TRANSPORT);
  }
  return new RemoteStateState(getProject(), createRemoteConnection());
}