| /******************************************************************************* |
| * Copyright (c) 2001, 2004 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| * Jens Lukowski/Innoopract - initial renaming/restructuring |
| * |
| *******************************************************************************/ |
| |
| |
| package org.eclipse.wst.sse.ui.preferences; |
| |
| import org.eclipse.wst.sse.core.preferences.CommonModelPreferenceNames; |
| |
| /** |
| * Editor preferences split out from Model Preferences. Preferences defined in |
| * here are dependent on a visual editor. |
| */ |
| public class CommonEditorPreferenceNames { |
| |
| public static final String AUTO_PROPOSE = "autoPropose";//$NON-NLS-1$ |
| public static final String AUTO_PROPOSE_CODE = "autoProposeCode";//$NON-NLS-1$ |
| /** Preference key for bookmark indication */ |
| public final static String BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$ |
| /** Preference key for bookmark color */ |
| public final static String BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$ |
| /** Preference key for bookmark indication in overview ruler */ |
| public final static String BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$ |
| |
| /** |
| * A named preference that controls if browser like links are turned on or |
| * off. |
| * <p> |
| * Value is of type <code>Boolean</code>. |
| * </p> |
| * |
| */ |
| public final static String BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$ |
| |
| /** |
| * A named preference that controls the key modifier for browser like |
| * links. |
| * <p> |
| * Value is of type <code>String</code>. |
| * </p> |
| * |
| */ |
| public final static String BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$ |
| |
| public static final String CONTENT_ASSIST_SUPPORTED = "contentAssistSupported";//$NON-NLS-1$ |
| public static final String DOT = ".";//$NON-NLS-1$ |
| |
| /** |
| * A named preference that controls whether annotation roll over is used |
| * or not. |
| * <p> |
| * Value is of type <code>Boolean</code>. If |
| * <code>true<code> the annotation ruler column |
| * uses a roll over to display multiple annotations |
| * </p> |
| */ |
| public static final String EDITOR_ANNOTATION_ROLL_OVER = "editor_annotation_roll_over"; //$NON-NLS-1$ |
| |
| /** |
| * A named preference that defines whether hint to make hover sticky |
| * should be shown. |
| */ |
| public static final String EDITOR_SHOW_TEXT_HOVER_AFFORDANCE = "showTextHoverAffordance"; //$NON-NLS-1$ |
| |
| /** |
| * A named preference that defines the key for the hover modifiers. |
| */ |
| public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$ |
| |
| public static final String EDITOR_USE_INFERRED_GRAMMAR = "useInferredGrammar"; //$NON-NLS-1$ |
| public static final String EDITOR_VALIDATION_CONTENT_MODEL = "validation_content_model"; //$NON-NLS-1$ |
| // currently can take on 3 different values |
| public static final String EDITOR_VALIDATION_METHOD = "editorValidationMethod"; //$NON-NLS-1$ |
| public static final String EDITOR_VALIDATION_NONE = "validation_none"; //$NON-NLS-1$ |
| public static final String EDITOR_VALIDATION_WORKBENCH_DEFAULT = "validation_workbench_default"; //$NON-NLS-1$ |
| |
| /** Preference key for error indication */ |
| public final static String ERROR_INDICATION = "errorIndication"; //$NON-NLS-1$ |
| /** Preference key for error color */ |
| public final static String ERROR_INDICATION_COLOR = "errorIndicationColor"; //$NON-NLS-1$ |
| /** Preference key for error indication in overview ruler */ |
| public final static String ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$ |
| |
| // these 2 preferences are on the StructuredTextEditorPreferencePage |
| // annotations tab |
| public static final String EVALUATE_TEMPORARY_PROBLEMS = "evaluateTemporaryProblems"; //$NON-NLS-1$ |
| |
| /** |
| * A named preference that holds the color used for 'linked-mode' |
| * underline. |
| * <p> |
| * Value is of type <code>String</code>. A RGB color value encoded as a |
| * string using class <code>PreferenceConverter</code> |
| * </p> |
| * |
| * @see org.eclipse.jface.resource.StringConverter |
| * @see org.eclipse.jface.preference.PreferenceConverter |
| */ |
| public final static String LINK_COLOR = "linkColor"; //$NON-NLS-1$ |
| public static final String LT = "<";//$NON-NLS-1$ |
| public static final String LT_PERCENT = "<%";//$NON-NLS-1$ |
| |
| /** Preference key for matching brackets */ |
| public final static String MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$ |
| /** Preference key for matching brackets color */ |
| public final static String MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$ |
| |
| /** |
| * A named preference that defines read only contrast scale. |
| */ |
| public static final String READ_ONLY_FOREGROUND_SCALE = "readOnlyForegroundScale"; //$NON-NLS-1$ |
| /** Preference key for search result indication */ |
| public final static String SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$ |
| /** Preference key for search result color */ |
| public final static String SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$ |
| /** Preference key for search result indication in overview ruler */ |
| public final static String SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$ |
| public static final String SHOW_QUICK_FIXABLES = "showQuickFixables"; //$NON-NLS-1$ |
| /** Preference key for task indication */ |
| public final static String TASK_INDICATION = "taskIndication"; //$NON-NLS-1$ |
| /** Preference key for task color */ |
| public final static String TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$ |
| /** Preference key for task indication in overview ruler */ |
| public final static String TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$ |
| |
| /** |
| * The key to store customized templates. |
| */ |
| public static final String TEMPLATES_KEY = "org.eclipse.wst.sse.ui.custom_templates"; //$NON-NLS-1$ |
| /** Preference key for unknown annotation indication */ |
| public final static String UNKNOWN_INDICATION = "unknownIndication"; //$NON-NLS-1$ |
| /** Preference key for unknown annotation color */ |
| public final static String UNKNOWN_INDICATION_COLOR = "unknownIndicationColor"; //$NON-NLS-1$ |
| /** Preference key for unknown annotation indication in overview ruler */ |
| public final static String UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "unknownIndicationInOverviewRuler"; //$NON-NLS-1$ |
| /** Preference key for warning indication */ |
| public final static String WARNING_INDICATION = "warningIndication"; //$NON-NLS-1$ |
| /** Preference key for warning color */ |
| public final static String WARNING_INDICATION_COLOR = "warningIndicationColor"; //$NON-NLS-1$ |
| /** Preference key for warning indication in overview ruler */ |
| public final static String WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverViewrRuler"; //$NON-NLS-1$ |
| |
| /** |
| * these are preferences that should be inherited from the "embedded |
| * preference store" for example: if you ask for th OVERVIEW_RULER |
| * preference for JSP, you will automatically get the preference from the |
| * HTML preference store. |
| */ |
| String EMBEDDED_CONTENT_TYPE_PREFERENCES[] = {CommonModelPreferenceNames.TAB_WIDTH, CommonModelPreferenceNames.LINE_WIDTH, CommonModelPreferenceNames.SPLIT_MULTI_ATTRS, CommonModelPreferenceNames.INDENT_USING_TABS, CommonModelPreferenceNames.CLEAR_ALL_BLANK_LINES, AUTO_PROPOSE, AUTO_PROPOSE_CODE, CommonModelPreferenceNames.TAG_NAME_CASE, CommonModelPreferenceNames.ATTR_NAME_CASE,}; |
| } |