当前位置: 首页>>代码示例>>Java>>正文


Java EnvironmentVariablesComponent.writeExternal方法代码示例

本文整理汇总了Java中com.intellij.execution.configuration.EnvironmentVariablesComponent.writeExternal方法的典型用法代码示例。如果您正苦于以下问题:Java EnvironmentVariablesComponent.writeExternal方法的具体用法?Java EnvironmentVariablesComponent.writeExternal怎么用?Java EnvironmentVariablesComponent.writeExternal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.execution.configuration.EnvironmentVariablesComponent的用法示例。


在下文中一共展示了EnvironmentVariablesComponent.writeExternal方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@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, "WORKING_DIRECTORY", workingDirectory);
    JDOMExternalizerUtil.writeField(element, "PARENT_ENVS", Boolean.toString(passParentEnvs));
    JDOMExternalizerUtil.writeField(element, "ALTERNATE_INTERPRETER", Boolean.toString(overrideSDK));

    EnvironmentVariablesComponent.writeExternal(element, envs);

    // ???
    getConfigurationModule().writeExternal(element);

    // run config
    JDOMExternalizerUtil.writeField(element, "SCRIPT_NAME", scriptName);
    JDOMExternalizerUtil.writeField(element, "PARAMETERS", scriptParameters);
}
 
开发者ID:internetisalie,项目名称:lua-for-idea,代码行数:21,代码来源:LuaRunConfiguration.java

示例2: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(Element element) throws WriteExternalException {
    super.writeExternal(element);

    // common config
    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);
}
 
开发者ID:shvetsgroup,项目名称:squirrel-lang-idea-plugin,代码行数:20,代码来源:SquirrelRunConfiguration.java

示例3: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@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, "WORKING_DIRECTORY", workingDirectory);
	JDOMExternalizerUtil.writeField(element, "PARENT_ENVS", Boolean.toString(passParentEnvs));
	JDOMExternalizerUtil.writeField(element, "ALTERNATE_INTERPRETER", Boolean.toString(overrideSDK));

	EnvironmentVariablesComponent.writeExternal(element, envs);

	// ???
	getConfigurationModule().writeExternal(element);

	// run config
	JDOMExternalizerUtil.writeField(element, "SCRIPT_NAME", scriptName);
	JDOMExternalizerUtil.writeField(element, "PARAMETERS", scriptParameters);
}
 
开发者ID:consulo,项目名称:consulo-lua,代码行数:22,代码来源:LuaRunConfiguration.java

示例4: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(Element element) throws WriteExternalException {
    super.writeExternal(element);
    // Stores the values of this class into the parent

    String modulesString = GSON.toJson(tomcatModules);
    JDOMExternalizerUtil.writeField(element, MODULES_FIELD, modulesString);

    JDOMExternalizerUtil.writeField(element, TOMCAT_PATH_FIELD, this.getTomcatInstallation());
    JDOMExternalizerUtil.writeField(element, VM_ARGS_FIELD, this.getVmArgs());
    JDOMExternalizerUtil.writeField(element, PASS_PARENT_ENV_VARS_FIELD, "" + this.isPassParentEnvironmentVariables());
    if (this.environmentVariables != null && !this.environmentVariables.isEmpty()) {
        EnvironmentVariablesComponent.writeExternal(element, this.getEnvironmentVariables());
    }
}
 
开发者ID:vitorzachi,项目名称:tomcat-runner,代码行数:16,代码来源:TomcatRunnerConfiguration.java

