mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inlay hints: make configurable ready to work with dynamic EP
GitOrigin-RevId: 0741965f6ae21acbb58a779ec23904d3845b7c34
This commit is contained in:
committed by
intellij-monorepo-bot
parent
53986a2bd7
commit
cc61ddeaf4
+1
-1
@@ -23,7 +23,7 @@ interface InlaySettingsProvider {
|
||||
fun getSupportedLanguages(project: Project): Collection<Language>
|
||||
|
||||
object EP {
|
||||
private val EXTENSION_POINT_NAME =
|
||||
val EXTENSION_POINT_NAME =
|
||||
ExtensionPointName.create<InlaySettingsProvider>("com.intellij.config.inlaySettingsProvider")
|
||||
|
||||
fun getExtensions(): Array<out InlaySettingsProvider> {
|
||||
|
||||
+3
-1
@@ -12,7 +12,7 @@ import com.intellij.openapi.options.ex.Settings
|
||||
import com.intellij.openapi.project.Project
|
||||
import javax.swing.JComponent
|
||||
|
||||
class InlayHintsConfigurable(val project: Project) : Configurable, Configurable.Composite {
|
||||
class InlayHintsConfigurable(val project: Project) : Configurable, Configurable.Composite, Configurable.WithEpDependencies {
|
||||
private val settings = InlayHintsSettings.instance()
|
||||
private val configurables: List<SingleLanguageInlayHintsConfigurable>
|
||||
private val panel: InlayHintsPanel
|
||||
@@ -97,5 +97,7 @@ class InlayHintsConfigurable(val project: Project) : Configurable, Configurable.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun getDependencies() = listOf(InlaySettingsProvider.EP.EXTENSION_POINT_NAME)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user