PluginBundle.scala 510 字节
Newer Older
梦境迷离's avatar
梦境迷离 已提交
1
package org.bitlap.tools.plugin
I
IceMimosa 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

import com.intellij.DynamicBundle
import org.jetbrains.annotations.{ NotNull, PropertyKey }

/**
 * Mail: chk19940609@gmail.com
 * Created by IceMimosa
 * Date: 2021/6/30
 */
class PluginBundle extends DynamicBundle("messages.PluginBundle")

object PluginBundle {
  private val INSTANCE = new PluginBundle()

  def message(@NotNull @PropertyKey(resourceBundle = "messages.PluginBundle") key:String, @NotNull params: Any*): String = {
    INSTANCE.getMessage(key, params)
  }
}