From: toshihiro Date: Fri, 6 Apr 2007 04:49:43 +0000 (+0000) Subject: 1. Fix #1589403 - wrap double/single quoted strings X-Git-Url: http://secure.phpeclipse.com?hp=dfe2cc96c8986eaa3e171dd6eead9afdf7e07b4d 1. Fix #1589403 - wrap double/single quoted strings 2. Suppress 'Empty input' error message when opening preferences. --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/JavaEditorPreferencePage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/JavaEditorPreferencePage.java index bfe24b5..c088d4e 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/JavaEditorPreferencePage.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/JavaEditorPreferencePage.java @@ -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); diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java index c2b546c..16ea7d9 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java @@ -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