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


Java JDOMExternalizer.readString方法代码示例

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


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

示例1: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  readModule(element);
  vmParams = JDOMExternalizer.readString(element, "vmparams");
  cmdLine = JDOMExternalizer.readString(element, "cmdLine");

  String sPassParentEnviroment = JDOMExternalizer.readString(element, "passParentEnv");
  passParentEnv = StringUtil.isEmpty(sPassParentEnviroment) || Boolean.parseBoolean(sPassParentEnviroment);

  envs.clear();
  JDOMExternalizer.readMap(element, envs, null, "env");

  JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);

  depsClasspath = !"false".equals(JDOMExternalizer.readString(element, "depsClasspath"));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:MvcRunConfiguration.java

示例2: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  readModule(element);
  scriptPath = ExternalizablePath.localPathValue(JDOMExternalizer.readString(element, "path"));
  vmParams = JDOMExternalizer.readString(element, "vmparams");
  scriptParams = JDOMExternalizer.readString(element, "params");
  final String wrk = JDOMExternalizer.readString(element, "workDir");
  if (!".".equals(wrk)) {
    workDir = ExternalizablePath.localPathValue(wrk);
  }
  isDebugEnabled = Boolean.parseBoolean(JDOMExternalizer.readString(element, "debug"));
  envs.clear();
  JDOMExternalizer.readMap(element, envs, null, "env");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:GroovyScriptRunConfiguration.java

示例3: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
@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");
}
 
开发者ID:getgauge,项目名称:Intellij-Plugin,代码行数:17,代码来源:GaugeRunConfiguration.java