示例5: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(Element element) throws WriteExternalException {
  super.writeExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
  XmlSerializer.serializeInto(myBean, element, SERIALIZATION_FILTERS);
  EnvironmentVariablesComponent.writeExternal(element, getEnvs());
  if (myConfigurationModule.getModule() != null) {
    myConfigurationModule.writeExternal(element);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:JarApplicationConfiguration.java

示例6: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(final Element element) throws WriteExternalException {
  super.writeExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
  DefaultJDOMExternalizer.writeExternal(this, element);
  writeModule(element);
  EnvironmentVariablesComponent.writeExternal(element, getEnvs());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:ApplicationConfiguration.java

示例7: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void writeExternal(final Element element) throws WriteExternalException {
  super.writeExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
  DefaultJDOMExternalizer.writeExternal(this, element);
  writeModule(element);
  EnvironmentVariablesComponent.writeExternal(element, getEnvs());
  PathMacroManager.getInstance(getProject()).collapsePathsRecursively(element);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:ApplicationConfiguration.java

示例8: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void writeExternal(final Element element) throws WriteExternalException {
  super.writeExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
  writeModule(element);
  DefaultJDOMExternalizer.writeExternal(this, element);
  final Data persistentData = getPersistentData();
  DefaultJDOMExternalizer.writeExternal(persistentData, element);
  EnvironmentVariablesComponent.writeExternal(element, persistentData.getEnvs());
  final String dirName = persistentData.getDirName();
  if (!dirName.isEmpty()) {
    final Element dirNameElement = new Element("dir");
    dirNameElement.setAttribute("value", FileUtil.toSystemIndependentName(dirName));
    element.addContent(dirNameElement);
  }
  final Element patternsElement = new Element(PATTERNS_EL_NAME);
  for (String o : persistentData.getPatterns()) {
    final Element patternElement = new Element(PATTERN_EL_NAME);
    patternElement.setAttribute(TEST_CLASS_ATT_NAME, o);
    patternsElement.addContent(patternElement);
  }
  final String forkMode = getForkMode();
  if (!forkMode.equals("none")) {
    final Element forkModeElement = new Element("fork_mode");
    forkModeElement.setAttribute("value", forkMode);
    element.addContent(forkModeElement);
  }
  element.addContent(patternsElement);
  PathMacroManager.getInstance(getProject()).collapsePathsRecursively(element);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:30,代码来源:JUnitConfiguration.java

示例9: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(Element element) throws WriteExternalException {
    super.writeExternal(element);
    // Stores the values of this class into the parent
    JDOMExternalizerUtil.writeField(element, WEBAPP_PATH_FIELD, this.getWebappPaths());
    JDOMExternalizerUtil.writeField(element, WEBAPP_FOLDER_FIELD, this.getWebappFolders());
    JDOMExternalizerUtil.writeField(element, CLASSES_DIRECTORY_FIELD, this.getClassesDirectories());
    JDOMExternalizerUtil.writeField(element, RUN_PORT_FIELD, this.getRunningOnPort());
    JDOMExternalizerUtil.writeField(element, JETTY_XML_FIELD, this.getJettyXml());
    JDOMExternalizerUtil.writeField(element, VM_ARGS_FIELD, this.getVmArgs());
    JDOMExternalizerUtil.writeField(element, PASS_PARENT_ENV_VARS_FIELD, ""+this.isPassParentEnvironmentVariables());
    if(this.environmentVariables != null && !this.environmentVariables.isEmpty()){
        EnvironmentVariablesComponent.writeExternal(element, this.getEnvironmentVariables());
    }
}
 
开发者ID:guikeller,项目名称:jetty-runner,代码行数:16,代码来源:JettyRunnerConfiguration.java

示例10: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void writeExternal(final Element element) throws WriteExternalException {
    super.writeExternal(element);
    xmlConfigurationAccessor.writeConfiguration(this, element);
    writeModule(element);
    EnvironmentVariablesComponent.writeExternal(element, getEnvs());
    PathMacroManager.getInstance(getProject()).collapsePathsRecursively(element);
    variablesAccessor.writeVariables(this, element);
}
 
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:9,代码来源:XQueryRunConfiguration.java

示例11: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(@NotNull Element element) throws WriteExternalException
{
	super.writeExternal(element);
	JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
	XmlSerializer.serializeInto(myBean, element, SERIALIZATION_FILTERS);
	EnvironmentVariablesComponent.writeExternal(element, getEnvs());
	if(myConfigurationModule.getModule() != null)
	{
		myConfigurationModule.writeExternal(element);
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:13,代码来源:JarApplicationConfiguration.java

示例12: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(@NotNull Element element)
{
	super.writeExternal(element);

	JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
	DefaultJDOMExternalizer.writeExternal(this, element);

	Map<String, String> envs = getEnvs();

	EnvironmentVariablesComponent.writeExternal(element, envs);

	ShortenCommandLine.writeShortenClasspathMethod(element, myShortenCommandLine);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:15,代码来源:ApplicationConfiguration.java

示例13: writeEnvs

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
protected void writeEnvs(Element element) {
  JDOMExternalizerUtil.writeField(element, "PARENT_ENVS", Boolean.toString(isPassParentEnvs()));
  EnvironmentVariablesComponent.writeExternal(element, getEnvs());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AbstractPythonRunConfiguration.java

示例14: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(Element element) throws WriteExternalException {
  super.writeExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
  writeModule(element);
  DefaultJDOMExternalizer.writeExternal(this, element);
  DefaultJDOMExternalizer.writeExternal(getPersistantData(), element);
  EnvironmentVariablesComponent.writeExternal(element, getPersistantData().getEnvs());

  Element propertiesElement = element.getChild("properties");

  if (propertiesElement == null) {
    propertiesElement = new Element("properties");
    element.addContent(propertiesElement);
  }

  Map<String, String> properties = getPersistantData().TEST_PROPERTIES;
  for (Map.Entry<String, String> entry : properties.entrySet()) {
    Element property = new Element("property");
    property.setAttribute("name", entry.getKey());
    property.setAttribute("value", entry.getValue());
    propertiesElement.addContent(property);
  }

  Element listenersElement = element.getChild("listeners");
  if (listenersElement == null) {
    listenersElement = new Element("listeners");
    element.addContent(listenersElement);
  }

  List<String> listeners = getPersistantData().TEST_LISTENERS;
  for (String listener : listeners) {
    Element listenerElement = new Element("listener");
    listenerElement.setAttribute("class", listener);
    listenersElement.addContent(listenerElement);
  }
  final Set<String> patterns = getPersistantData().getPatterns();
  if (!patterns.isEmpty()) {
    final Element patternsElement = new Element(PATTERNS_EL_NAME);
    for (String o : patterns) {
      final Element patternElement = new Element(PATTERN_EL_NAME);
      patternElement.setAttribute(TEST_CLASS_ATT_NAME, o);
      patternsElement.addContent(patternElement);
    }
    element.addContent(patternsElement);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:48,代码来源:TestNGConfiguration.java

示例15: writeExternal

import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void writeExternal(final Element element) throws WriteExternalException {
  super.writeExternal(element);
  JavaRunConfigurationExtensionManager.getInstance().writeExternal(this, element);
  writeModule(element);
  DefaultJDOMExternalizer.writeExternal(this, element);
  final Data persistentData = getPersistentData();
  DefaultJDOMExternalizer.writeExternal(persistentData, element);
  EnvironmentVariablesComponent.writeExternal(element, persistentData.getEnvs());
  final String dirName = persistentData.getDirName();
  if (!dirName.isEmpty()) {
    final Element dirNameElement = new Element("dir");
    dirNameElement.setAttribute("value", FileUtil.toSystemIndependentName(dirName));
    element.addContent(dirNameElement);
  }

  final String categoryName = persistentData.getCategory();
  if (!categoryName.isEmpty()) {
    final Element categoryNameElement = new Element("category");
    categoryNameElement.setAttribute("value", categoryName);
    element.addContent(categoryNameElement);
  }

  final Element patternsElement = new Element(PATTERNS_EL_NAME);
  for (String o : persistentData.getPatterns()) {
    final Element patternElement = new Element(PATTERN_EL_NAME);
    patternElement.setAttribute(TEST_CLASS_ATT_NAME, o);
    patternsElement.addContent(patternElement);
  }
  final String forkMode = getForkMode();
  if (!forkMode.equals("none")) {
    final Element forkModeElement = new Element("fork_mode");
    forkModeElement.setAttribute("value", forkMode);
    element.addContent(forkModeElement);
  }
  if (getRepeatCount() != 1) {
    element.setAttribute("repeat_count", String.valueOf(getRepeatCount()));
  }
  final String repeatMode = getRepeatMode();
  if (!RepeatCount.ONCE.equals(repeatMode)) {
    element.setAttribute("repeat_mode", repeatMode);
  }
  element.addContent(patternsElement);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:45,代码来源:JUnitConfiguration.java


注:本文中的com.intellij.execution.configuration.EnvironmentVariablesComponent.writeExternal方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。