From 807fa8bed36c1efae276281aab2c14d200cf3cff Mon Sep 17 00:00:00 2001 From: Alexander Bubenchikov Date: Tue, 26 Mar 2024 15:26:29 +0100 Subject: [PATCH] [maven ][IDEA-350098] make scheduleUpdateIndexContent available for 3d party developers GitOrigin-RevId: 942ba3e26a482dc5f3ecbf3e9a5c61f23cbe8d17 --- .../jetbrains/idea/maven/indices/MavenSystemIndicesManager.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/indices/MavenSystemIndicesManager.kt b/plugins/maven/src/main/java/org/jetbrains/idea/maven/indices/MavenSystemIndicesManager.kt index bf2ee88f30c4..45bd7048050a 100644 --- a/plugins/maven/src/main/java/org/jetbrains/idea/maven/indices/MavenSystemIndicesManager.kt +++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/indices/MavenSystemIndicesManager.kt @@ -21,6 +21,7 @@ import com.intellij.util.xmlb.annotations.OptionTag import kotlinx.coroutines.* import kotlinx.coroutines.sync.Mutex import kotlinx.coroutines.sync.withLock +import org.jetbrains.annotations.ApiStatus import org.jetbrains.annotations.TestOnly import org.jetbrains.idea.maven.model.MavenIndexId import org.jetbrains.idea.maven.model.MavenRepositoryInfo @@ -49,6 +50,7 @@ interface IndexChangeProgressListener { @Service @State(name = "MavenIndices", storages = ([Storage(value = "mavenIndicesState.xml", roamingType = RoamingType.LOCAL)])) +@ApiStatus.Experimental class MavenSystemIndicesManager(val cs: CoroutineScope) : PersistentStateComponent { private var myState: IndexStateList? = null @@ -238,7 +240,7 @@ class MavenSystemIndicesManager(val cs: CoroutineScope) : PersistentStateCompone } } - internal fun scheduleUpdateIndexContent(toUpdate: List, explicit: Boolean) { + fun scheduleUpdateIndexContent(toUpdate: List, explicit: Boolean) { val luceneUpdate = ArrayList() val inMemoryUpdate = ArrayList() for (idx: MavenUpdatableIndex in toUpdate) {