當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。