本文整理汇总了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());
}
}
}
示例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);
}
示例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);
}
示例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);
}
}
}
示例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();
}
示例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;
}
示例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));
}
}
}
示例8: getProjectDictionary
import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public ProjectDictionary getProjectDictionary() {
if (projectDictionary == null) {
projectDictionary = new ProjectDictionary();
}
return projectDictionary;
}
示例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();
}
};
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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));
}
}
}
示例14: getProjectDictionary
import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public ProjectDictionary getProjectDictionary() {
if (projectDictionary==null){
projectDictionary = new ProjectDictionary();
}
return projectDictionary;
}
示例15: getCurrentRegularDecorationColor
import com.intellij.util.xmlb.annotations.Transient; //导入依赖的package包/类
@Transient
public Color getCurrentRegularDecorationColor() {
if (customRegularColor) {
return getRegularDecorationColor();
} else {
return defaultRegularColor;
}
}