Examples of Messages


Examples of org.pentaho.reporting.libraries.base.util.Messages

      ed.pack();
      ed.setVisible(true);
    }
    catch (Exception e)
    {
      final Messages messages = new Messages
          (Locale.getDefault(), ConfigEditorBoot.BUNDLE_NAME, ObjectUtilities.getClassLoader(ConfigEditorBoot.class));
      final String message = messages.getString(
          "ConfigEditor.ERROR_0001_FAILED_TO_INITIALIZE"); //$NON-NLS-1$
      logger.debug(message, e);
      JOptionPane.showMessageDialog(null, message);
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.Messages

  }

  public static String getParameterType(final Type parameterType,
                                        final Locale locale)
  {
    final Messages messages = new Messages(locale);
    if (parameterType.isFlagSet(Type.DATE_TYPE))
    {
      return messages.getString("Type.Date");
    }
    else if (parameterType.isFlagSet(Type.LOGICAL_TYPE))
    {
      return messages.getString("Type.Logical");
    }
    if (parameterType.isFlagSet(Type.DATETIME_TYPE))
    {
      return messages.getString("Type.Datetime");
    }
    if (parameterType.isFlagSet(Type.NUMERIC_TYPE))
    {
      return messages.getString("Type.Number");
    }
    if (parameterType.isFlagSet(Type.NUMERIC_SEQUENCE_TYPE))
    {
      return messages.getString("Type.NumberSequence");
    }
    if (parameterType.isFlagSet(Type.NUMERIC_UNIT))
    {
      return messages.getString("Type.Unit");
    }
    else if (parameterType.isFlagSet(Type.TEXT_TYPE))
    {
      return messages.getString("Type.Text");
    }
    else if (parameterType.isFlagSet(Type.ANY_TYPE))
    {
      return messages.getString("Type.AnyType");
    }
    return messages.getString("Type.Invalid");
  }
View Full Code Here

Examples of play.i18n.Messages

    @Override
    protected String internalRender(Map<String, Object> args) {
        compile();
        Binding binding = new Binding(args);
        binding.setVariable("play", new Play());
        binding.setVariable("messages", new Messages());
        binding.setVariable("lang", Lang.get());
        // If current response-object is present, add _response_encoding'
        Http.Response currentResponse = Http.Response.current();
        if (currentResponse != null) {
            binding.setVariable("_response_encoding", currentResponse.encoding);
View Full Code Here

Examples of yalp.i18n.Messages

    @Override
    protected String internalRender(Map<String, Object> args) {
        compile();
        Binding binding = new Binding(args);
        binding.setVariable("yalp", new Yalp());
        binding.setVariable("messages", new Messages());
        binding.setVariable("lang", Lang.get());
        // If current response-object is present, add _response_encoding'
        Http.Response currentResponse = Http.Response.current();
        if (currentResponse != null) {
            binding.setVariable("_response_encoding", currentResponse.encoding);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.