• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java JDOMExternalizer类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



JDOMExternalizer类属于com.intellij.openapi.util包,在下文中一共展示了JDOMExternalizer类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: writeExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
@Override
public void writeExternal(Element element) throws WriteExternalException {
    super.writeExternal(element);
    if (runSettings == null){
        try {
            readExternal(element);
        }
        catch (InvalidDataException ex){
            //TODO: Not doing this at the moment anyways.
        }
    }
    JDOMExternalizer.write(element, "additionalArguments", runSettings.getAdditionalArguments());
    JDOMExternalizer.write(element, "testFilePath", runSettings.getTestFilePath());
    JDOMExternalizer.write(element, "directory", runSettings.getDirectory());
    JDOMExternalizer.write(element, "configFile", runSettings.getConfigFile());
    JDOMExternalizer.write(element, "optionsFile", runSettings.getOptionsFile());
    JDOMExternalizer.write(element, "rsaKey", runSettings.getRsaKey());
    JDOMExternalizer.write(element, "useLatestPreserved", runSettings.getUseLatestPreserved());
}
 
开发者ID:samwoods1,项目名称:BeakerRubyMinePlugin,代码行数:20,代码来源:BeakerRunConfiguration.java


示例4: 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


示例5: readOldFormat

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
private void readOldFormat(final Element e) {
  final JDOMExternalizableStringList list = new JDOMExternalizableStringList();
  try {
    list.readExternal(e);
  }
  catch (InvalidDataException e1) {
    // nothing
  }
  if (list.isEmpty()) return;
  final boolean[] selection = new boolean[list.size()];
  for (int i = 0; i < list.size(); i++) {
    selection[i] = Boolean.parseBoolean(list.get(i));
  }
  final String methodSignature = fixSignature(JDOMExternalizer.readString(e, "METHOD"), false);
  myParameterMap.put(methodSignature, new MethodInfo(methodSignature, selection, false));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:17,代码来源:MethodParameterInjection.java


示例6: 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


示例7: 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


示例8: 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


示例9: readExternalImpl

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
protected void readExternalImpl(Element e) {
  if (e.getAttribute("injector-id") == null) {
    setClassName(JDOMExternalizer.readString(e, "CLASS"));
    //setApplyInHierarchy(JDOMExternalizer.readBoolean(e, "APPLY_IN_HIERARCHY"));
    readOldFormat(e);
    final THashMap<String, String> map = new THashMap<String, String>();
    JDOMExternalizer.readMap(e, map, null, "SIGNATURES");
    for (String s : map.keySet()) {
      final String fixedSignature = fixSignature(s, false);
      myParameterMap.put(fixedSignature, new MethodInfo(fixedSignature, map.get(s)));
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:MethodParameterInjection.java


示例10: readOldFormat

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
private void readOldFormat(final Element e) {
  final JDOMExternalizableStringList list = new JDOMExternalizableStringList();
  try {
    list.readExternal(e);
  }
  catch (IllegalDataException ignored) {
  }
  if (list.isEmpty()) return;
  final boolean[] selection = new boolean[list.size()];
  for (int i = 0; i < list.size(); i++) {
    selection[i] = Boolean.parseBoolean(list.get(i));
  }
  final String methodSignature = fixSignature(JDOMExternalizer.readString(e, "METHOD"), false);
  myParameterMap.put(methodSignature, new MethodInfo(methodSignature, selection, false));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:MethodParameterInjection.java


示例11: writeExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
@Override
public void writeExternal(Element element) throws WriteExternalException {
  super.writeExternal(element);
  writeModule(element);
  JDOMExternalizer.write(element, "vmparams", vmParams);
  JDOMExternalizer.write(element, "cmdLine", cmdLine);
  JDOMExternalizer.write(element, "depsClasspath", depsClasspath);
  JDOMExternalizer.writeMap(element, envs, null, "env");
  JDOMExternalizer.write(element, "passParentEnv", passParentEnv);

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

}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:MvcRunConfiguration.java


示例12: writeExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
@Override
public void writeExternal(Element element) throws WriteExternalException {
  super.writeExternal(element);
  writeModule(element);
  JDOMExternalizer.write(element, "path", ExternalizablePath.urlValue(scriptPath));
  JDOMExternalizer.write(element, "vmparams", vmParams);
  JDOMExternalizer.write(element, "params", scriptParams);
  JDOMExternalizer.write(element, "workDir", ExternalizablePath.urlValue(workDir));
  JDOMExternalizer.write(element, "debug", isDebugEnabled);
  JDOMExternalizer.writeMap(element, envs, null, "env");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:GroovyScriptRunConfiguration.java


示例13: readExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
@Override
public void readExternal(Element element) throws InvalidDataException {
    super.readExternal(element);
    BeakerRunSettings settings = new BeakerRunSettings();
    settings.setAdditionalArguments(JDOMExternalizer.readString(element, "additionalArguments"));
    settings.setTestFilePath(JDOMExternalizer.readString(element, "testFilePath"));
    settings.setDirectory(JDOMExternalizer.readString(element, "directory"));
    settings.setConfigFile(JDOMExternalizer.readString(element, "configFile"));
    settings.setOptionsFile(JDOMExternalizer.readString(element, "optionsFile"));
    settings.setRsaKey(JDOMExternalizer.readString(element, "rsaKey"));
    settings.setUseLatestPreserved(JDOMExternalizer.readBoolean(element, "useLatestPreserved"));
    setRunSettings(settings);
}
 
开发者ID:samwoods1,项目名称:BeakerRubyMinePlugin,代码行数:14,代码来源:BeakerRunConfiguration.java


示例14: writeExternal

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


示例15: 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


示例16: readExternalImpl

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
protected void readExternalImpl(Element e) {
  if (e.getAttribute("injector-id") == null) {
    setTagName(JDOMExternalizer.readString(e, "TAGNAME"));
    setTagNamespace(JDOMExternalizer.readString(e, "TAGNAMESPACE"));
    setXPathCondition(JDOMExternalizer.readString(e, "XPATH_CONDITION"));

    myApplyToSubTagTexts = JDOMExternalizer.readBoolean(e, "APPLY_TO_SUBTAGS");
  }
  else {
    setXPathCondition(e.getChildText("xpath-condition"));
    myApplyToSubTagTexts = e.getChild("apply-to-subtags") != null;
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:AbstractTagInjection.java


示例17: readExternalImpl

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
protected void readExternalImpl(Element e) {
  super.readExternalImpl(e);
  if (e.getAttribute("injector-id") == null) {
    setAttributeName(JDOMExternalizer.readString(e, "ATT_NAME"));
    setAttributeNamespace(JDOMExternalizer.readString(e, "ATT_NAMESPACE"));
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:8,代码来源:XmlAttributeInjection.java


示例18: writeExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
public void writeExternal(Element element) throws WriteExternalException {
  super.writeExternal(element);
  writeModule(element);
  JDOMExternalizer.write(element, "vmparams", vmParams);
  JDOMExternalizer.write(element, "cmdLine", cmdLine);
  JDOMExternalizer.write(element, "depsClasspath", depsClasspath);
  JDOMExternalizer.writeMap(element, envs, null, "env");
  JDOMExternalizer.write(element, "passParentEnv", passParentEnv);

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

  PathMacroManager.getInstance(getProject()).collapsePathsRecursively(element);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:MvcRunConfiguration.java


示例19: 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


示例20: writeExternal

import com.intellij.openapi.util.JDOMExternalizer; //导入依赖的package包/类
public void writeExternal(Element element) throws WriteExternalException {
  super.writeExternal(element);
  writeModule(element);
  JDOMExternalizer.write(element, "path", ExternalizablePath.urlValue(scriptPath));
  JDOMExternalizer.write(element, "vmparams", vmParams);
  JDOMExternalizer.write(element, "params", scriptParams);
  JDOMExternalizer.write(element, "workDir", ExternalizablePath.urlValue(workDir));
  JDOMExternalizer.write(element, "debug", isDebugEnabled);
  JDOMExternalizer.writeMap(element, envs, null, "env");
  PathMacroManager.getInstance(getProject()).collapsePathsRecursively(element);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:GroovyScriptRunConfiguration.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SimpleMarkerAnnotation类代码示例发布时间:2022-05-22
下一篇:
Java InVMConnectorFactory类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap