i18n: replace KotlinBundleBase with AbstractKotlinBundle

This commit is contained in:
Dmitry Gridin
2020-03-04 17:33:40 +07:00
parent 0a3e577b6c
commit 7507d62ec3
13 changed files with 58 additions and 149 deletions
@@ -5,20 +5,14 @@
package org.jetbrains.kotlin.idea.debugger.coroutine
import com.intellij.CommonBundle
import org.jetbrains.annotations.NonNls
import org.jetbrains.annotations.PropertyKey
import org.jetbrains.kotlin.idea.core.util.KotlinBundleBase
import java.util.*
import org.jetbrains.kotlin.util.AbstractKotlinBundle
object KotlinDebuggerCoroutinesBundle : KotlinBundleBase() {
@NonNls
private const val BUNDLE = "messages.KotlinDebuggerCoroutinesBundle"
override fun createBundle(): ResourceBundle = ResourceBundle.getBundle(BUNDLE)
@NonNls
private const val BUNDLE = "messages.KotlinDebuggerCoroutinesBundle"
object KotlinDebuggerCoroutinesBundle : AbstractKotlinBundle(BUNDLE) {
@JvmStatic
fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any?): String {
return CommonBundle.message(bundle, key, *params)
}
fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params)
}