use of com.intellij.spellchecker.dictionary.EditableDictionary in project intellij-community by JetBrains.
the class ProjectDictionaryState method retrieveProjectDictionaries.
private void retrieveProjectDictionaries() {
Set<EditableDictionary> dictionaries = new THashSet<>();
if (dictionaryStates != null) {
for (DictionaryState dictionaryState : dictionaryStates) {
dictionaryState.loadState(dictionaryState);
dictionaries.add(dictionaryState.getDictionary());
}
}
projectDictionary = new ProjectDictionary(dictionaries);
}
use of com.intellij.spellchecker.dictionary.EditableDictionary 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));
}
}
}
Aggregations