You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
563 B
19 lines
563 B
package org.jetbrains.plugins.template
|
|
|
|
import com.intellij.DynamicBundle
|
|
import org.jetbrains.annotations.NonNls
|
|
import org.jetbrains.annotations.PropertyKey
|
|
|
|
@NonNls
|
|
private const val BUNDLE = "messages.TemplateBundle"
|
|
|
|
object TemplateBundle : DynamicBundle(BUNDLE) {
|
|
|
|
@JvmStatic
|
|
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params)
|
|
|
|
@JvmStatic
|
|
fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): () -> String = { message(key, *params) }
|
|
|
|
}
|