use of com.intellij.util.xmlb.annotations.Transient in project intellij-community by JetBrains.
the class Course method setAuthorsAsString.
@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 = new StepicUser();
stepicUser.setFirstName(firstLast.remove(0));
if (firstLast.size() > 0) {
stepicUser.setLastName(StringUtil.join(firstLast, " "));
}
this.authors.add(stepicUser);
}
}
}
use of com.intellij.util.xmlb.annotations.Transient in project intellij-community by JetBrains.
the class ProjectDictionaryState method setProjectDictionary.
@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));
}
}
}
use of com.intellij.util.xmlb.annotations.Transient in project intellij-plugins by JetBrains.
the class LibraryBundlificationRule method getAdditionalPropertiesMap.
/**
* Returns a map with properties to be added to the bundle manifest definition of all libraries which this rule applies to.
*/
@Transient
public Map<String, String> getAdditionalPropertiesMap() {
try {
Properties p = new Properties();
p.load(new ByteArrayInputStream(myAdditionalProperties.getBytes(CharsetToolkit.UTF8_CHARSET)));
Map<String, String> result = ContainerUtil.newHashMap();
for (Map.Entry<Object, Object> entry : p.entrySet()) {
result.put(String.valueOf(entry.getKey()), String.valueOf(entry.getValue()));
}
return result;
} catch (IOException ignored) {
}
return Collections.emptyMap();
}
Aggregations