Search in sources :

Example 1 with ProjectDictionary

use of com.intellij.spellchecker.dictionary.ProjectDictionary 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);
}
Also used : ProjectDictionary(com.intellij.spellchecker.dictionary.ProjectDictionary) EditableDictionary(com.intellij.spellchecker.dictionary.EditableDictionary) THashSet(gnu.trove.THashSet)

Aggregations

EditableDictionary (com.intellij.spellchecker.dictionary.EditableDictionary)1 ProjectDictionary (com.intellij.spellchecker.dictionary.ProjectDictionary)1 THashSet (gnu.trove.THashSet)1