Examples of ResourceBundle


Examples of java.util.ResourceBundle

          tabText = String.valueOf(o);
        }
      }
      if (StringUtils.isEmpty(tabText))
      {
        final ResourceBundle bundle = ResourceBundle.getBundle
            ("org.pentaho.reporting.engine.classic.extensions.drilldown.messages");
        tabText = bundle.getString("UnnamedTab");
      }
    }

    final boolean tabActive;
    if (parameters.getParameterCount() == 3)
View Full Code Here

Examples of java.util.ResourceBundle

   *
   * @return a system properties table.
   */
  public static JTable createSystemPropertiesTable()
  {
    final ResourceBundle resources = ResourceBundle.getBundle(SwingPreviewModule.BUNDLE_NAME);

    final String[] names = new String[]{
        resources.getString("system-properties-table.column.name"),
        resources.getString("system-properties-table.column.value"),};

    final Properties sysProps = System.getProperties();

    final TreeMap data = new TreeMap(sysProps);
    final Map.Entry[] entries = (Map.Entry[]) data.entrySet().toArray(new Map.Entry[data.size()]);
View Full Code Here

Examples of java.util.ResourceBundle

    initialize();
  }

  private void initialize()
  {
    final ResourceBundle resources = ResourceBundle.getBundle(SwingCommonModule.BUNDLE_NAME);
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);

    addWindowListener(new WindowCloseHandler());

    cancelAction = new CancelAction(resources);
View Full Code Here

Examples of java.util.ResourceBundle

  public void initialize(final SubSystem subSystem) throws ModuleInitializeException
  {
    if (subSystem.getExtendedConfig().getBoolProperty(
        "org.pentaho.reporting.engine.classic.core.modules.gui.base.SwingDialogTranslation")) //$NON-NLS-1$
    {
      final ResourceBundle resources = ResourceBundle.getBundle(SwingCommonModule.BUNDLE_NAME);
      final UIDefaults defaults = UIManager.getDefaults();
      final Enumeration en = resources.getKeys();
      while (en.hasMoreElements())
      {
        try
        {
          final String keyName = (String) en.nextElement();
          defaults.put(keyName, resources.getObject(keyName));
        }
        catch (Exception e)
        {
          // Ignored; if it happens, we would not care that much ..
        }
View Full Code Here

Examples of java.util.ResourceBundle

  public void propertyChange(final PropertyChangeEvent evt)
  {
    try
    {
      final Locale locale = target.getLocale();
      final ResourceBundle bundle =
          ResourceBundle.getBundle(resourceBundleName, locale);
      final String string = bundle.getString(resourceKey);
      target.setText(string);
    }
    catch (IllegalComponentStateException ice)
    {
      target.setText(messages.getString("USER_NO_PARENT_ERROR", resourceKey)); //$NON-NLS-1$
View Full Code Here

Examples of java.util.ResourceBundle

        return null;
      }

      final ResourceBundleFactory resourceBundleFactory =
          runtime.getResourceBundleFactory();
      final ResourceBundle bundle =
          resourceBundleFactory.getResourceBundle(resourceId);
      if (bundle != null)
      {
        return bundle.getObject(svalue);
      }
    }
    catch (Exception e)
    {
      // on errors return null.
View Full Code Here

Examples of java.util.ResourceBundle

    try
    {
      final ResourceBundleFactory resourceBundleFactory =
          runtime.getResourceBundleFactory();
      final ResourceBundle bundle =
          resourceBundleFactory.getResourceBundle(resourceId);

      // update the format string, if neccessary ...
      if (ObjectUtilities.equal(formatKey, appliedFormatKey) == false)
      {
        final String newFormatString = bundle.getString(formatKey);
        messageFormatSupport.setFormatString(newFormatString);
        appliedFormatKey = formatKey;
      }

      messageFormatSupport.setLocale(resourceBundleFactory.getLocale());
View Full Code Here

Examples of java.util.ResourceBundle

   * @return the formatted message.
   */
  public Object getValue()
  {
    final ResourceBundleFactory resourceBundleFactory = getResourceBundleFactory();
    final ResourceBundle bundle;
    if (resourceIdentifier == null)
    {
      bundle = ExpressionUtilities.getDefaultResourceBundle(this);
    }
    else
    {
      bundle = resourceBundleFactory.getResourceBundle(resourceIdentifier);
    }

    final String newFormatString = bundle.getString(formatKey);
    messageFormatSupport.setFormatString(newFormatString);
    messageFormatSupport.setLocale(resourceBundleFactory.getLocale());
    return messageFormatSupport.performFormat(getDataRow());
  }
View Full Code Here

Examples of java.util.ResourceBundle

    }

    try
    {
      final ResourceBundleFactory resourceBundleFactory = runtime.getResourceBundleFactory();
      final ResourceBundle bundle = resourceBundleFactory.getResourceBundle(resourceId);
      if (bundle != null)
      {
        return bundle.getString(resourceKey);
      }
    }
    catch (Exception e)
    {
      // on errors return null.
View Full Code Here

Examples of java.util.ResourceBundle

    {
      return null;
    }

    final ResourceBundleFactory resourceBundleFactory = getResourceBundleFactory();
    final ResourceBundle bundle;
    if (resourceIdentifier == null)
    {
      bundle = ExpressionUtilities.getDefaultResourceBundle(this);
    }
    else
    {
      bundle = resourceBundleFactory.getResourceBundle(resourceIdentifier);
    }
    return bundle.getObject(String.valueOf(key));
  }
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.