Extended the builder with an index file generator for PHP class- and function-names.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / preferences / PHPPreferencesMessages.java
index 6088388..3ef3d5f 100644 (file)
@@ -4,11 +4,11 @@ import java.text.MessageFormat;
 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();
@@ -43,4 +43,10 @@ public class PHPPreferencesMessages {
   public static ResourceBundle getResourceBundle() {
     return resourceBundle;
   }
+  
+  public static void switchBundle() {
+       String resourceBundleName = store.getString(IPreferenceConstants.RESOURCE_BUNDLE);
+       resourceBundle = ResourceBundle.getBundle(resourceBundleName);
+       
+  }
 }