1. Fix #1589403 - wrap double/single quoted strings
authortoshihiro <toshihiro>
Fri, 6 Apr 2007 04:49:43 +0000 (04:49 +0000)
committertoshihiro <toshihiro>
Fri, 6 Apr 2007 04:49:43 +0000 (04:49 +0000)
2. Suppress 'Empty input' error message when opening preferences.

net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/JavaEditorPreferencePage.java
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java

index bfe24b5..c088d4e 100644 (file)
@@ -1381,7 +1381,8 @@ public class JavaEditorPreferencePage extends PreferencePage implements
 
                label = PreferencesMessages
                                .getString("JavaEditorPreferencePage.wrapStringsSQ");//$NON-NLS-1$
-               addCheckBox(group, label, PreferenceConstants.EDITOR_WRAP_STRINGS_SQ, 1);
+               button = addCheckBox(group, label,
+                               PreferenceConstants.EDITOR_WRAP_STRINGS_SQ, 1);
 
                label = PreferencesMessages
                                .getString("JavaEditorPreferencePage.escapeStringsSQ");
@@ -1967,6 +1968,7 @@ public class JavaEditorPreferencePage extends PreferencePage implements
                fTextFields.put(textControl, key);
                if (isNumber) {
                        fNumberFields.add(textControl);
+                       textControl.setText("0");
                        textControl.addModifyListener(fNumberFieldListener);
                } else {
                        textControl.addModifyListener(fTextFieldListener);
index c2b546c..16ea7d9 100644 (file)
@@ -948,7 +948,7 @@ public class PreferenceConstants {
         * 
         * @since 2.1
         */
-       public final static String EDITOR_WRAP_STRINGS_SQ = "wrapStringsDQ"; //$NON-NLS-1$
+       public final static String EDITOR_WRAP_STRINGS_SQ = "wrapStringsSQ"; //$NON-NLS-1$
 
        /**
         * A named preference that controls whether the 'escape strings' feature is