com.intellij.openapi.util.JDOMExternalizer Java Examples
The following examples show how to use
com.intellij.openapi.util.JDOMExternalizer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GaugeRunConfiguration.java From Intellij-Plugin with Apache License 2.0 | 6 votes |
@Override public void readExternal(Element element) throws InvalidDataException { super.readExternal(element); environment = JDOMExternalizer.readString(element, "environment"); specsToExecute = JDOMExternalizer.readString(element, "specsToExecute"); tags = JDOMExternalizer.readString(element, "tags"); parallelNodes = JDOMExternalizer.readString(element, "parallelNodes"); execInParallel = JDOMExternalizer.readBoolean(element, "execInParallel"); programParameters.setProgramParameters(JDOMExternalizer.readString(element, "programParameters")); programParameters.setWorkingDirectory(JDOMExternalizer.readString(element, "workingDirectory")); this.moduleName = JDOMExternalizer.readString(element, "moduleName"); HashMap<String, String> envMap = new HashMap<>(); JDOMExternalizer.readMap(element, envMap, "envMap", "envMap"); programParameters.setEnvs(envMap); rowsRange = JDOMExternalizer.readString(element, "rowsRange"); }
Example #2
Source File: GaugeRunConfiguration.java From Intellij-Plugin with Apache License 2.0 | 5 votes |
@Override public void writeExternal(Element element) throws WriteExternalException { super.writeExternal(element); JDOMExternalizer.write(element, "environment", environment); JDOMExternalizer.write(element, "specsToExecute", specsToExecute); JDOMExternalizer.write(element, "tags", tags); JDOMExternalizer.write(element, "parallelNodes", parallelNodes); JDOMExternalizer.write(element, "execInParallel", execInParallel); JDOMExternalizer.write(element, "programParameters", programParameters.getProgramParameters()); JDOMExternalizer.write(element, "workingDirectory", programParameters.getWorkingDirectory()); JDOMExternalizer.write(element, "moduleName", moduleName); JDOMExternalizer.writeMap(element, programParameters.getEnvs(), "envMap", "envMap"); JDOMExternalizer.write(element, "rowsRange", rowsRange); }
Example #3
Source File: MongoRunConfiguration.java From nosql4idea with Apache License 2.0 | 5 votes |
@Override public void readExternal(Element element) throws InvalidDataException { PathMacroManager.getInstance(getProject()).expandPaths(element); super.readExternal(element); scriptPath = JDOMExternalizer.readString(element, "path"); shellParameters = JDOMExternalizer.readString(element, "shellParams"); // serverConfiguration = JDOMExternalizer.readBoolean(element, "serverConfiguration"); }
Example #4
Source File: MongoRunConfiguration.java From nosql4idea with Apache License 2.0 | 5 votes |
@Override public void writeExternal(Element element) throws WriteExternalException { super.writeExternal(element); JDOMExternalizer.write(element, "path", scriptPath); JDOMExternalizer.write(element, "shellParams", shellParameters); // JDOMExternalizer.write(element, "serverConfiguration", serverConfiguration); PathMacroManager.getInstance(getProject()).collapsePathsRecursively(element); }
Example #5
Source File: RemoteSdkPropertiesHolder.java From consulo with Apache License 2.0 | 3 votes |
public void load(Element element) { setInterpreterPath(StringUtil.nullize(element.getAttributeValue(INTERPRETER_PATH))); setHelpersPath(StringUtil.nullize(element.getAttributeValue(HELPERS_PATH))); setRemoteRoots(JDOMExternalizer.loadStringsList(element, REMOTE_ROOTS, REMOTE_PATH)); setInitialized(StringUtil.parseBoolean(element.getAttributeValue(INITIALIZED), true)); setValid(StringUtil.parseBoolean(element.getAttributeValue(VALID), true)); setPathMappings(PathMappingSettings.readExternal(element)); }