Class ExtMessages

java.lang.Object
com.singularsys.extensions.ExtMessages

public class ExtMessages extends Object
Class to handle externalized messages for the extensions package. Uses the bundle name "com.singularsys.extensions.message".

Note the format for missing resources is !key! which is used in FunctionSet.put(String, PostfixMathCommandI) and FunctionTable to check if a resource is missing.

  • Method Details

    • getString

      public static String getString(String key)
    • format

      public static String format(String key, Object... args)
      Gets a message and uses that to format its arguments.
      Parameters:
      key - key to message which is a format string used by MessageFormat.format(String, Object...)
      args - set of arguments to be passed to the format
      Returns:
      Message format applied to arguments