Codota Logo
com.intellij.execution.configuration
Code IndexAdd Codota to your IDE (free)

How to use com.intellij.execution.configuration

Best Java code snippets using com.intellij.execution.configuration (Showing top 17 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: go-lang-plugin-org/go-lang-idea-plugin

@Override
public void writeExternal(Element element) throws WriteExternalException {
 super.writeExternal(element);
 writeModule(element);
 addNonEmptyElement(element, WORKING_DIRECTORY_NAME, myWorkingDirectory);
 addNonEmptyElement(element, GO_PARAMETERS_NAME, myGoParams);
 addNonEmptyElement(element, PARAMETERS_NAME, myParams);
 if (!myCustomEnvironment.isEmpty()) {
  EnvironmentVariablesComponent.writeExternal(element, myCustomEnvironment);
 }
 if (!myPassParentEnvironment) {
  JDOMExternalizerUtil.addElementWithValueAttribute(element, PASS_PARENT_ENV, "false");
 }
}
origin: go-lang-plugin-org/go-lang-idea-plugin

@Override
public void readExternal(@NotNull Element element) throws InvalidDataException {
 super.readExternal(element);
 readModule(element);
 myGoParams = StringUtil.notNullize(JDOMExternalizerUtil.getFirstChildValueAttribute(element, GO_PARAMETERS_NAME));
 myParams = StringUtil.notNullize(JDOMExternalizerUtil.getFirstChildValueAttribute(element, PARAMETERS_NAME));
 String workingDirectoryValue = JDOMExternalizerUtil.getFirstChildValueAttribute(element, WORKING_DIRECTORY_NAME);
 if (workingDirectoryValue != null) {
  myWorkingDirectory = workingDirectoryValue;
 }
 EnvironmentVariablesComponent.readExternal(element, myCustomEnvironment);
 String passEnvValue = JDOMExternalizerUtil.getFirstChildValueAttribute(element, PASS_PARENT_ENV);
 myPassParentEnvironment = passEnvValue == null || Boolean.valueOf(passEnvValue);
}
origin: go-lang-plugin-org/go-lang-idea-plugin

public void applyEditorTo(@NotNull GoRunConfigurationBase<?> configuration) {
 configuration.setModule(myModulesComboBox.getSelectedModule());
 configuration.setGoParams(myGoToolParamsField.getText());
 configuration.setParams(myParamsField.getText());
 configuration.setWorkingDirectory(myWorkingDirectoryField.getText());
 configuration.setCustomEnvironment(myEnvironmentField.getEnvs());
 configuration.setPassParentEnvironment(myEnvironmentField.isPassParentEnvs());
}
origin: BashSupport/BashSupport

@Override
public void checkConfiguration() throws RuntimeConfigurationException {
  super.checkConfiguration();
origin: intellij-dlanguage/intellij-dlanguage

/**
 * Update editor UI with data of DLangRunAppConfiguration.
 * All components must be changed according to "config" data.
 */
@Override
protected void resetEditorFrom(final DlangRunAppConfiguration config) {
  comboModule.fillModules(config.getProject(), DlangModuleType.getInstance());
  comboModule.setSelectedModule(config.getConfigurationModule().getModule());
  pathWorkingDir.setText(config.getWorkDir());
  textParameters.setText(config.getAdditionalParams());
  final Map<String, String> envVars = config.getEnvVars();
  if (envVars != null) {
    envVariables.setEnvs(config.getEnvVars());
  }
  appPathLabel.setText(config.getExecutablePath());
}
origin: BashSupport/BashSupport

@Override
public void writeExternal(Element element) throws WriteExternalException {
  super.writeExternal(element);
  // common config
  JDOMExternalizerUtil.writeField(element, "INTERPRETER_OPTIONS", interpreterOptions);
  JDOMExternalizerUtil.writeField(element, "INTERPRETER_PATH", interpreterPath);
  JDOMExternalizerUtil.writeField(element, "PROJECT_INTERPRETER", Boolean.toString(useProjectInterpreter));
  JDOMExternalizerUtil.writeField(element, "WORKING_DIRECTORY", workingDirectory);
  JDOMExternalizerUtil.writeField(element, "PARENT_ENVS", Boolean.toString(isPassParentEnvs()));
  // run config
  JDOMExternalizerUtil.writeField(element, "SCRIPT_NAME", scriptName);
  JDOMExternalizerUtil.writeField(element, "PARAMETERS", getProgramParameters());
  //JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
  DefaultJDOMExternalizer.writeExternal(this, element);
  writeModule(element);
  EnvironmentVariablesComponent.writeExternal(element, getEnvs());
  PathMacroManager.getInstance(getProject()).collapsePathsRecursively(element);
}
origin: BashSupport/BashSupport

@Override
public void readExternal(Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  EnvironmentVariablesComponent.readExternal(element, getEnvs());
origin: go-lang-plugin-org/go-lang-idea-plugin

public void resetEditorFrom(@NotNull GoRunConfigurationBase<?> configuration) {
 myModulesComboBox.setModules(configuration.getValidModules());
 myModulesComboBox.setSelectedModule(configuration.getConfigurationModule().getModule());
 myGoToolParamsField.setText(configuration.getGoToolParams());
 myParamsField.setText(configuration.getParams());
 myWorkingDirectoryField.setText(configuration.getWorkingDirectory());
 myEnvironmentField.setEnvs(configuration.getCustomEnvironment());
 myEnvironmentField.setPassParentEnvs(configuration.isPassParentEnvironment());
}
origin: intellij-dlanguage/intellij-dlanguage

@Override
protected void applyEditorTo(@NotNull final DUnitTestRunConfiguration config) throws ConfigurationException {
  config.setEnvVars(envVariables.getEnvs());
  config.setWorkingDir(myWorkingDirectory.getText());
  config.setdFilePath(FileUtil.toSystemIndependentName(myFileField.getText().trim()));
}
origin: intellij-dlanguage/intellij-dlanguage

@Override
protected void resetEditorFrom(@NotNull final DUnitTestRunConfiguration config) {
  myWorkingDirectory.setText(config.getWorkingDir());
  myFileField.setText(config.getdFilePath());
  final Map<String, String> envVars = config.getEnvVars();
  if (envVars != null) {
    envVariables.setEnvs(config.getEnvVars());
  }
}
origin: ballerina-platform/ballerina-lang

@Override
public void writeExternal(Element element) throws WriteExternalException {
  super.writeExternal(element);
  writeModule(element);
  addNonEmptyElement(element, WORKING_DIRECTORY_NAME, myWorkingDirectory);
  addNonEmptyElement(element, BALLERINA_PARAMETERS_NAME, myBallerinaParams);
  addNonEmptyElement(element, PARAMETERS_NAME, myParams);
  if (!myCustomEnvironment.isEmpty()) {
    EnvironmentVariablesComponent.writeExternal(element, myCustomEnvironment);
  }
  if (!myPassParentEnvironment) {
    JDOMExternalizerUtil.addElementWithValueAttribute(element, PASS_PARENT_ENV, "false");
  }
}
origin: ballerina-platform/ballerina-lang

@Override
public void readExternal(@NotNull Element element) throws InvalidDataException {
  super.readExternal(element);
  readModule(element);
  myBallerinaParams = StringUtil.notNullize(JDOMExternalizerUtil.getFirstChildValueAttribute(element,
      BALLERINA_PARAMETERS_NAME));
  myParams = StringUtil.notNullize(JDOMExternalizerUtil.getFirstChildValueAttribute(element, PARAMETERS_NAME));
  String workingDirectoryValue = JDOMExternalizerUtil.getFirstChildValueAttribute(element,
      WORKING_DIRECTORY_NAME);
  if (workingDirectoryValue != null) {
    myWorkingDirectory = workingDirectoryValue;
  }
  EnvironmentVariablesComponent.readExternal(element, myCustomEnvironment);
  String passEnvValue = JDOMExternalizerUtil.getFirstChildValueAttribute(element, PASS_PARENT_ENV);
  myPassParentEnvironment = passEnvValue == null || Boolean.valueOf(passEnvValue);
}
origin: intellij-dlanguage/intellij-dlanguage

private void resetGeneralTabForm(final DlangRunDubConfiguration config) {
  comboModules.fillModules(config.getProject(), DlangModuleType.getInstance());
  comboModules.setSelectedModule(config.getConfigurationModule().getModule());
  comboGeneralDubOptions.setSelectedIndex(config.getGeneralDubOptions());
  cbRdmd.setSelected(config.isCbRdmd());
  cbNoDeps.setSelected(config.isCbNoDeps());
  cbForce.setSelected(config.isCbForce());
  cbForceRemove.setSelected(config.isCbForceRemove());
  cbCombined.setSelected(config.isCbCombined());
  cbParallel.setSelected(config.isCbParallel());
  cbVerbose.setSelected(config.isVerbose());
  cbQuiet.setSelected(config.isQuiet());
  tfBuild.setText(config.getTfBuild());
  tfConfig.setText(config.getTfConfig());
  tfArch.setText(config.getTfArch());
  tfDebug.setText(config.getTfDebug());
  tfCompiler.setText(config.getTfCompiler());
  tfBuildMode.setSelectedIndex(config.getBuildMode());
  cbTempBuild.setSelected(config.isCbTempBuild());
  tfMainFile.setText(config.getTfMainFile());
  cbCoverage.setSelected(config.isCbCoverage());
  pathWorkingDir.setText(config.getWorkingDir());
  textParameters.setText(config.getAdditionalParams());
  final Map<String, String> envVars = config.getEnvVars();
  if (envVars != null) {
    envVariables.setEnvs(config.getEnvVars());
  }
}
origin: intellij-dlanguage/intellij-dlanguage

config.setEnvVars(envVariables.getEnvs());
origin: liias/monkey

@Override
public void writeExternal(Element element) throws WriteExternalException {
 super.writeExternal(element);
 XmlSerializer.serializeInto(this.bean, element, SERIALIZATION_FILTERS);
 EnvironmentVariablesComponent.writeExternal(element, getEnvs());
 writeModule(element);
}
origin: liias/monkey

@Override
public void readExternal(Element element) throws InvalidDataException {
 PathMacroManager.getInstance(getProject()).expandPaths(element);
 super.readExternal(element);
 XmlSerializer.deserializeInto(this.bean, element);
 EnvironmentVariablesComponent.readExternal(element, getEnvs());
 readModule(element);
}
origin: intellij-dlanguage/intellij-dlanguage

/**
 * Save state of editor UI to DLangRunAppConfiguration instance.
 */
@Override
protected void applyEditorTo(final DlangRunAppConfiguration config) throws ConfigurationException {
  config.setModule(comboModule.getSelectedModule());
  config.setWorkDir(pathWorkingDir.getText());
  config.setAdditionalParams(textParameters.getText());
  config.setEnvVars(envVariables.getEnvs());
}
com.intellij.execution.configuration

Most used classes

  • GeneralCommandLine
  • ParametersList
  • RuntimeConfigurationError
  • EnvironmentVariablesComponent
  • ConfigurationFactory
  • ModuleBasedConfiguration,
  • PathEnvironmentVariableUtil,
  • RunConfiguration,
  • RunProfileState,
  • ConfigurationType,
  • RunConfigurationBase,
  • RunConfigurationModule,
  • LocatableConfigurationBase,
  • PtyCommandLine,
  • RuntimeConfigurationException,
  • JavaParameters,
  • JavaRunConfigurationModule,
  • RuntimeConfigurationWarning,
  • UnknownRunConfiguration
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now