//The shared instance.
private static PHPeclipsePlugin plugin;
//Resource bundle.
- private ResourceBundle resourceBundle;
+ //private ResourceBundle resourceBundle;
private ImageDescriptorRegistry fImageDescriptorRegistry;
private PHPDocumentProvider fCompilationUnitDocumentProvider;
super(descriptor);
plugin = this;
setJVM();
- try {
- resourceBundle = ResourceBundle.getBundle("net.sourceforge.PHPeclipsePluginResources");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
+// try {
+// resourceBundle = ResourceBundle.getBundle("net.sourceforge.PHPeclipsePluginResources");
+// } catch (MissingResourceException x) {
+// resourceBundle = null;
+// }
}
public static ImageDescriptorRegistry getImageDescriptorRegistry() {
* Returns the string from the plugin's resource bundle,
* or 'key' if not found.
*/
- public static String getResourceString(String key) {
- ResourceBundle bundle = PHPeclipsePlugin.getDefault().getResourceBundle();
- try {
- return bundle.getString(key);
- } catch (MissingResourceException e) {
- return key;
- }
- }
+// public static String getResourceString(String key) {
+// ResourceBundle bundle = PHPeclipsePlugin.getDefault().getResourceBundle();
+// try {
+// return bundle.getString(key);
+// } catch (MissingResourceException e) {
+// return key;
+// }
+// }
/**
* Returns the plugin's resource bundle,
*/
- public ResourceBundle getResourceBundle() {
- return resourceBundle;
- }
+// public ResourceBundle getResourceBundle() {
+// return resourceBundle;
+// }
protected void initializeDefaultPreferences(IPreferenceStore store) {
// windows preferences:
// show line numbers:
store.setDefault(LINE_NUMBER_RULER, "false");
+ store.setDefault(FORMATTER_TAB_SIZE, "4");
// php syntax highlighting
PreferenceConverter.setDefault(store, PHP_MULTILINE_COMMENT, PHPColorProvider.MULTI_LINE_COMMENT);