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


Java Transient类代码示例

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


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

示例1: setSelectedExchangeCurrencyPairs

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public void setSelectedExchangeCurrencyPairs(Set<SelectedExchangeCurrencyPair> selectedExchangeCurrencyPairs) {
    this.selectedExchangeCurrencyPairs = selectedExchangeCurrencyPairs;
    for (SelectedExchangeCurrencyPair selectedExchangeCurrencyPair : selectedExchangeCurrencyPairs) {
        StringJoiner stringJoiner = new StringJoiner(",");
        for (CurrencyPair currencyPair : selectedExchangeCurrencyPair.getCurrencyPairList()) {
            stringJoiner.add(currencyPair.toString());
        }
        if (StringUtils.isNotBlank(stringJoiner.toString())) {
            currencyPairByExchangeMap.put(selectedExchangeCurrencyPair.getExchangeName(), stringJoiner.toString());
        }
    }
}
 
开发者ID:semihunaldi,项目名称:IdeaCurrency,代码行数:14,代码来源:IdeaCurrencyConfig.java

示例2: suppressItem

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public void suppressItem(KeyPromoterAction action) {
    StatisticsItem removed = statistics.remove(action.getDescription());
    removed = removed == null ? new StatisticsItem(action) : removed;
    suppressed.putIfAbsent(action.getDescription(), removed);
    myChangeSupport.firePropertyChange(SUPPRESS, null, null);
    myChangeSupport.firePropertyChange(STATISTIC, null, null);
}
 
开发者ID:halirutan,项目名称:IntelliJ-Key-Promoter-X,代码行数:9,代码来源:KeyPromoterStatistics.java

示例3: unsuppressItem

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
/**
 * Puts an item from the suppress list back into the statistics.
 * @param item Item to unsuppress
 */
@Transient
void unsuppressItem(StatisticsItem item) {
    final StatisticsItem statisticsItem = suppressed.remove(item.getDescription());
    if (statisticsItem != null && statisticsItem.count > 0) {
        statistics.putIfAbsent(statisticsItem.getDescription(), statisticsItem);
    }
    myChangeSupport.firePropertyChange(SUPPRESS, null, null);
    myChangeSupport.firePropertyChange(STATISTIC, null, null);
}
 
开发者ID:halirutan,项目名称:IntelliJ-Key-Promoter-X,代码行数:14,代码来源:KeyPromoterStatistics.java

示例4: setAuthorsAsString

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public void setAuthorsAsString(String[] authors) {
  this.authors = new ArrayList<>();
  for (String name : authors) {
    final List<String> firstLast = StringUtil.split(name, " ");
    if (!firstLast.isEmpty()) {
      final StepicUser stepicUser = StepicUser.createEmptyUser();
      stepicUser.setFirstName(firstLast.remove(0));
      if (firstLast.size() > 0) {
        stepicUser.setLastName(StringUtil.join(firstLast, " "));
      }
      this.authors.add(stepicUser);
    }
  }
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:16,代码来源:Course.java

示例5: getPhpInterpreter

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
@Nullable
public PhpInterpreter getPhpInterpreter(@NotNull Project project) {
    return phpInterpreterId != null
        ? PhpInterpretersManagerImpl.getInstance(project).findInterpreterById(phpInterpreterId)
        : PhpProjectConfigurationFacade.getInstance(project).getInterpreter();
}
 
开发者ID:jiripudil,项目名称:intellij-nette-tester,代码行数:8,代码来源:TesterSettings.java

示例6: getSteppingFilters

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public ClassFilter[] getSteppingFilters() {
  final ClassFilter[] rv = new ClassFilter[mySteppingFilters.length];
  for (int idx = 0; idx < rv.length; idx++) {
    rv[idx] = mySteppingFilters[idx].clone();
  }
  return rv;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:DebuggerSettings.java

示例7: setProjectDictionary

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public void setProjectDictionary(ProjectDictionary projectDictionary) {
  dictionaryStates.clear();
  Set<EditableDictionary> projectDictionaries = projectDictionary.getDictionaries();
  if (projectDictionaries != null) {
    for (EditableDictionary dic : projectDictionary.getDictionaries()) {
      dictionaryStates.add(new DictionaryState(dic));
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ProjectDictionaryState.java

示例8: getProjectDictionary

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public ProjectDictionary getProjectDictionary() {
  if (projectDictionary == null) {
    projectDictionary = new ProjectDictionary();
  }
  return projectDictionary;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ProjectDictionaryState.java

示例9: getProxySettings

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
@Override
public CloudProxySettings getProxySettings() {
  final HttpConfigurable httpConfigurable = HttpConfigurable.getInstance();
  return new CloudProxySettings() {

    @Override
    public boolean useHttpProxy() {
      return httpConfigurable.USE_HTTP_PROXY;
    }

    @Override
    public String getHost() {
      return httpConfigurable.PROXY_HOST;
    }

    @Override
    public int getPort() {
      return httpConfigurable.PROXY_PORT;
    }

    @Override
    public boolean useAuthentication() {
      return httpConfigurable.PROXY_AUTHENTICATION;
    }

    @Override
    public String getLogin() {
      return httpConfigurable.PROXY_LOGIN;
    }

    @Override
    public String getPassword() {
      return httpConfigurable.getPlainProxyPassword();
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:38,代码来源:CloudConfigurationBase.java

示例10: getModule

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Nullable
@Transient
public Module getModule() {
  if (myModuleName != null) { //caching
    myModule = findModule(myModuleName);
  }
  if (myModule != null && myModule.isDisposed()) {
    myModule = null;
  }
  return myModule;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:RunConfigurationModule.java

示例11: createFormatter

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public Formatter createFormatter() {
  if (type == CommitCompletionType.SIMPLE) {
    return SimpleFormatter.instance;
  } else if (type == CommitCompletionType.PATTERN) {
    return RegExpFormatter.create(pattern);
  } else {
    throw new IllegalStateException("Unsupported type " + type);
  }
}
 
开发者ID:zielu,项目名称:GitToolBox,代码行数:11,代码来源:CommitCompletionConfig.java

示例12: getPresentableText

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public String getPresentableText() {
  if (type == CommitCompletionType.SIMPLE) {
    return "Branch name";
  } else if (type == CommitCompletionType.PATTERN) {
    return pattern;
  } else {
    throw new IllegalStateException("Unsupported type " + type);
  }
}
 
开发者ID:zielu,项目名称:GitToolBox,代码行数:11,代码来源:CommitCompletionConfig.java

示例13: setProjectDictionary

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public void setProjectDictionary(ProjectDictionary projectDictionary) {
  currentUser = projectDictionary.getActiveName();
  dictionaryStates.clear();
  Set<EditableDictionary> projectDictionaries = projectDictionary.getDictionaries();
  if (projectDictionaries != null) {
    for (EditableDictionary dic : projectDictionary.getDictionaries()) {
      dictionaryStates.add(new DictionaryState(dic));
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:ProjectDictionaryState.java

示例14: getProjectDictionary

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public ProjectDictionary getProjectDictionary() {
  if (projectDictionary==null){
    projectDictionary = new ProjectDictionary();
  }
  return projectDictionary;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:8,代码来源:ProjectDictionaryState.java

示例15: getCurrentRegularDecorationColor

import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public Color getCurrentRegularDecorationColor() {
    if (customRegularColor) {
        return getRegularDecorationColor();
    } else {
        return defaultRegularColor;
    }
}
 
开发者ID:zielu,项目名称:SVNToolBox,代码行数:9,代码来源:SvnToolBoxAppState.java


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