示例4: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public void readExternal(Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  readModule(element);
  vmParams = JDOMExternalizer.readString(element, "vmparams");
  cmdLine = JDOMExternalizer.readString(element, "cmdLine");

  String sPassParentEnviroment = JDOMExternalizer.readString(element, "passParentEnv");
  passParentEnv = StringUtil.isEmpty(sPassParentEnviroment) ? true : Boolean.parseBoolean(sPassParentEnviroment);

  envs.clear();
  JDOMExternalizer.readMap(element, envs, null, "env");

  JavaRunConfigurationExtensionManager.getInstance().readExternal(this, element);

  depsClasspath = !"false".equals(JDOMExternalizer.readString(element, "depsClasspath"));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:18,代码来源:MvcRunConfiguration.java

示例5: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public void readExternal(Element element) throws InvalidDataException {
       dataSourceName = JDOMExternalizer.readString(element, "datasourceName");
       sqlMapSuffix = JDOMExternalizer.readString(element, "sqlMapSuffix");
       sqlMapPackage = JDOMExternalizer.readString(element, "sqlMapPackage");
       beanPackage = JDOMExternalizer.readString(element, "beanPackage");
       selectKeyTemplate = JDOMExternalizer.readString(element, "selectKeyTemplate");
	String temp = JDOMExternalizer.readString(element, "selectKeyType");
	if(null == temp || temp.trim().length() == 0){
		selectKeyType = SelectKeyType.none;
	}else{
		selectKeyType = SelectKeyType.valueOf(temp);
	}
	insertTemplate = JDOMExternalizer.readString(element, "insertTemplate");
	selectTemplate = JDOMExternalizer.readString(element, "selectTemplate");
	updateTemplate = JDOMExternalizer.readString(element, "updateTemplate");
	deleteTemplate = JDOMExternalizer.readString(element, "deleteTemplate");
	injectCreatedSqlMap = JDOMExternalizer.readBoolean(element, "injectCreatedSqlMap");
	generateCrudOperations = JDOMExternalizer.readBoolean(element, "generateCrudOperations");
}
 
开发者ID:code4craft,项目名称:ibatis-plugin,代码行数:20,代码来源:IbatisFacetConfiguration.java

示例6: readColor

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public static Color readColor(Element root, String name, Color defaultValue) {
    String colorValue = JDOMExternalizer.readString(root, name);
    if (colorValue != null) {
        try {
            return new Color(Integer.parseInt(colorValue, 16));
        } catch (NumberFormatException e) {
            // Ignore
        }
    }
    return defaultValue;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:JDOMExternalizerEx.java

示例7: loadState

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public void loadState(Element element) {
  final PatternCompiler<PsiElement> helper = getCompiler();
  final Element e = element.getChild(getClass().getSimpleName());
  if (e != null) {
    myInjectedLanguageId = JDOMExternalizer.readString(e, "LANGUAGE");
    myPrefix = JDOMExternalizer.readString(e, "PREFIX");
    mySuffix = JDOMExternalizer.readString(e, "SUFFIX");
    setValuePattern(JDOMExternalizer.readString(e, "VALUE_PATTERN"));
    mySingleFile = JDOMExternalizer.readBoolean(e, "SINGLE_FILE");
    readExternalImpl(e);
  }
  else {
    myDisplayName = StringUtil.notNullize(element.getChildText("display-name"));
    myInjectedLanguageId = StringUtil.notNullize(element.getAttributeValue("language"));
    myPrefix = StringUtil.notNullize(element.getChildText("prefix"));
    mySuffix = StringUtil.notNullize(element.getChildText("suffix"));
    setValuePattern(element.getChildText("value-pattern"));
    mySingleFile = element.getChild("single-file") != null;
    readExternalImpl(element);
    final List<Element> placeElements = element.getChildren("place");
    myPlaces = InjectionPlace.ARRAY_FACTORY.create(placeElements.size());
    for (int i = 0, placeElementsSize = placeElements.size(); i < placeElementsSize; i++) {
      Element placeElement = placeElements.get(i);
      final boolean enabled = !Boolean.parseBoolean(placeElement.getAttributeValue("disabled"));
      final String text = placeElement.getText();
      myPlaces[i] = new InjectionPlace(helper.createElementPattern(text, getDisplayName()), enabled);
    }
  }
  if (myPlaces.length == 0) {
    generatePlaces();
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:33,代码来源:BaseInjection.java

示例8: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public void readExternal(Element element) throws InvalidDataException {
  PathMacroManager.getInstance(getProject()).expandPaths(element);
  super.readExternal(element);
  readModule(element);
  scriptPath = ExternalizablePath.localPathValue(JDOMExternalizer.readString(element, "path"));
  vmParams = JDOMExternalizer.readString(element, "vmparams");
  scriptParams = JDOMExternalizer.readString(element, "params");
  final String wrk = JDOMExternalizer.readString(element, "workDir");
  if (!".".equals(wrk)) {
    workDir = ExternalizablePath.localPathValue(wrk);
  }
  isDebugEnabled = Boolean.parseBoolean(JDOMExternalizer.readString(element, "debug"));
  envs.clear();
  JDOMExternalizer.readMap(element, envs, null, "env");
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:16,代码来源:GroovyScriptRunConfiguration.java

示例9: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
@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");
    }
 
开发者ID:dboissier,项目名称:nosql4idea,代码行数:9,代码来源:MongoRunConfiguration.java

示例10: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
  super.readExternal(element);
  readModule(element);
  settingsFile = JDOMExternalizer.readString(element, "settingsFile");
  serverAddress = JDOMExternalizer.readString(element, "serverAddress");
  String serverTypeStr = JDOMExternalizer.readString(element, "serverType");
  if (serverTypeStr != null) {
    serverType = ServerType.valueOf(serverTypeStr);
  }
}
 
开发者ID:BladeRunnerJS,项目名称:brjs-JsTestDriver,代码行数:12,代码来源:JSTestDriverConfiguration.java

示例11: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入方法依赖的package包/类
public void readExternal(Element element) {
    executablePath = JDOMExternalizer.readString(element, ATTR_EXECUTABLE_PATH);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ExternalEditorOptionsImpl.java


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