//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);
PreferenceConverter.setDefault(store, LINKED_POSITION_COLOR, PHPColorProvider.LINKED_POSITION_COLOR);
PreferenceConverter.setDefault(store, LINE_NUMBER_COLOR, PHPColorProvider.LINE_NUMBER_COLOR);
- store.setDefault(PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, "true");
+ store.setDefault(PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, "true"); //$NON-NLS-1$
PreferenceConverter.setDefault(store, PREFERENCE_COLOR_BACKGROUND, PHPColorProvider.BACKGROUND_COLOR);
+
+ store.setDefault(PHP_OUTLINE_CLASS, "true"); //$NON-NLS-1$
+ store.setDefault(PHP_OUTLINE_FUNC, "true"); //$NON-NLS-1$
+ store.setDefault(PHP_OUTLINE_VAR, "true"); //$NON-NLS-1$
TemplatePreferencePage.initDefaults(store);
}