mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
[spellchecker] explicit getters for default DictionaryLayers
GitOrigin-RevId: e0f561fa26732abb7aad7f960bd656ccc6e28f0d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5ce9a661b3
commit
57374918ff
@@ -46,11 +46,15 @@ class ProjectDictionaryLayer(val project: Project) : DictionaryLayer {
|
||||
val name = SpellCheckerBundle.messagePointer("dictionary.name.project.level")
|
||||
}
|
||||
|
||||
override val name = Companion.name.get()
|
||||
override val dictionary: ProjectDictionary = project.service<ProjectDictionaryState>().projectDictionary
|
||||
override val name: String
|
||||
get() = Companion.name.get()
|
||||
override val dictionary: ProjectDictionary
|
||||
get() = project.service<ProjectDictionaryState>().projectDictionary
|
||||
}
|
||||
|
||||
object ApplicationDictionaryLayer : DictionaryLayer {
|
||||
override val name = SpellCheckerBundle.message("dictionary.name.application.level")
|
||||
override val dictionary: EditableDictionary by lazy { AppDictionaryState.getInstance().dictionary }
|
||||
override val name: String
|
||||
get() = SpellCheckerBundle.message("dictionary.name.application.level")
|
||||
override val dictionary: EditableDictionary
|
||||
get() = AppDictionaryState.getInstance().dictionary
|
||||
}
|
||||
Reference in New Issue
Block a user