mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
Fix MyBundle.messagePointer
to return Supplier<@Nls String>
instead of String
(#71)
This commit is contained in:
parent
2b3d7ea6d6
commit
692f21953e
@ -11,11 +11,11 @@ object MyBundle : AbstractBundle(BUNDLE) {
|
||||
|
||||
@Suppress("SpreadOperator")
|
||||
@JvmStatic
|
||||
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getMessage(key, *params)
|
||||
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) =
|
||||
getMessage(key, *params)
|
||||
|
||||
@Suppress("SpreadOperator")
|
||||
@JvmStatic
|
||||
fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = run {
|
||||
message(key, *params)
|
||||
}
|
||||
fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) =
|
||||
getLazyMessage(key, *params)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user