Skip to content

Commit

Permalink
Calling reloadHunspellHandle in loadLanguage to reduce coupling.
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldofJARcraft committed Jul 22, 2019
1 parent c7c8fed commit 42a8b17
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ loadLanguage: languageName
language languageName: languageName.


self spellchecker loadLanguage: language.
self spellchecker reloadHunspellHandle
self spellchecker loadLanguage: language

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dictionaryPath:" : "ea 6/13/2019 11:22",
"importDictionary" : "mka 7/16/2019 16:53",
"initialize" : "ea 7/22/2019 09:23",
"loadLanguage:" : "mka 7/16/2019 16:53",
"loadLanguage:" : "ea 7/22/2019 18:04",
"loadedLanguages" : "ow 7/12/2018 16:41",
"open" : "RS 7/22/2018 20:56",
"openDownloadPage" : "mka 7/16/2019 16:53",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
accessing
loadLanguage: aSPCHunspellLanguage
self loadedLanguages add: aSPCHunspellLanguage.
self reloadHunspellHandle.
self class notifyObservers: #loadedLanguages
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"initialize" : "mka 6/3/2019 21:47",
"initializeAddedWords" : "ow 7/23/2018 12:59",
"isSpelledCorrectly:" : "ea 5/11/2019 15:24",
"loadLanguage:" : "ea 7/1/2019 14:17",
"loadLanguage:" : "ea 7/22/2019 18:01",
"loadedLanguages" : "ea 6/17/2019 14:00",
"loadedLanguages:" : "mka 6/24/2019 14:38",
"misspelledWordsIn:" : "ea 7/22/2019 09:27",
Expand Down
2 changes: 1 addition & 1 deletion packages/Spellcheck-Core.package/monticello.meta/version

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ testSpellcheckingMultipleLanguages
self deny: (SPCSpellChecker instance isSpelledCorrectly: germanWord).

SPCSpellChecker instance loadLanguage: SPCHunspellLanguage german.
SPCSpellChecker instance reloadHunspellHandle.
self assert: (SPCSpellChecker instance isSpelledCorrectly: englishWord).
self assert: (SPCSpellChecker instance isSpelledCorrectly: germanWord)
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"testSettingParser" : "ea 7/1/2019 11:39",
"testSpellCheckAfterRestart" : "ea 7/1/2019 11:38",
"testSpellCheckAfterRestartKeepsLanguages" : "ea 6/17/2019 15:47",
"testSpellcheckingMultipleLanguages" : "ea 6/17/2019 14:04" } }
"testSpellcheckingMultipleLanguages" : "ea 7/22/2019 18:05" } }
2 changes: 1 addition & 1 deletion packages/Spellcheck-Tests.package/monticello.meta/version

Large diffs are not rendered by default.

0 comments on commit 42a8b17

Please sign in to comment.