AbstractKotlinBundle: introduce withHtml

#KT-37483
This commit is contained in:
Dmitry Gridin
2020-03-16 15:15:10 +07:00
parent c7a21a094f
commit f12ed33a70
6 changed files with 15 additions and 13 deletions
@@ -17,7 +17,7 @@ object KotlinIdeaAnalysisBundle : AbstractKotlinBundle(BUNDLE) {
@JvmStatic
fun htmlMessage(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String =
"<html>" + getMessage(key, *params) + "</html>"
getMessage(key, *params).withHtml()
@JvmStatic
fun lazyMessage(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): () -> String = { getMessage(key, *params) }