Search in sources :

Example 96 with ResourceBundle

use of java.util.ResourceBundle in project intellij-community by JetBrains.

the class TaskBundle method getBundle.

private static ResourceBundle getBundle() {
    ResourceBundle bundle = SoftReference.dereference(ourBundle);
    if (bundle == null) {
        bundle = ResourceBundle.getBundle(BUNDLE);
        ourBundle = new SoftReference<>(bundle);
    }
    return bundle;
}
Also used : ResourceBundle(java.util.ResourceBundle)

Example 97 with ResourceBundle

use of java.util.ResourceBundle in project intellij-community by JetBrains.

the class ProjectBundle method getBundle.

private static ResourceBundle getBundle() {
    ResourceBundle bundle = com.intellij.reference.SoftReference.dereference(ourBundle);
    if (bundle == null) {
        bundle = ResourceBundle.getBundle(BUNDLE);
        ourBundle = new SoftReference<>(bundle);
    }
    return bundle;
}
Also used : ResourceBundle(java.util.ResourceBundle)

Example 98 with ResourceBundle

use of java.util.ResourceBundle in project intellij-community by JetBrains.

the class GroovyCodeInsightBundle method getBundle.

private static ResourceBundle getBundle() {
    ResourceBundle bundle = com.intellij.reference.SoftReference.dereference(ourBundle);
    if (bundle == null) {
        bundle = ResourceBundle.getBundle(BUNDLE);
        ourBundle = new SoftReference<>(bundle);
    }
    return bundle;
}
Also used : ResourceBundle(java.util.ResourceBundle)

Example 99 with ResourceBundle

use of java.util.ResourceBundle in project intellij-community by JetBrains.

the class MavenDomBundle method getBundle.

private static ResourceBundle getBundle() {
    ResourceBundle bundle = com.intellij.reference.SoftReference.dereference(ourBundle);
    if (bundle == null) {
        bundle = ResourceBundle.getBundle(BUNDLE);
        ourBundle = new SoftReference<>(bundle);
    }
    return bundle;
}
Also used : ResourceBundle(java.util.ResourceBundle)

Example 100 with ResourceBundle

use of java.util.ResourceBundle in project intellij-community by JetBrains.

the class XmlBundle method getBundle.

private static ResourceBundle getBundle() {
    ResourceBundle bundle = com.intellij.reference.SoftReference.dereference(ourBundle);
    if (bundle == null) {
        bundle = ResourceBundle.getBundle(PATH_TO_BUNDLE);
        ourBundle = new SoftReference<>(bundle);
    }
    return bundle;
}
Also used : ResourceBundle(java.util.ResourceBundle)

Aggregations

ResourceBundle (java.util.ResourceBundle)1189 Locale (java.util.Locale)180 MissingResourceException (java.util.MissingResourceException)150 Test (org.junit.Test)100 ArrayList (java.util.ArrayList)71 HashMap (java.util.HashMap)70 IOException (java.io.IOException)67 PropertyResourceBundle (java.util.PropertyResourceBundle)56 URL (java.net.URL)48 File (java.io.File)47 Map (java.util.Map)45 InputStream (java.io.InputStream)43 Enumeration (java.util.Enumeration)34 HashSet (java.util.HashSet)30 Test (org.junit.jupiter.api.Test)30 ActionMessage (org.apache.struts.action.ActionMessage)29 MessageFormat (java.text.MessageFormat)28 ListResourceBundle (java.util.ListResourceBundle)28 Set (java.util.Set)26 Preferences (java.util.prefs.Preferences)21