Editor won't open on my system since it can't find a
localized version of the resource bundle. By adding a
local version of the resource bundle it works fine. But
it should fall back on default if a local version isn't
available.
public static ResourceBundle getResourceBundle() {
if (resource == null) {
resource =
ResourceBundle.getBundle("org.vivianj.eclipse.plugin.buildfile.util.resource");
}
return resource;
}
This will automatically try to find a localized bundle
before the non-localized one, so the current hack with the
language is unnecessary anyway (read the JavaDoc for
public static ResourceBundle getBundle(String baseName,
Locale locale, ClassLoader loader))
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
Change util/Resource.java:
public static ResourceBundle getResourceBundle() {
if (resource == null) {
resource =
ResourceBundle.getBundle("org.vivianj.eclipse.plugin.buildfile.util.resource");
}
return resource;
}
This will automatically try to find a localized bundle
before the non-localized one, so the current hack with the
language is unnecessary anyway (read the JavaDoc for
public static ResourceBundle getBundle(String baseName,
Locale locale, ClassLoader loader))