import java.util.MissingResourceException;
import java.util.ResourceBundle;
-import org.eclipse.jface.preference.IPreferenceStore;
-
import net.sourceforge.phpeclipse.IPreferenceConstants;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
+import org.eclipse.jface.preference.IPreferenceStore;
+
public class PHPPreferencesMessages {
static IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
public static ResourceBundle getResourceBundle() {
return resourceBundle;
}
+
+ public static void switchBundle() {
+ String resourceBundleName = store.getString(IPreferenceConstants.RESOURCE_BUNDLE);
+ resourceBundle = ResourceBundle.getBundle(resourceBundleName);
+
+ }
}