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


Java XmlSerializerUtil类代码示例

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


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

示例1: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(IdeaCurrencyConfig ideaCurrencyConfig) {
    XmlSerializerUtil.copyBean(ideaCurrencyConfig, this);
    for (String exchangeName : ideaCurrencyConfig.currencyPairByExchangeMap.keySet()) {
        String currencyPairs = currencyPairByExchangeMap.get(exchangeName);
        String[] split = currencyPairs.split(",");
        Set<CurrencyPair> currencyPairSet = Lists.newArrayList(split).stream().map(CurrencyPair::new).collect(Collectors.toSet());
        selectedExchangeCurrencyPairs.add(new SelectedExchangeCurrencyPair(exchangeName, currencyPairSet));
    }
    checkAndOptimizeReloadInterval(ideaCurrencyConfig.getReloadInterval());
}
 
开发者ID:semihunaldi,项目名称:IdeaCurrency,代码行数:12,代码来源:IdeaCurrencyConfig.java

示例2: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(SettingManager formatSetting) {
    XmlSerializerUtil.copyBean(formatSetting, this);
    if (templates != null && templates.getRoots().size() == 0) {
        templates.setRoots(Defaults.getDefaultTemplates());
    }
    if (variables != null && StringUtils.isBlank(variables.getIgnoreFields())) {
        variables.setIgnoreFields("id,created_at,updated_at");
    }
}
 
开发者ID:hykes,项目名称:CodeGen,代码行数:11,代码来源:SettingManager.java

示例3: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(PersistProfileComponent state) {
    XmlSerializerUtil.copyBean(state, this);

    // Prevent loading a null map
    if (userStatMap == null) {
        userStatMap = new HashMap<>();
    }
}
 
开发者ID:vcu-swim-lab,项目名称:stack-intheflow,代码行数:10,代码来源:PersistProfileComponent.java

示例4: getState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
@NotNull
public JpsJavaCompilerOptions getState() {
  JpsJavaCompilerOptions state = new JpsJavaCompilerOptions();
  XmlSerializerUtil.copyBean(mySettings, state);
  state.ADDITIONAL_OPTIONS_STRING = PathMacroManager.getInstance(myProject).collapsePathsRecursively(state.ADDITIONAL_OPTIONS_STRING);
  return state;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:JavacConfiguration.java

示例5: apply

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void apply() throws ConfigurationException {
  boolean uncheckedApply = myConfigurable.isModified();
  myConfigurable.apply();
  XmlSerializerUtil.copyBean(myInnerServer.getConfiguration(), myServer.getConfiguration());
  myNew = false;
  myUncheckedApply = uncheckedApply;
  myInnerApplied = false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:SingleRemoteServerConfigurable.java

示例6: getState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public HttpConfigurable getState() {
  CommonProxy.isInstalledAssertion();

  HttpConfigurable state = new HttpConfigurable();
  XmlSerializerUtil.copyBean(this, state);
  if (!KEEP_PROXY_PASSWORD) {
    state.PROXY_PASSWORD_CRYPT = null;
  }
  correctPasswords(state);
  return state;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:HttpConfigurable.java

示例7: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(@NotNull HttpConfigurable state) {
  XmlSerializerUtil.copyBean(state, this);
  if (!KEEP_PROXY_PASSWORD) {
    PROXY_PASSWORD_CRYPT = null;
  }
  correctPasswords(this);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:HttpConfigurable.java

示例8: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
public void loadState(Config config) {
  XmlSerializerUtil.copyBean(config, myConfig);
  myTasks.clear();
  for (LocalTaskImpl task : config.tasks) {
    addTask(task);
  }

  myRepositories.clear();
  Element element = config.servers;
  List<TaskRepository> repositories = loadRepositories(element);
  myRepositories.addAll(repositories);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:TaskManagerImpl.java

示例9: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(Yii2SupportSettings applicationService) {
    XmlSerializerUtil.copyBean(applicationService, this);
}
 
开发者ID:nvlad,项目名称:yii2support,代码行数:5,代码来源:Yii2SupportSettings.java

示例10: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(CodeMakerSettings codeMakerSettings) {
    XmlSerializerUtil.copyBean(codeMakerSettings, this);
}
 
开发者ID:zeng198821,项目名称:CodeGenerate,代码行数:5,代码来源:CodeMakerSettings.java

示例11: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(RNConsoleConfiguration freelineConfiguration) {
    XmlSerializerUtil.copyBean(freelineConfiguration, this);
}
 
开发者ID:beansoftapp,项目名称:react-native-console,代码行数:5,代码来源:RNConsoleConfiguration.java

示例12: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(HighlighterSettingsConfig state) {
    XmlSerializerUtil.copyBean(state, this);
}
 
开发者ID:tobszarny,项目名称:ActiveTabHighlighterPlugin,代码行数:5,代码来源:HighlighterSettingsConfig.java

示例13: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
public void loadState(SourcetrailOptions state)
{
    XmlSerializerUtil.copyBean(state, this);
}
 
开发者ID:CoatiSoftware,项目名称:idea-sourcetrail,代码行数:5,代码来源:SourcetrailOptions.java

示例14: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(Config gherkinConfig) {
    XmlSerializerUtil.copyBean(gherkinConfig, this);
}
 
开发者ID:KariiO,项目名称:Gherkin-TS-Runner,代码行数:5,代码来源:Config.java

示例15: loadState

import com.intellij.util.xmlb.XmlSerializerUtil; //导入依赖的package包/类
@Override
public void loadState(PluginDataConfig pluginDataConfig) {
	XmlSerializerUtil.copyBean(pluginDataConfig, this);
}
 
开发者ID:syuchan1005,项目名称:MCPluginDebuggerforIDEA,代码行数:5,代码来源:PluginDataConfig.java


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