本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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());
}
}
示例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);
}
}
示例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());
}
示例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);
}
示例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);
}
示例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());
}
}
示例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);
}
示例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);
}
}
示例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);
}
示例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());
}
示例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);
}
}
示例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);
}