Examples of PropertyResourceBundle


Examples of java.util.PropertyResourceBundle

                mappingsURL = null;
                String message = "Unable to find " + mappingsURL + " Defaulting to a blank string."; //$NON-NLS-1$
                this.getLog().log(new Status(IStatus.ERROR, ID, 0, message, e));
            }
        }
        PropertyResourceBundle bundle = null;
        if (mappingsURL != null) {
            InputStream is = null;
            try {
                is = mappingsURL.openStream();
                bundle = new PropertyResourceBundle(is);
            } catch (IOException e) {
                bundle = null;
                String message = "Unable to parse version from about.mappings file. Defaulting to a blank string."; //$NON-NLS-1$
                this.getLog().log(new Status(IStatus.ERROR, ID, 0, message, e));
            } finally {
                try {
                    if (is != null)
                        is.close();
                } catch (IOException e) {
                }
            }
        }

        if (bundle != null) {
            this.version = bundle.getString(UDIG_VERSION_KEY);
        }
    }
View Full Code Here

Examples of org.uengine.util.resources.PropertyResourceBundle

     
      key = key.replaceAll("_", " ");
     
      if (!webMessageBundles.containsKey(language)) {
        Locale locale = new Locale(language);
        PropertyResourceBundle propertyResourceBundle = (PropertyResourceBundle) PropertyResourceBundle.getBundle("org.uengine.messages", locale, GlobalContext.getClassLoader());
       
        if (!propertyResourceBundle.getLocale().getLanguage().equals(language)) return key;
       
        webMessageBundles.put(language, propertyResourceBundle);
      }
      ResourceBundle webMessageBundle = (ResourceBundle) webMessageBundles.get(language);
     
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.