public class SpellCheckerManager extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
static class |
SpellCheckerManager.DictionaryLevel |
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APP |
static java.lang.String |
CACHED_DICTIONARY_FILE |
static java.lang.String |
PROJECT |
static java.lang.String |
PROJECT_DICTIONARY_PATH |
Constructor and Description |
---|
SpellCheckerManager(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
acceptWordAsCorrect(java.lang.String word,
Project project) |
void |
acceptWordAsCorrect(java.lang.String word,
VirtualFile file,
Project project,
SpellCheckerManager.DictionaryLevel dictionaryLevel) |
void |
addUserDictionaryChangedListener(DictionaryStateListener listener,
Disposable parentDisposable) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
fullConfigurationReload() |
java.lang.String |
getAppDictionaryPath() |
static java.util.List<java.lang.String> |
getBundledDictionaries() |
static SpellCheckerManager |
getInstance(Project project) |
Project |
getProject() |
java.lang.String |
getProjectDictionaryPath() |
protected java.util.List<java.lang.String> |
getRawSuggestions(java.lang.String word) |
static java.util.List<Dictionary> |
getRuntimeDictionaries() |
SpellCheckerEngine |
getSpellChecker() |
java.util.List<java.lang.String> |
getSuggestions(java.lang.String text) |
java.util.Set<java.lang.String> |
getUserDictionaryWords() |
boolean |
hasProblem(java.lang.String word) |
void |
openDictionaryInEditor(java.lang.String dictPath) |
static void |
restartInspections() |
void |
updateBundledDictionaries(java.util.List<java.lang.String> removedDictionaries) |
void |
updateUserDictionary(java.util.Collection<java.lang.String> words) |
public static final java.lang.String PROJECT
public static final java.lang.String APP
public static final java.lang.String PROJECT_DICTIONARY_PATH
public static final java.lang.String CACHED_DICTIONARY_FILE
public SpellCheckerManager(Project project)
public static SpellCheckerManager getInstance(Project project)
public SpellCheckerEngine getSpellChecker()
public void fullConfigurationReload()
public void updateBundledDictionaries(java.util.List<java.lang.String> removedDictionaries)
public Project getProject()
public java.util.Set<java.lang.String> getUserDictionaryWords()
public boolean hasProblem(java.lang.String word)
public void acceptWordAsCorrect(java.lang.String word, Project project)
public void acceptWordAsCorrect(java.lang.String word, VirtualFile file, Project project, SpellCheckerManager.DictionaryLevel dictionaryLevel)
public void updateUserDictionary(java.util.Collection<java.lang.String> words)
public static java.util.List<java.lang.String> getBundledDictionaries()
public static java.util.List<Dictionary> getRuntimeDictionaries()
public java.util.List<java.lang.String> getSuggestions(java.lang.String text)
protected java.util.List<java.lang.String> getRawSuggestions(java.lang.String word)
public static void restartInspections()
public void dispose()
Disposable
dispose
in interface Disposable
public java.lang.String getProjectDictionaryPath()
public java.lang.String getAppDictionaryPath()
public void openDictionaryInEditor(java.lang.String dictPath)
public void addUserDictionaryChangedListener(DictionaryStateListener listener, Disposable parentDisposable)