X-Git-Url: http://secure.phpeclipse.com 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..5ba18bc 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java @@ -17,6 +17,7 @@ import net.sourceforge.phpeclipse.IPreferenceConstants; import net.sourceforge.phpeclipse.PHPeclipsePlugin; import net.sourceforge.phpeclipse.phpeditor.util.PHPColorProvider; +import org.eclipse.core.runtime.Platform; import org.eclipse.jface.action.Action; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.preference.PreferenceConverter; @@ -34,7 +35,7 @@ import org.eclipse.ui.texteditor.AbstractTextEditor; * Preference constants used in the JDT-UI preference store. Clients should only * read the JDT-UI preference store using these values. Clients are not allowed * to modify the preference store programmatically. - * + * * @since 2.0 */ public class PreferenceConstants { @@ -79,7 +80,7 @@ public class PreferenceConstants { *

* Value is of type Boolean. *

- * + * * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW */ public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "net.sourceforge.phpdt.ui.compresspackagenames"; //$NON-NLS-1$ @@ -91,7 +92,7 @@ public class PreferenceConstants { * Value is of type Boolean: if true empty * inner packages are folded. *

- * + * * @since 2.1 */ public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "net.sourceforge.phpdt.ui.flatPackagesInPackageExplorer"; //$NON-NLS-1$ @@ -114,7 +115,7 @@ public class PreferenceConstants { *
  • SF : Static Fields
  • * *

    - * + * * @since 2.1 */ public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$ @@ -133,7 +134,7 @@ public class PreferenceConstants { *
  • D : Default
  • * *

    - * + * * @since 3.0 */ public static final String APPEARANCE_VISIBILITY_SORT_ORDER = "net.sourceforge.phpdt.ui.visibility.order"; //$NON-NLS-1$ @@ -144,7 +145,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER = "net.sourceforge.phpdt.ui.enable.visibility.order"; //$NON-NLS-1$ @@ -164,7 +165,7 @@ public class PreferenceConstants { *

    * Value is of type String: comma separated list of prefixed *

    - * + * * @see #CODEGEN_USE_GETTERSETTER_PREFIX */ public static final String CODEGEN_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.list"; //$NON-NLS-1$ @@ -184,7 +185,7 @@ public class PreferenceConstants { *

    * Value is of type String: comma separated list of suffixes *

    - * + * * @see #CODEGEN_USE_GETTERSETTER_SUFFIX */ public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$ @@ -195,7 +196,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String CODEGEN_KEYWORD_THIS = "org.eclipse.jdt.ui.keywordthis"; //$NON-NLS-1$ @@ -207,7 +208,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String CODEGEN_IS_FOR_GETTERS = "org.eclipse.jdt.ui.gettersetter.use.is"; //$NON-NLS-1$ @@ -218,7 +219,7 @@ public class PreferenceConstants { *

    * Value is of type String. *

    - * + * * @since 3.0 */ public static final String CODEGEN_EXCEPTION_VAR_NAME = "org.eclipse.jdt.ui.exception.name"; //$NON-NLS-1$ @@ -229,7 +230,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public static final String CODEGEN_ADD_COMMENTS = "net.sourceforge.phpdt.ui.phpdoc"; //$NON-NLS-1$ @@ -240,7 +241,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @deprecated Use CODEGEN_ADD_COMMENTS instead (Name is more precise). */ // public static final String CODEGEN__JAVADOC_STUBS = CODEGEN_ADD_COMMENTS; @@ -326,7 +327,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public static final String LINK_BROWSING_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$ @@ -349,7 +350,7 @@ public class PreferenceConstants { *

    * Value is of type String. *

    - * + * * @see #SRCBIN_FOLDERS_IN_NEWPROJ */ public static final String SRCBIN_SRCNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$ @@ -361,7 +362,7 @@ public class PreferenceConstants { *

    * Value is of type String. *

    - * + * * @see #SRCBIN_FOLDERS_IN_NEWPROJ */ public static final String SRCBIN_BINNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$ @@ -381,7 +382,7 @@ public class PreferenceConstants { * to decode the description and the array of classpath entries from an * encoded string. *

    - * + * * @see #NEWPROJECT_JRELIBRARY_INDEX * @see #encodeJRELibrary(String, IClasspathEntry[]) * @see #decodeJRELibraryDescription(String) @@ -395,7 +396,7 @@ public class PreferenceConstants { * Value is of type Int: an index into the list of possible * JRE libraries. *

    - * + * * @see #NEWPROJECT_JRELIBRARY_LIST */ public static final String NEWPROJECT_JRELIBRARY_INDEX = "net.sourceforge.phpdt.ui.wizards.jre.index"; //$NON-NLS-1$ @@ -409,7 +410,7 @@ public class PreferenceConstants { * or * OPEN_TYPE_HIERARCHY_IN_VIEW_PART. *

    - * + * * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART */ @@ -418,7 +419,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * OPEN_TYPE_HIERARCHY. - * + * * @see #OPEN_TYPE_HIERARCHY */ public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$ @@ -426,7 +427,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * OPEN_TYPE_HIERARCHY. - * + * * @see #OPEN_TYPE_HIERARCHY */ public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$ @@ -440,7 +441,7 @@ public class PreferenceConstants { * or * DOUBLE_CLICK_EXPANDS. *

    - * + * * @see #DOUBLE_CLICK_EXPANDS * @see #DOUBLE_CLICK_GOES_INTO */ @@ -448,14 +449,14 @@ public class PreferenceConstants { /** * A string value used by the named preference DOUBLE_CLICK. - * + * * @see #DOUBLE_CLICK */ public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$ /** * A string value used by the named preference DOUBLE_CLICK. - * + * * @see #DOUBLE_CLICK */ public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$ @@ -469,7 +470,7 @@ public class PreferenceConstants { * or * UPDATE_WHILE_EDITING. *

    - * + * * @see #UPDATE_ON_SAVE * @see #UPDATE_WHILE_EDITING */ @@ -478,7 +479,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * UPDATE_JAVA_VIEWS - * + * * @see #UPDATE_JAVA_VIEWS */ public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$ @@ -486,7 +487,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * UPDATE_JAVA_VIEWS - * + * * @see #UPDATE_JAVA_VIEWS */ public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$ @@ -503,7 +504,7 @@ public class PreferenceConstants { /** * A named preference that defines whether hint to make hover sticky should * be shown. - * + * * @see JavaUI * @since 3.0 */ @@ -511,7 +512,7 @@ public class PreferenceConstants { /** * A named preference that defines the key for the hover modifiers. - * + * * @see JavaUI * @since 2.1 */ @@ -520,7 +521,7 @@ public class PreferenceConstants { /** * The id of the best match hover contributed for extension point * javaEditorTextHovers. - * + * * @since 2.1 */ public static String ID_BESTMATCH_HOVER = "net.sourceforge.phpdt.ui.BestMatchHover"; //$NON-NLS-1$ @@ -528,7 +529,7 @@ public class PreferenceConstants { /** * The id of the source code hover contributed for extension point * javaEditorTextHovers. - * + * * @since 2.1 */ public static String ID_SOURCE_HOVER = "net.sourceforge.phpdt.ui.JavaSourceHover"; //$NON-NLS-1$ @@ -536,7 +537,7 @@ public class PreferenceConstants { /** * The id of the problem hover contributed for extension point * javaEditorTextHovers. - * + * * @since 2.1 */ public static String ID_PROBLEM_HOVER = "net.sourceforge.phpdt.ui.ProblemHover"; //$NON-NLS-1$ @@ -557,7 +558,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -579,7 +580,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -600,7 +601,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -617,7 +618,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -651,7 +652,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$ @@ -681,7 +682,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see #EDITOR_PROBLEM_INDICATION * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter @@ -705,7 +706,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see #EDITOR_WARNING_INDICATION * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter @@ -727,7 +728,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see #EDITOR_TASK_INDICATION * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter @@ -740,7 +741,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$ @@ -752,7 +753,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see #EDITOR_BOOKMARK_INDICATION * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter @@ -766,7 +767,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$ @@ -777,7 +778,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see #EDITOR_SEARCH_RESULT_INDICATION * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter @@ -791,7 +792,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$ @@ -803,7 +804,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see #EDITOR_UNKNOWN_INDICATION * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter @@ -817,7 +818,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$ @@ -828,7 +829,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$ @@ -839,7 +840,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$ @@ -850,7 +851,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$ @@ -861,7 +862,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$ @@ -872,7 +873,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$ @@ -901,7 +902,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$ @@ -912,7 +913,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_WRAP_WORDS = "wrapWords"; //$NON-NLS-1$ @@ -923,7 +924,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_WRAP_STRINGS_DQ = "wrapStringsDQ"; //$NON-NLS-1$ @@ -934,7 +935,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String EDITOR_ESCAPE_STRINGS_DQ = "escapeStringsDQ"; //$NON-NLS-1$ @@ -945,10 +946,10 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @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 @@ -956,7 +957,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String EDITOR_ESCAPE_STRINGS_SQ = "escapeStringsSQ"; //$NON-NLS-1$ @@ -967,7 +968,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String CODEASSIST_PREFIX_COMPLETION = "content_assist_prefix_completion"; //$NON-NLS-1$ @@ -978,7 +979,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$ @@ -989,7 +990,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$ @@ -1000,7 +1001,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$ @@ -1011,7 +1012,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$ @@ -1022,7 +1023,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$ @@ -1033,7 +1034,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$ @@ -1044,7 +1045,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$ @@ -1055,7 +1056,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END; @@ -1066,7 +1067,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String EDITOR_SUB_WORD_NAVIGATION = "subWordNavigation"; //$NON-NLS-1$ @@ -1090,36 +1091,13 @@ public class PreferenceConstants { public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$ /** - * A named preference that controls if the line number ruler is shown in the - * UI. - *

    - * Value is of type Boolean. - *

    - */ - public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$ - - /** - * A named preference that holds the color used to render line numbers - * inside the line number ruler. - *

    - * Value is of type String. A RGB color value encoded as a - * string using class PreferenceConverter - *

    - * - * @see org.eclipse.jface.resource.StringConverter - * @see org.eclipse.jface.preference.PreferenceConverter - * @see #EDITOR_LINE_NUMBER_RULER - */ - public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$ - - /** * A named preference that holds the color used to render linked positions * inside code templates. *

    * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1131,7 +1109,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1152,7 +1130,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1178,13 +1156,23 @@ public class PreferenceConstants { public static final String EDITOR_ITALIC_SUFFIX = "_italic"; //$NON-NLS-1$ /** + * Preference key suffix for bold text style preference keys. + */ + public static final String EDITOR_UNDERLINE_SUFFIX = "_underline"; //$NON-NLS-1$ + + /** + * Preference key suffix for bold text style preference keys. + */ + public static final String EDITOR_STRIKETHROUGH_SUFFIX = "_strikethrough"; //$NON-NLS-1$ + + /** * A named preference that holds the color used to render multi line * comments. *

    * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1193,7 +1181,7 @@ public class PreferenceConstants { /** * The symbolic font name for the Java editor text font (value * "net.sourceforge.phpdt.ui.editors.textfont"). - * + * * @since 2.1 */ public final static String EDITOR_TEXT_FONT = "net.sourceforge.phpdt.ui.editors.textfont"; //$NON-NLS-1$ @@ -1207,8 +1195,10 @@ public class PreferenceConstants { * rendered using no font style attribute. *

    */ - public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_MULTI_LINE_COMMENT_ITALIC = IPreferenceConstants.PHP_MULTILINE_COMMENT + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_MULTI_LINE_COMMENT_UNDERLINE = IPreferenceConstants.PHP_MULTILINE_COMMENT + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_MULTI_LINE_COMMENT_STRIKETHROUGH = IPreferenceConstants.PHP_MULTILINE_COMMENT + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render single line @@ -1217,14 +1207,14 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT; /** - * A named preference that controls whether sinle line comments are rendered + * A named preference that controls whether single line comments are rendered * in bold. *

    * Value is of type Boolean. If true single @@ -1232,8 +1222,10 @@ public class PreferenceConstants { * rendered using no font style attribute. *

    */ - public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_SINGLE_LINE_COMMENT_ITALIC = IPreferenceConstants.PHP_SINGLELINE_COMMENT + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_SINGLE_LINE_COMMENT_UNDERLINE = IPreferenceConstants.PHP_SINGLELINE_COMMENT + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_SINGLE_LINE_COMMENT_STRIKETHROUGH = IPreferenceConstants.PHP_SINGLELINE_COMMENT + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render operators and @@ -1242,7 +1234,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter * @since 3.0 @@ -1255,23 +1247,13 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * - * @since 3.0 - */ - public final static String EDITOR_PHP_OPERATOR_BOLD = IPreferenceConstants.PHP_OPERATOR - + EDITOR_BOLD_SUFFIX; - - /** - * A named preference that controls whether operators and brackets are - * rendered in italic. - *

    - * Value is of type Boolean. - *

    - * + * * @since 3.0 */ - public final static String EDITOR_PHP_OPERATOR_ITALIC = IPreferenceConstants.PHP_OPERATOR - + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_OPERATOR_BOLD = IPreferenceConstants.PHP_OPERATOR + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_OPERATOR_ITALIC = IPreferenceConstants.PHP_OPERATOR + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_OPERATOR_UNDERLINE = IPreferenceConstants.PHP_OPERATOR + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_OPERATOR_STRIKETHROUGH = IPreferenceConstants.PHP_OPERATOR + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render operators and @@ -1280,7 +1262,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter * @since 3.0 @@ -1293,23 +1275,13 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * - * @since 3.0 - */ - public final static String EDITOR_PHP_BRACE_OPERATOR_BOLD = IPreferenceConstants.PHP_BRACE_OPERATOR - + EDITOR_BOLD_SUFFIX; - - /** - * A named preference that controls whether operators and brackets are - * rendered in italic. - *

    - * Value is of type Boolean. - *

    - * + * * @since 3.0 */ - public final static String EDITOR_PHP_BRACE_OPERATOR_ITALIC = IPreferenceConstants.PHP_BRACE_OPERATOR - + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_BRACE_OPERATOR_BOLD = IPreferenceConstants.PHP_BRACE_OPERATOR + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_BRACE_OPERATOR_ITALIC = IPreferenceConstants.PHP_BRACE_OPERATOR + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_BRACE_OPERATOR_UNDERLINE = IPreferenceConstants.PHP_BRACE_OPERATOR + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_BRACE_OPERATOR_STRIKETHROUGH = IPreferenceConstants.PHP_BRACE_OPERATOR + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render the 'return' @@ -1318,7 +1290,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter * @since 3.0 @@ -1331,23 +1303,13 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * - * @since 3.0 - */ - public final static String EDITOR_PHP_KEYWORD_RETURN_BOLD = IPreferenceConstants.PHP_KEYWORD_RETURN - + EDITOR_BOLD_SUFFIX; - - /** - * A named preference that controls whether 'return' keyword is rendered in - * italic. - *

    - * Value is of type Boolean. - *

    - * + * * @since 3.0 */ - public final static String EDITOR_PHP_KEYWORD_RETURN_ITALIC = IPreferenceConstants.PHP_KEYWORD_RETURN - + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_KEYWORD_RETURN_BOLD = IPreferenceConstants.PHP_KEYWORD_RETURN + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_KEYWORD_RETURN_ITALIC = IPreferenceConstants.PHP_KEYWORD_RETURN + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_KEYWORD_RETURN_UNDERLINE = IPreferenceConstants.PHP_KEYWORD_RETURN + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_KEYWORD_RETURN_STRIKETHROUGH = IPreferenceConstants.PHP_KEYWORD_RETURN + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render php start and stop @@ -1356,7 +1318,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1369,8 +1331,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_PHP_TAG_BOLD = IPreferenceConstants.PHP_TAG - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_TAG_BOLD = IPreferenceConstants.PHP_TAG + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_TAG_ITALIC = IPreferenceConstants.PHP_TAG + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_TAG_UNDERLINE = IPreferenceConstants.PHP_TAG + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_TAG_STRIKETHROUGH = IPreferenceConstants.PHP_TAG + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render php keywords. @@ -1378,7 +1342,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1390,8 +1354,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVA_KEYWORD_ITALIC = IPreferenceConstants.PHP_KEYWORD + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_JAVA_KEYWORD_UNDERLINE = IPreferenceConstants.PHP_KEYWORD + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_JAVA_KEYWORD_STRIKETHROUGH = IPreferenceConstants.PHP_KEYWORD + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render predefined php @@ -1400,7 +1366,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1413,8 +1379,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_FUNCTIONNAME_ITALIC = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_FUNCTIONNAME_UNDERLINE = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_FUNCTIONNAME_STRIKETHROUGH = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render php variables with @@ -1423,7 +1391,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1436,8 +1404,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_PHP_VARIABLE_DOLLAR_BOLD = IPreferenceConstants.PHP_VARIABLE_DOLLAR - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_VARIABLE_DOLLAR_BOLD = IPreferenceConstants.PHP_VARIABLE_DOLLAR + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_VARIABLE_DOLLAR_ITALIC = IPreferenceConstants.PHP_VARIABLE_DOLLAR + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_VARIABLE_DOLLAR_UNDERLINE = IPreferenceConstants.PHP_VARIABLE_DOLLAR + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_VARIABLE_DOLLAR_STRIKETHROUGH = IPreferenceConstants.PHP_VARIABLE_DOLLAR + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render php variables. @@ -1445,7 +1415,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1457,8 +1427,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_VARIABLE_ITALIC = IPreferenceConstants.PHP_VARIABLE + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_VARIABLE_UNDERLINE = IPreferenceConstants.PHP_VARIABLE + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_VARIABLE_STRIKETHROUGH = IPreferenceConstants.PHP_VARIABLE + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render php constants. @@ -1466,7 +1438,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1478,8 +1450,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_CONSTANT_ITALIC = IPreferenceConstants.PHP_CONSTANT + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_CONSTANT_UNDERLINE = IPreferenceConstants.PHP_CONSTANT + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_CONSTANT_STRIKETHROUGH = IPreferenceConstants.PHP_CONSTANT + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render php types. @@ -1487,7 +1461,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1499,8 +1473,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_PHP_TYPE_ITALIC = IPreferenceConstants.PHP_TYPE + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_PHP_TYPE_UNDERLINE = IPreferenceConstants.PHP_TYPE + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_PHP_TYPE_STRIKETHROUGH = IPreferenceConstants.PHP_TYPE + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render string constants. @@ -1508,7 +1484,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1521,8 +1497,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_STRING_BOLD_DQ = IPreferenceConstants.PHP_STRING_DQ - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_STRING_BOLD_DQ = IPreferenceConstants.PHP_STRING_DQ + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_STRING_ITALIC_DQ = IPreferenceConstants.PHP_STRING_DQ + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_STRING_UNDERLINE_DQ = IPreferenceConstants.PHP_STRING_DQ + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_STRING_STRIKETHROUGH_DQ = IPreferenceConstants.PHP_STRING_DQ + EDITOR_STRIKETHROUGH_SUFFIX; public final static String EDITOR_STRING_COLOR_SQ = IPreferenceConstants.PHP_STRING_SQ; @@ -1533,8 +1511,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_STRING_BOLD_SQ = IPreferenceConstants.PHP_STRING_SQ - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_STRING_BOLD_SQ = IPreferenceConstants.PHP_STRING_SQ + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_STRING_ITALIC_SQ = IPreferenceConstants.PHP_STRING_SQ + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_STRING_UNDERLINE_SQ = IPreferenceConstants.PHP_STRING_SQ + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_STRING_STRIKETHROUGH_SQ = IPreferenceConstants.PHP_STRING_SQ + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render php default text. @@ -1542,7 +1522,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1555,8 +1535,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVA_DEFAULT_ITALIC = IPreferenceConstants.PHP_DEFAULT + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_JAVA_DEFAULT_UNDERLINE = IPreferenceConstants.PHP_DEFAULT + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_JAVA_DEFAULT_STRIKETHROUGH = IPreferenceConstants.PHP_DEFAULT + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render task tags. @@ -1564,7 +1546,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter * @since 2.1 @@ -1576,11 +1558,13 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ - public final static String EDITOR_TASK_TAG_BOLD = IPreferenceConstants.TASK_TAG - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_TASK_TAG_BOLD = IPreferenceConstants.TASK_TAG + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_TASK_TAG_ITALIC = IPreferenceConstants.TASK_TAG + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_TASK_TAG_UNDERLINE = IPreferenceConstants.TASK_TAG + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_TASK_TAG_STRIKETHROUGH = IPreferenceConstants.TASK_TAG + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render phpdoc keywords. @@ -1588,7 +1572,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1601,8 +1585,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVADOC_KEYWORD_ITALIC = IPreferenceConstants.PHPDOC_KEYWORD + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_JAVADOC_KEYWORD_UNDERLINE = IPreferenceConstants.PHPDOC_KEYWORD + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_JAVADOC_KEYWORD_STRIKETHROUGH = IPreferenceConstants.PHPDOC_KEYWORD + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render phpdoc tags. @@ -1610,7 +1596,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1623,8 +1609,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVADOC_TAG_ITALIC = IPreferenceConstants.PHPDOC_TAG + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_JAVADOC_TAG_UNDERLINE = IPreferenceConstants.PHPDOC_TAG + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_JAVADOC_TAG_STRIKETHROUGH = IPreferenceConstants.PHPDOC_TAG + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render phpdoc links. @@ -1632,7 +1620,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1645,8 +1633,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVADOC_LINKS_ITALIC = IPreferenceConstants.PHPDOC_LINK + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_JAVADOC_LINKS_UNDERLINE = IPreferenceConstants.PHPDOC_LINK + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_JAVADOC_LINKS_STRIKETHROUGH = IPreferenceConstants.PHPDOC_LINK + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used to render phpdoc default @@ -1655,7 +1645,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -1668,8 +1658,10 @@ public class PreferenceConstants { * Value is of type Boolean. *

    */ - public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT - + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT + EDITOR_BOLD_SUFFIX; + public final static String EDITOR_JAVADOC_DEFAULT_ITALIC = IPreferenceConstants.PHPDOC_DEFAULT + EDITOR_ITALIC_SUFFIX; + public final static String EDITOR_JAVADOC_DEFAULT_UNDERLINE = IPreferenceConstants.PHPDOC_DEFAULT + EDITOR_UNDERLINE_SUFFIX; + public final static String EDITOR_JAVADOC_DEFAULT_STRIKETHROUGH = IPreferenceConstants.PHPDOC_DEFAULT + EDITOR_STRIKETHROUGH_SUFFIX; /** * A named preference that holds the color used for 'linked-mode' underline. @@ -1677,7 +1669,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter * @since 2.1 @@ -1702,7 +1694,7 @@ public class PreferenceConstants { * or EDITOR_DEFAULT_HOVER_CONFIGURED_ID or the hover id of a * hover contributed as phpEditorTextHovers. *

    - * + * * @see #EDITOR_NO_HOVER_CONFIGURED_ID * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID * @see JavaUI @@ -1719,7 +1711,7 @@ public class PreferenceConstants { * or EDITOR_DEFAULT_HOVER_CONFIGURED_ID or the hover id of a * hover contributed as phpEditorTextHovers. *

    - * + * * @see #EDITOR_NO_HOVER_CONFIGURED_ID * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID * @see JavaUI @@ -1736,7 +1728,7 @@ public class PreferenceConstants { * or EDITOR_DEFAULT_HOVER_CONFIGURED_ID or the hover id of a * hover contributed as phpEditorTextHovers. *

    - * + * * @see #EDITOR_NO_HOVER_CONFIGURED_ID * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID * @see JavaUI ID_*_HOVER @@ -1753,7 +1745,7 @@ public class PreferenceConstants { * or EDITOR_DEFAULT_HOVER_CONFIGURED_ID or the hover id of a * hover contributed as phpEditorTextHovers. *

    - * + * * @see #EDITOR_NO_HOVER_CONFIGURED_ID * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID * @see JavaUI ID_*_HOVER @@ -1770,7 +1762,7 @@ public class PreferenceConstants { * or EDITOR_DEFAULT_HOVER_CONFIGURED_ID or the hover id of a * hover contributed as phpEditorTextHovers. *

    - * + * * @see #EDITOR_NO_HOVER_CONFIGURED_ID * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID * @see JavaUI ID_*_HOVER @@ -1787,7 +1779,7 @@ public class PreferenceConstants { * or EDITOR_DEFAULT_HOVER_CONFIGURED_ID or the hover id of a * hover contributed as phpEditorTextHovers. *

    - * + * * @see #EDITOR_NO_HOVER_CONFIGURED_ID * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID * @see JavaUI ID_*_HOVER @@ -1804,7 +1796,7 @@ public class PreferenceConstants { * EDITOR_DEFAULT_HOVER_CONFIGURED_ID or the hover id of a * hover contributed as phpEditorTextHovers. *

    - * + * * @see #EDITOR_NO_HOVER_CONFIGURED_ID * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID * @see JavaUI ID_*_HOVER @@ -1815,7 +1807,7 @@ public class PreferenceConstants { /** * A string value used by the named preferences for hover configuration to * descibe that no hover should be shown for the given key modifiers. - * + * * @since 2.1 */ public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$ @@ -1825,7 +1817,7 @@ public class PreferenceConstants { * descibe that the default hover should be shown for the given key * modifiers. The default hover is described by the * EDITOR_DEFAULT_HOVER property. - * + * * @since 2.1 */ public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$ @@ -1856,7 +1848,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$ @@ -1866,7 +1858,7 @@ public class PreferenceConstants { *

    * Value is of type String. *

    - * + * * @since 2.1 */ public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$ @@ -1877,7 +1869,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_MARK_OCCURRENCES = "markOccurrences"; //$NON-NLS-1$ @@ -1888,7 +1880,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_STICKY_OCCURRENCES = "stickyOccurrences"; //$NON-NLS-1$ @@ -1898,18 +1890,28 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_DISABLE_OVERWRITE_MODE = "disable_overwrite_mode"; //$NON-NLS-1$ /** + * A named preference that controls saving of a file on loss of editor focus. + *

    + * Value is of type Boolean. + *

    + * + * @since 3.0 + */ + public static final String EDITOR_SAVE_ON_BLUR = "save_on_blur"; //$NON-NLS-1$ + + /** * A named preference that controls the "smart semicolon" smart typing * handler *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_SMART_SEMICOLON = "smart_semicolon"; //$NON-NLS-1$ @@ -1918,7 +1920,7 @@ public class PreferenceConstants { * A named preference that controls the smart backspace behavior. *

    * Value is of type Boolean. - * + * * @since 3.0 */ public static final String EDITOR_SMART_BACKSPACE = "smart_backspace"; //$NON-NLS-1$ @@ -1929,7 +1931,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_SMART_OPENING_BRACE = "smart_opening_brace"; //$NON-NLS-1$ @@ -1938,7 +1940,7 @@ public class PreferenceConstants { * A named preference that controls the smart tab behaviour. *

    * Value is of type Boolean. - * + * * @since 3.0 */ public static final String EDITOR_SMART_TAB = "smart_tab"; //$NON-NLS-1$ @@ -1951,7 +1953,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String SPELLING_CHECK_SPELLING = ISpellCheckPreferenceKeys.SPELLING_CHECK_SPELLING; @@ -1962,7 +1964,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String SPELLING_IGNORE_DIGITS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_DIGITS; @@ -1973,7 +1975,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String SPELLING_IGNORE_MIXED = ISpellCheckPreferenceKeys.SPELLING_IGNORE_MIXED; @@ -1984,7 +1986,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String SPELLING_IGNORE_SENTENCE = ISpellCheckPreferenceKeys.SPELLING_IGNORE_SENTENCE; @@ -1995,7 +1997,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String SPELLING_IGNORE_UPPER = ISpellCheckPreferenceKeys.SPELLING_IGNORE_UPPER; @@ -2006,7 +2008,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String SPELLING_IGNORE_URLS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_URLS; @@ -2016,7 +2018,7 @@ public class PreferenceConstants { *

    * Value is of type String. *

    - * + * * @since 3.0 */ public final static String SPELLING_LOCALE = ISpellCheckPreferenceKeys.SPELLING_LOCALE; @@ -2027,7 +2029,7 @@ public class PreferenceConstants { *

    * Value is of type Integer. *

    - * + * * @since 3.0 */ public final static String SPELLING_PROPOSAL_THRESHOLD = ISpellCheckPreferenceKeys.SPELLING_PROPOSAL_THRESHOLD; @@ -2037,7 +2039,7 @@ public class PreferenceConstants { *

    * Value is of type Integer. *

    - * + * * @since 3.0 */ public final static String SPELLING_USER_DICTIONARY = ISpellCheckPreferenceKeys.SPELLING_USER_DICTIONARY; @@ -2048,7 +2050,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String SPELLING_ENABLE_CONTENTASSIST = ISpellCheckPreferenceKeys.SPELLING_ENABLE_CONTENTASSIST; @@ -2059,7 +2061,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_FORMATSOURCE = "comment_format_source_code"; //$NON-NLS-1$ @@ -2070,7 +2072,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION = "comment_indent_parameter_description"; //$NON-NLS-1$ @@ -2081,7 +2083,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_FORMATHEADER = "comment_format_header"; //$NON-NLS-1$ @@ -2091,7 +2093,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_INDENTROOTTAGS = "comment_indent_root_tags"; //$NON-NLS-1$ @@ -2102,7 +2104,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_FORMAT = "comment_format_comments"; //$NON-NLS-1$ @@ -2113,7 +2115,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER = "comment_new_line_for_parameter"; //$NON-NLS-1$ @@ -2124,7 +2126,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS = "comment_separate_root_tags"; //$NON-NLS-1$ @@ -2135,7 +2137,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_CLEARBLANKLINES = "comment_clear_blank_lines"; //$NON-NLS-1$ @@ -2146,7 +2148,7 @@ public class PreferenceConstants { * Value is of type Integer. The value must be at least 4 * for reasonable formatting. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_LINELENGTH = "comment_line_length"; //$NON-NLS-1$ @@ -2156,7 +2158,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public final static String FORMATTER_COMMENT_FORMATHTML = "comment_format_html"; //$NON-NLS-1$ @@ -2196,7 +2198,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$ @@ -2207,7 +2209,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$ @@ -2218,7 +2220,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$ @@ -2257,7 +2259,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$ @@ -2299,7 +2301,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -2312,7 +2314,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -2325,7 +2327,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -2338,7 +2340,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter */ @@ -2351,7 +2353,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter * @since 2.1 @@ -2365,7 +2367,7 @@ public class PreferenceConstants { * Value is of type String. A RGB color value encoded as a * string using class PreferenceConverter *

    - * + * * @see org.eclipse.jface.resource.StringConverter * @see org.eclipse.jface.preference.PreferenceConverter * @since 2.1 @@ -2382,7 +2384,7 @@ public class PreferenceConstants { * REFACTOR_INFO_SEVERITY, * REFACTOR_OK_SEVERITY. *

    - * + * * @see #REFACTOR_FATAL_SEVERITY * @see #REFACTOR_ERROR_SEVERITY * @see #REFACTOR_WARNING_SEVERITY @@ -2394,7 +2396,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD. - * + * * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD */ public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$ @@ -2402,7 +2404,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD. - * + * * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD */ public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$ @@ -2410,7 +2412,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD. - * + * * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD */ public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$ @@ -2418,7 +2420,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD. - * + * * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD */ public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$ @@ -2426,7 +2428,7 @@ public class PreferenceConstants { /** * A string value used by the named preference * REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD. - * + * * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD */ public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$ @@ -2446,7 +2448,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @see #LINK_PACKAGES_TO_EDITOR */ public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$ @@ -2467,7 +2469,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 2.1 */ public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$ @@ -2493,7 +2495,7 @@ public class PreferenceConstants { *

    * Value is of type String. *

    - * + * * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER * @since 2.1.1 */ @@ -2504,7 +2506,7 @@ public class PreferenceConstants { * masks. The value is only used if the value of * EDITOR_TEXT_HOVER_MODIFIERS cannot be resolved to valid * SWT modifier bits. - * + * * @see JavaUI * @see #EDITOR_TEXT_HOVER_MODIFIERS * @since 2.1.1 @@ -2517,7 +2519,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_FOLDING_ENABLED = "editor_folding_enabled"; //$NON-NLS-1$ @@ -2527,7 +2529,7 @@ public class PreferenceConstants { *

    * Value is of type String. *

    - * + * * @since 3.0 */ public static final String EDITOR_FOLDING_PROVIDER = "editor_folding_provider"; //$NON-NLS-1$ @@ -2538,7 +2540,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_FOLDING_JAVADOC = "editor_folding_default_javadoc"; //$NON-NLS-1$ @@ -2549,7 +2551,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_FOLDING_INNERTYPES = "editor_folding_default_innertypes"; //$NON-NLS-1$ @@ -2560,7 +2562,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ public static final String EDITOR_FOLDING_METHODS = "editor_folding_default_methods"; //$NON-NLS-1$ @@ -2571,7 +2573,7 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.0 */ // public static final String EDITOR_FOLDING_IMPORTS = @@ -2582,50 +2584,36 @@ public class PreferenceConstants { *

    * Value is of type Boolean. *

    - * + * * @since 3.1 */ public static final String EDITOR_FOLDING_HEADERS = "editor_folding_default_headers"; //$NON-NLS-1$ public static void initializeDefaultValues(IPreferenceStore store) { - store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false); + store.setDefault (PreferenceConstants.EDITOR_SHOW_SEGMENTS, false); // JavaBasePreferencePage - store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true); - store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, - false); - store - .setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR, - true); - store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, - PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART); - store.setDefault(PreferenceConstants.DOUBLE_CLICK, - PreferenceConstants.DOUBLE_CLICK_EXPANDS); - store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, - PreferenceConstants.UPDATE_WHILE_EDITING); + store.setDefault (PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true); + store.setDefault (PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR,false); + store.setDefault (PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR,true); + store.setDefault (PreferenceConstants.OPEN_TYPE_HIERARCHY,PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART); + store.setDefault (PreferenceConstants.DOUBLE_CLICK,PreferenceConstants.DOUBLE_CLICK_EXPANDS); + store.setDefault (PreferenceConstants.UPDATE_JAVA_VIEWS,PreferenceConstants.UPDATE_WHILE_EDITING); // AppearancePreferencePage - store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, - false); - store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, - false); - store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true); - store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR, - true); - store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false); - store.setDefault( - PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, - ""); //$NON-NLS-1$ - store - .setDefault( - PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, - true); + store.setDefault (PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES,false); + store.setDefault (PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE,false); + store.setDefault (PreferenceConstants.SHOW_CU_CHILDREN, true); + store.setDefault (PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR,true); + store.setDefault (PreferenceConstants.BROWSING_STACK_VERTICALLY, false); + store.setDefault (PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW,""); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER,true); // ImportOrganizePreferencePage // store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, // "php;phpx;org;com"); //$NON-NLS-1$ - store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99); - store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true); + store.setDefault (PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99); + store.setDefault (PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true); // ClasspathVariablesPreferencePage // CodeFormatterPreferencePage @@ -2633,63 +2621,44 @@ public class PreferenceConstants { // no initialization needed // RefactoringPreferencePage - store.setDefault( - PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, - PreferenceConstants.REFACTOR_ERROR_SEVERITY); - store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false); - store.setDefault("RefactoringUI", "dialog"); + store.setDefault (PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD,PreferenceConstants.REFACTOR_ERROR_SEVERITY); + store.setDefault (PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false); + store.setDefault ("RefactoringUI", "dialog"); // TemplatePreferencePage - store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true); + store.setDefault (PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true); // CodeGenerationPreferencePage - store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX, - false); - store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX, - false); - store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX, - "fg, f, _$, _, m_"); //$NON-NLS-1$ - store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$ - - store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS, false); - store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true); - store.setDefault(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$ - store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, true); - store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS, - false); - store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false); + store.setDefault (PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX,false); + store.setDefault (PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX,false); + store.setDefault (PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX,"fg, f, _$, _, m_"); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$ + + store.setDefault (PreferenceConstants.CODEGEN_KEYWORD_THIS, false); + store.setDefault (PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true); + store.setDefault (PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.CODEGEN_ADD_COMMENTS, true); + store.setDefault (PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS,false); + store.setDefault (PreferenceConstants.CODEGEN__FILE_COMMENTS, false); // MembersOrderPreferencePage - store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, - "T,SF,SI,SM,I,F,C,M"); //$NON-NLS-1$ - store.setDefault(PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER, - "B,V,R,D"); //$NON-NLS-1$ - store.setDefault( - PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER, - false); + store.setDefault (PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER,"T,SF,SI,SM,I,F,C,M"); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER,"B,V,R,D"); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER,false); // must add here to guarantee that it is the first in the listener list - store.addPropertyChangeListener(PHPeclipsePlugin.getDefault() - .getMemberOrderPreferenceCache()); + store.addPropertyChangeListener (PHPeclipsePlugin.getDefault().getMemberOrderPreferenceCache()); - store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true); - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, new RGB( - 192, 192, 192)); + store.setDefault (PreferenceConstants.EDITOR_MATCHING_BRACKETS, true); + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, new RGB(192, 192, 192)); - store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true); - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225, - 235, 224)); + store.setDefault (PreferenceConstants.EDITOR_CURRENT_LINE, true); + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225,235, 224)); - store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false); - store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80); - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176, - 180, 185)); + store.setDefault (PreferenceConstants.EDITOR_PRINT_MARGIN, false); + store.setDefault (PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80); + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176,180, 185)); - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176, - 180)); + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176,180)); // store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION, // true); @@ -2738,236 +2707,189 @@ public class PreferenceConstants { // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER, // false); - store - .setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, - true); - store.setDefault( - PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true); - - store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, - true); - - store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true); - - store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false); - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0, - 0, 0)); + store.setDefault (PreferenceConstants.EDITOR_CORRECTION_INDICATION,true); + store.setDefault (PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true); + store.setDefault (PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS,true); + store.setDefault (PreferenceConstants.EDITOR_OVERVIEW_RULER, true); // WorkbenchChainedTextFontFieldEditor.startPropagate(store, // JFaceResources.TEXT_FONT); - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0, - 200, 100)); - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255)); - - store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR, - true); - - store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR, - true); - - store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4); - store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB( - 63, 127, 95)); - store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, - false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB( - 63, 127, 95)); - store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, - false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_PHP_TAG_COLOR, new RGB(255, 0, 128)); - store.setDefault(PreferenceConstants.EDITOR_PHP_TAG_BOLD, true); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0, - 85)); - store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127, - 127, 159)); - store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD, - false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127, - 159, 191)); - store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_COLOR, new RGB( - 127, 159, 191)); - store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_BOLD, - false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0, - 85)); - store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85)); - store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_STRING_COLOR_DQ, - PHPColorProvider.STRING_DQ); - store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_DQ, false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_STRING_COLOR_SQ, - PHPColorProvider.STRING_SQ); - store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_SQ, true); - - PreferenceConverter - .setDefault(store, - PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB( - 0, 0, 0)); - store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127, - 159, 191)); - store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127, - 159)); - store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63, - 191)); - store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false); - - PreferenceConverter.setDefault(store, - PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63, - 95, 191)); - store - .setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, - false); - - store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true); - store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, - 500); - - store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true); - PreferenceConverter.setDefault(store, - PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB( - 254, 241, 233)); - PreferenceConverter.setDefault(store, - PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, - 0, 0)); - PreferenceConverter.setDefault(store, - PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB( - 254, 241, 233)); - PreferenceConverter.setDefault(store, - PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB( - 0, 0, 0)); - PreferenceConverter.setDefault(store, - PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB( - 255, 255, 0)); - PreferenceConverter.setDefault(store, - PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB( - 255, 0, 0)); - store.setDefault( - PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, - "$>"); //$NON-NLS-1$ - store.setDefault( - PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, - "@"); //$NON-NLS-1$ - store.setDefault( - PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML, - "<&#"); //$NON-NLS-1$ - store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, - true); - store - .setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, - false); - store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false); - store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true); - store - .setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, - true); - store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, - false); - store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, - true); - store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, - false); - - store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true); - store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true); - store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true); - store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_DQ_PHP, true); - store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_SQ_PHP, true); - store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true); - store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true); - store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true); - store.setDefault(PreferenceConstants.EDITOR_WRAP_WORDS, false); - store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_DQ, true); - store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_DQ, false); - store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_SQ, true); - store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_SQ, false); - store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true); - store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, false); - store.setDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE, - false); - - store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true); - store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true); + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0,200, 100)); + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255)); + + store.setDefault (PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR,true); + + store.setDefault (PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR,true); + + store.setDefault (PreferenceConstants.EDITOR_TAB_WIDTH, 4); + store.setDefault (PreferenceConstants.EDITOR_SPACES_FOR_TABS, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(63, 127, 95)); + store.setDefault (PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95)); + store.setDefault (PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_PHP_TAG_COLOR, new RGB(255, 0, 128)); + store.setDefault (PreferenceConstants.EDITOR_PHP_TAG_BOLD, true); + store.setDefault (PreferenceConstants.EDITOR_PHP_TAG_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_TAG_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_TAG_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0,85)); + store.setDefault (PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true); + store.setDefault (PreferenceConstants.EDITOR_JAVA_KEYWORD_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_JAVA_KEYWORD_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_JAVA_KEYWORD_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127,127, 159)); + store.setDefault (PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127,159, 191)); + store.setDefault (PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_VARIABLE_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_VARIABLE_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_VARIABLE_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_COLOR, new RGB(127, 159, 191)); + store.setDefault (PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0,85)); + store.setDefault (PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_CONSTANT_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_CONSTANT_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_CONSTANT_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85)); + store.setDefault (PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_TYPE_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_TYPE_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_PHP_TYPE_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_STRING_COLOR_DQ,PHPColorProvider.STRING_DQ); + store.setDefault (PreferenceConstants.EDITOR_STRING_BOLD_DQ, false); + store.setDefault (PreferenceConstants.EDITOR_STRING_ITALIC_DQ, false); + store.setDefault (PreferenceConstants.EDITOR_STRING_UNDERLINE_DQ, false); + store.setDefault (PreferenceConstants.EDITOR_STRING_STRIKETHROUGH_DQ, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_STRING_COLOR_SQ,PHPColorProvider.STRING_SQ); + store.setDefault (PreferenceConstants.EDITOR_STRING_BOLD_SQ, true); + store.setDefault (PreferenceConstants.EDITOR_STRING_ITALIC_SQ, false); + store.setDefault (PreferenceConstants.EDITOR_STRING_UNDERLINE_SQ, false); + store.setDefault (PreferenceConstants.EDITOR_STRING_STRIKETHROUGH_SQ, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(0, 0, 0)); + store.setDefault (PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_JAVA_DEFAULT_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_JAVA_DEFAULT_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_JAVA_DEFAULT_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127,159, 191)); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_KEYWORD_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_KEYWORD_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_KEYWORD_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127,159)); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_TAG_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_TAG_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_TAG_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63,191)); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_LINKS_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_LINKS_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_LINKS_STRIKETHROUGH, false); + + PreferenceConverter.setDefault (store,PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63,95, 191)); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_DEFAULT_ITALIC, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_DEFAULT_UNDERLINE, false); + store.setDefault (PreferenceConstants.EDITOR_JAVADOC_DEFAULT_STRIKETHROUGH, false); + + store.setDefault (PreferenceConstants.CODEASSIST_AUTOACTIVATION, true); + store.setDefault (PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY,500); + + store.setDefault (PreferenceConstants.CODEASSIST_AUTOINSERT, true); + PreferenceConverter.setDefault (store,PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(254, 241, 233)); + PreferenceConverter.setDefault (store,PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0,0, 0)); + PreferenceConverter.setDefault (store,PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(254, 241, 233)); + PreferenceConverter.setDefault (store,PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(0, 0, 0)); + PreferenceConverter.setDefault (store,PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(255, 255, 0)); + PreferenceConverter.setDefault (store,PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(255, 0, 0)); + store.setDefault (PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA,"$>"); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC,"@"); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML,"<&#"); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS,true); + store.setDefault (PreferenceConstants.CODEASSIST_CASE_SENSITIVITY,false); + store.setDefault (PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false); + store.setDefault (PreferenceConstants.CODEASSIST_ADDIMPORT, true); + store.setDefault (PreferenceConstants.CODEASSIST_INSERT_COMPLETION,true); + store.setDefault (PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES,false); + store.setDefault (PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS,true); + store.setDefault (PreferenceConstants.CODEASSIST_PREFIX_COMPLETION,false); + + store.setDefault (PreferenceConstants.EDITOR_SMART_HOME_END, true); + store.setDefault (PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true); + store.setDefault (PreferenceConstants.EDITOR_SMART_PASTE, true); + store.setDefault (PreferenceConstants.EDITOR_CLOSE_STRINGS_DQ_PHP, true); + store.setDefault (PreferenceConstants.EDITOR_CLOSE_STRINGS_SQ_PHP, true); + store.setDefault (PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true); + store.setDefault (PreferenceConstants.EDITOR_CLOSE_BRACES, true); + store.setDefault (PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true); + store.setDefault (PreferenceConstants.EDITOR_WRAP_WORDS, false); + store.setDefault (PreferenceConstants.EDITOR_WRAP_STRINGS_DQ, true); + store.setDefault (PreferenceConstants.EDITOR_ESCAPE_STRINGS_DQ, false); + store.setDefault (PreferenceConstants.EDITOR_WRAP_STRINGS_SQ, true); + store.setDefault (PreferenceConstants.EDITOR_ESCAPE_STRINGS_SQ, false); + store.setDefault (PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true); + store.setDefault (PreferenceConstants.EDITOR_FORMAT_JAVADOCS, false); + store.setDefault (PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE,false); + + store.setDefault (PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true); + store.setDefault (PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true); // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER, // JavaPlugin.ID_BESTMATCH_HOVER); - store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER, - PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); + store.setDefault (PreferenceConstants.EDITOR_NONE_HOVER,PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER, // JavaPlugin.ID_SOURCE_HOVER); - store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER, - PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); - store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER, - PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); - store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER, - PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); - store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER, - PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); - store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER, - PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); - - String ctrl = Action.findModifierString(SWT.CTRL); - store - .setDefault( - PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS, - "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$ - store - .setDefault( - PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS, - "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + SWT.CTRL); //$NON-NLS-1$ - store.setDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE, - true); - - store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true); - store.setDefault( - PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER, - ctrl); - store - .setDefault( - PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK, - SWT.CTRL); + store.setDefault (PreferenceConstants.EDITOR_SHIFT_HOVER,PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); + store.setDefault (PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER,PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); + store.setDefault (PreferenceConstants.EDITOR_CTRL_ALT_HOVER,PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); + store.setDefault (PreferenceConstants.EDITOR_ALT_SHIFT_HOVER,PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); + store.setDefault (PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER,PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID); + + int modifier = SWT.CTRL; + if (Platform.getOS().equals(Platform.OS_MACOSX)) + modifier = SWT.COMMAND; + + String ctrl = Action.findModifierString(modifier); + store.setDefault (PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS,"net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS,"net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + modifier); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE,true); + + store.setDefault (PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true); + store.setDefault (PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER,ctrl); + store.setDefault (PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK,modifier); // mark occurrences - store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true); - store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true); + store.setDefault (PreferenceConstants.EDITOR_MARK_OCCURRENCES, true); + store.setDefault (PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true); // store.setDefault(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES, // true); // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES, @@ -2985,38 +2907,35 @@ public class PreferenceConstants { // store.setDefault(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, true); // spell checking - store.setDefault(PreferenceConstants.SPELLING_CHECK_SPELLING, false); - store.setDefault(PreferenceConstants.SPELLING_LOCALE, SpellCheckEngine - .getDefaultLocale().toString()); - store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS, true); - store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED, true); - store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE, true); - store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER, true); - store.setDefault(PreferenceConstants.SPELLING_IGNORE_URLS, true); - store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$ - store.setDefault(PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20); - store.setDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST, - false); + store.setDefault (PreferenceConstants.SPELLING_CHECK_SPELLING, false); + store.setDefault (PreferenceConstants.SPELLING_LOCALE, SpellCheckEngine.getDefaultLocale().toString()); + store.setDefault (PreferenceConstants.SPELLING_IGNORE_DIGITS, true); + store.setDefault (PreferenceConstants.SPELLING_IGNORE_MIXED, true); + store.setDefault (PreferenceConstants.SPELLING_IGNORE_SENTENCE, true); + store.setDefault (PreferenceConstants.SPELLING_IGNORE_UPPER, true); + store.setDefault (PreferenceConstants.SPELLING_IGNORE_URLS, true); + store.setDefault (PreferenceConstants.SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20); + store.setDefault (PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST,false); // folding - store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true); - store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER, - "net.sourceforge.phpdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$ - store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, true); - store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, true); - store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false); + store.setDefault (PreferenceConstants.EDITOR_FOLDING_ENABLED, true); + store.setDefault (PreferenceConstants.EDITOR_FOLDING_PROVIDER,"net.sourceforge.phpdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$ + store.setDefault (PreferenceConstants.EDITOR_FOLDING_JAVADOC, true); + store.setDefault (PreferenceConstants.EDITOR_FOLDING_INNERTYPES, true); + store.setDefault (PreferenceConstants.EDITOR_FOLDING_METHODS, false); // store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, false); - store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS, true); + store.setDefault (PreferenceConstants.EDITOR_FOLDING_HEADERS, true); - store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE, true); - store.setDefault(PreferenceConstants.EDITOR_P_RTRIM_ON_SAVE, false); + store.setDefault (PreferenceConstants.EDITOR_SMART_BACKSPACE, true); + store.setDefault (PreferenceConstants.EDITOR_P_RTRIM_ON_SAVE, false); // do more complicated stuff // NewJavaProjectPreferencePage.initDefaults(store); } /** * Returns the JDT-UI preference store. - * + * * @return the JDT-UI preference store */ public static IPreferenceStore getPreferenceStore() { @@ -3081,4 +3000,4 @@ public class PreferenceConstants { // public static IClasspathEntry[] getDefaultJRELibrary() { // return NewJavaProjectPreferencePage.getDefaultJRELibrary(); // } -} \ No newline at end of file +}