mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
Cleanup: use light services
^IDEA-254577 GitOrigin-RevId: 01afb3f2166f8713cd4599f37d43ecf7f4d2944c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
33dc0b0678
commit
1a62d88764
@@ -32,7 +32,6 @@
|
||||
<registryKey key="spellchecker.corrections.limit" defaultValue="3" description="Spellchecker corrections limit" restartRequired="false"/>
|
||||
<registryKey key="spellchecker.inspection.enabled" defaultValue="true" description="Enable spellchecking inspection" restartRequired="false"/>
|
||||
|
||||
<projectService serviceImplementation="com.intellij.spellchecker.state.ProjectDictionaryState"/>
|
||||
<statistics.projectUsagesCollector implementation="com.intellij.spellchecker.statistics.SpellcheckerConfigCollector"/>
|
||||
<lookup.usageDetails implementation="com.intellij.spellchecker.statistics.SpellcheckerLookupUsageDescriptor"/>
|
||||
<statistics.collectorExtension implementation="com.intellij.spellchecker.statistics.SpellcheckerLookupUsageDescriptor$SpellcheckerCompletionCollectorExtension"/>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
package com.intellij.spellchecker.state;
|
||||
|
||||
import com.intellij.openapi.components.PersistentStateComponent;
|
||||
import com.intellij.openapi.components.Service;
|
||||
import com.intellij.openapi.components.State;
|
||||
import com.intellij.openapi.components.Storage;
|
||||
import com.intellij.spellchecker.dictionary.EditableDictionary;
|
||||
@@ -17,6 +18,7 @@ import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@Service(Service.Level.PROJECT)
|
||||
@State(name = "ProjectDictionaryState", storages = @Storage(value = "dictionaries", stateSplitter = ProjectDictionarySplitter.class))
|
||||
public final class ProjectDictionaryState implements PersistentStateComponent<ProjectDictionaryState> {
|
||||
@Property(surroundWithTag = false)
|
||||
|
||||
Reference in New Issue
Block a user