mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[kotlin] add information about kotlin plugin kind to about dialog
^KTIJ-26642 fixed GitOrigin-RevId: ba2bafb25c7e6196a5d6e72d567c9cf3867b9f75
This commit is contained in:
committed by
intellij-monorepo-bot
parent
17e47c774b
commit
8b5db2e6d0
@@ -17,4 +17,5 @@ kotlin.dist.downloading.failed=Kotlin dist downloading failed
|
||||
configuration.feature.text.new.java.to.kotlin.converter=New Java to Kotlin Converter
|
||||
|
||||
kotlin.plugin.kind.k1=K1-based plugin
|
||||
kotlin.plugin.kind.k2=K2-based plugin (Experimental)
|
||||
kotlin.plugin.kind.k2=K2-based plugin (Experimental)
|
||||
kotlin.plugin.kind.text=Kotlin Plugin: {0}
|
||||
@@ -0,0 +1,19 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.kotlin.idea.base.plugin
|
||||
|
||||
import com.intellij.ide.AboutPopupDescriptionProvider
|
||||
import com.intellij.openapi.util.NlsContexts.DetailedDescription
|
||||
|
||||
internal class KotlinPluginKindAboutPopupDescriptionProvider : AboutPopupDescriptionProvider {
|
||||
override fun getDescription(): @DetailedDescription String? {
|
||||
val pluginKind = KotlinPluginKindProvider.currentPluginKind
|
||||
return when (pluginKind) {
|
||||
KotlinPluginKind.FIR_PLUGIN -> {
|
||||
KotlinBasePluginBundle.message("kotlin.plugin.kind.text", pluginKind.getPluginKindDescription())
|
||||
}
|
||||
KotlinPluginKind.FE10_PLUGIN -> {
|
||||
null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -64,6 +64,7 @@
|
||||
</extensionPoints>
|
||||
|
||||
<extensions defaultExtensionNs="com.intellij">
|
||||
<aboutPopupDescriptionProvider implementation="org.jetbrains.kotlin.idea.base.plugin.KotlinPluginKindAboutPopupDescriptionProvider"/>
|
||||
<applicationService serviceImplementation="org.jetbrains.kotlin.idea.PluginStartupApplicationService" />
|
||||
<applicationService serviceImplementation="org.jetbrains.kotlin.idea.KotlinPluginUpdater"/>
|
||||
<applicationService serviceImplementation="org.jetbrains.kotlin.idea.quickfix.QuickFixes"/>
|
||||
|
||||
Reference in New Issue
Block a user