本文整理汇总了Java中com.intellij.execution.configuration.EnvironmentVariablesComponent.readExternal方法的典型用法代码示例。如果您正苦于以下问题:Java EnvironmentVariablesComponent.readExternal方法的具体用法?Java EnvironmentVariablesComponent.readExternal怎么用?Java EnvironmentVariablesComponent.readExternal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.execution.configuration.EnvironmentVariablesComponent
的用法示例。
在下文中一共展示了EnvironmentVariablesComponent.readExternal方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
PathMacroManager.getInstance(getProject()).expandPaths(element);
super.readExternal(element);
DefaultJDOMExternalizer.readExternal(this, element);
readModule(element);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
// common config
workingDirectory = JDOMExternalizerUtil.readField(element, "WORKING_DIRECTORY");
String parentEnvValue = JDOMExternalizerUtil.readField(element, "PARENT_ENVS");
if (parentEnvValue != null) {
setPassParentEnvs(Boolean.parseBoolean(parentEnvValue));
}
// run config
scriptName = JDOMExternalizerUtil.readField(element, "SCRIPT_NAME");
setProgramParameters(JDOMExternalizerUtil.readField(element, "PARAMETERS"));
}
示例2: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
super.readExternal(element);
// common config
interpreterOptions = JDOMExternalizerUtil.readField(element, "INTERPRETER_OPTIONS");
interpreterPath = JDOMExternalizerUtil.readField(element, "INTERPRETER_PATH");
if (getProject().getBasePath() != null)
workingDirectory = JDOMExternalizerUtil.readField(element, "WORKING_DIRECTORY", getProject().getBasePath());
String str = JDOMExternalizerUtil.readField(element, "PARENT_ENVS");
if (str != null) {
passParentEnvs = Boolean.parseBoolean(str);
}
str = JDOMExternalizerUtil.readField(element, "ALTERNATE_INTERPRETER");
if (str != null) {
overrideSDK = Boolean.parseBoolean(str);
}
EnvironmentVariablesComponent.readExternal(element, envs);
// ???
getConfigurationModule().readExternal(element);
// run config
scriptName = JDOMExternalizerUtil.readField(element, "SCRIPT_NAME");
scriptParameters = JDOMExternalizerUtil.readField(element, "PARAMETERS");
}
示例3: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
super.readExternal(element);
// Reads the conf file into this class
String locations = JDOMExternalizerUtil.readField(element, MODULES_FIELD);
if (locations != null) {
tomcatModules = (Modules) GSON.fromJson(locations, Modules.class);
}
this.tomcatInstallation = JDOMExternalizerUtil.readField(element, TOMCAT_PATH_FIELD);
this.vmArgs = JDOMExternalizerUtil.readField(element, VM_ARGS_FIELD);
String passParentEnvironmentVariablesValue = JDOMExternalizerUtil.readField(element, PASS_PARENT_ENV_VARS_FIELD);
this.passParentEnvironmentVariables = Boolean.valueOf(passParentEnvironmentVariablesValue);
EnvironmentVariablesComponent.readExternal(element, this.environmentVariables);
}
示例4: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
PathMacroManager.getInstance(getProject()).expandPaths(element);
super.readExternal(element);
JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
XmlSerializer.deserializeInto(myBean, element);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
myConfigurationModule.readExternal(element);
}
示例5: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(final Element element) throws InvalidDataException {
PathMacroManager.getInstance(getProject()).expandPaths(element);
super.readExternal(element);
JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
DefaultJDOMExternalizer.readExternal(this, element);
readModule(element);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
}
示例6: readEnvs
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
protected void readEnvs(Element element) {
final String parentEnvs = JDOMExternalizerUtil.readField(element, "PARENT_ENVS");
if (parentEnvs != null) {
setPassParentEnvs(Boolean.parseBoolean(parentEnvs));
}
EnvironmentVariablesComponent.readExternal(element, getEnvs());
}
示例7: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
PathMacroManager.getInstance(getProject()).expandPaths(element);
super.readExternal(element);
DefaultJDOMExternalizer.readExternal(this, element);
readModule(element);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
interpreterOptions = JDOMExternalizerUtil.readField(element, "INTERPRETER_OPTIONS");
interpreterName = JDOMExternalizerUtil.readField(element, "INTERPRETER_NAME");
programName = JDOMExternalizerUtil.readField(element, "PROGRAM_NAME");
setProgramParameters(JDOMExternalizerUtil.readField(element, "PROGRAM_PARAMETERS"));
}
示例8: readEnvs
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
private void readEnvs(@NotNull final Element element) {
setPassParentEnvs(
Boolean.parseBoolean(
JDOMExternalizerUtil.readField(element, PASS_PARENT_ENVS, "")
)
);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
}
示例9: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void readExternal(final Element element) throws InvalidDataException {
PathMacroManager.getInstance(getProject()).expandPaths(element);
super.readExternal(element);
JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
DefaultJDOMExternalizer.readExternal(this, element);
readModule(element);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
}
示例10: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void readExternal(final Element element) throws InvalidDataException {
PathMacroManager.getInstance(getProject()).expandPaths(element);
super.readExternal(element);
JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
readModule(element);
DefaultJDOMExternalizer.readExternal(this, element);
DefaultJDOMExternalizer.readExternal(getPersistentData(), element);
EnvironmentVariablesComponent.readExternal(element, getPersistentData().getEnvs());
final Element patternsElement = element.getChild(PATTERNS_EL_NAME);
if (patternsElement != null) {
final Set<String> tests = new LinkedHashSet<String>();
for (Object o : patternsElement.getChildren(PATTERN_EL_NAME)) {
Element patternElement = (Element)o;
tests.add(patternElement.getAttributeValue(TEST_CLASS_ATT_NAME));
}
myData.setPatterns(tests);
}
final Element forkModeElement = element.getChild("fork_mode");
if (forkModeElement != null) {
final String mode = forkModeElement.getAttributeValue("value");
if (mode != null) {
setForkMode(mode);
}
}
final Element dirNameElement = element.getChild("dir");
if (dirNameElement != null) {
final String dirName = dirNameElement.getAttributeValue("value");
getPersistentData().setDirName(FileUtil.toSystemDependentName(dirName));
}
}
示例11: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
super.readExternal(element);
// Reads the conf file into this class
this.webappPaths = JDOMExternalizerUtil.readField(element, WEBAPP_PATH_FIELD);
this.webappFolders = JDOMExternalizerUtil.readField(element, WEBAPP_FOLDER_FIELD);
this.classesDirectories = JDOMExternalizerUtil.readField(element, CLASSES_DIRECTORY_FIELD);
this.runningOnPort = JDOMExternalizerUtil.readField(element, RUN_PORT_FIELD);
this.jettyXml = JDOMExternalizerUtil.readField(element, JETTY_XML_FIELD);
this.vmArgs = JDOMExternalizerUtil.readField(element, VM_ARGS_FIELD);
String passParentEnvironmentVariablesValue = JDOMExternalizerUtil.readField(element, PASS_PARENT_ENV_VARS_FIELD);
this.passParentEnvironmentVariables = Boolean.valueOf(passParentEnvironmentVariablesValue);
EnvironmentVariablesComponent.readExternal(element, this.environmentVariables);
}
示例12: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException
{
super.readExternal(element);
// common config
interpreterOptions = JDOMExternalizerUtil.readField(element, "INTERPRETER_OPTIONS");
interpreterPath = JDOMExternalizerUtil.readField(element, "INTERPRETER_PATH");
workingDirectory = JDOMExternalizerUtil.readField(element, "WORKING_DIRECTORY", getProject().getBasePath());
String str = JDOMExternalizerUtil.readField(element, "PARENT_ENVS");
if(str != null)
{
passParentEnvs = Boolean.parseBoolean(str);
}
str = JDOMExternalizerUtil.readField(element, "ALTERNATE_INTERPRETER");
if(str != null)
{
overrideSDK = Boolean.parseBoolean(str);
}
EnvironmentVariablesComponent.readExternal(element, envs);
// ???
getConfigurationModule().readExternal(element);
// run config
scriptName = JDOMExternalizerUtil.readField(element, "SCRIPT_NAME");
scriptParameters = JDOMExternalizerUtil.readField(element, "PARAMETERS");
}
示例13: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
public void readExternal(final Element element) throws InvalidDataException {
PathMacroManager.getInstance(getProject()).expandPaths(element);
super.readExternal(element);
xmlConfigurationAccessor.readConfiguration(element, this);
readModule(element);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
variablesAccessor.readVariables(element, this);
}
示例14: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(@NotNull Element element) throws InvalidDataException
{
super.readExternal(element);
JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
XmlSerializer.deserializeInto(myBean, element);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
myConfigurationModule.readExternal(element);
}
示例15: readExternal
import com.intellij.execution.configuration.EnvironmentVariablesComponent; //导入方法依赖的package包/类
@Override
public void readExternal(@NotNull final Element element)
{
super.readExternal(element);
JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);
DefaultJDOMExternalizer.readExternal(this, element);
EnvironmentVariablesComponent.readExternal(element, getEnvs());
setShortenCommandLine(ShortenCommandLine.readShortenClasspathMethod(element));
}