0001: /*******************************************************************************
0002: * Copyright (c) 2000, 2007 IBM Corporation and others.
0003: * All rights reserved. This program and the accompanying materials
0004: * are made available under the terms of the Eclipse Public License v1.0
0005: * which accompanies this distribution, and is available at
0006: * http://www.eclipse.org/legal/epl-v10.html
0007: *
0008: * Contributors:
0009: * IBM Corporation - initial API and implementation
0010: *******************************************************************************/package org.eclipse.jdt.ui;
0011:
0012: import java.util.Locale;
0013:
0014: import org.eclipse.core.runtime.preferences.DefaultScope;
0015: import org.eclipse.core.runtime.preferences.InstanceScope;
0016:
0017: import org.eclipse.core.resources.ProjectScope;
0018:
0019: import org.eclipse.swt.SWT;
0020: import org.eclipse.swt.graphics.RGB;
0021:
0022: import org.eclipse.jface.action.Action;
0023: import org.eclipse.jface.preference.IPreferenceStore;
0024: import org.eclipse.jface.preference.PreferenceConverter;
0025: import org.eclipse.jface.resource.ColorRegistry;
0026:
0027: import org.eclipse.ui.PlatformUI;
0028: import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
0029: import org.eclipse.ui.texteditor.AbstractTextEditor;
0030:
0031: import org.eclipse.jdt.core.IClasspathEntry;
0032: import org.eclipse.jdt.core.IJavaProject;
0033: import org.eclipse.jdt.core.JavaCore;
0034:
0035: import org.eclipse.jdt.internal.corext.fix.CleanUpConstants;
0036:
0037: import org.eclipse.jdt.ui.text.IJavaColorConstants;
0038:
0039: import org.eclipse.jdt.internal.ui.IJavaThemeConstants;
0040: import org.eclipse.jdt.internal.ui.JavaPlugin;
0041: import org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings;
0042: import org.eclipse.jdt.internal.ui.preferences.NewJavaProjectPreferencePage;
0043: import org.eclipse.jdt.internal.ui.preferences.formatter.FormatterProfileManager;
0044: import org.eclipse.jdt.internal.ui.text.java.ProposalSorterRegistry;
0045: import org.eclipse.jdt.internal.ui.text.spelling.SpellCheckEngine;
0046: import org.eclipse.jdt.internal.ui.viewsupport.ColoredViewersManager;
0047:
0048: /**
0049: * Preference constants used in the JDT-UI preference store. Clients should only read the
0050: * JDT-UI preference store using these values. Clients are not allowed to modify the
0051: * preference store programmatically.
0052: *
0053: * @since 2.0
0054: */
0055: public class PreferenceConstants {
0056:
0057: private PreferenceConstants() {
0058: }
0059:
0060: /**
0061: * A named preference that controls return type rendering of methods in the UI.
0062: * <p>
0063: * Value is of type <code>Boolean</code>: if <code>true</code> return types
0064: * are rendered
0065: * </p>
0066: */
0067: public static final String APPEARANCE_METHOD_RETURNTYPE = "org.eclipse.jdt.ui.methodreturntype";//$NON-NLS-1$
0068:
0069: /**
0070: * A named preference that controls type parameter rendering of methods in the UI.
0071: * <p>
0072: * Value is of type <code>Boolean</code>: if <code>true</code> return types
0073: * are rendered
0074: * </p>
0075: * @since 3.1
0076: */
0077: public static final String APPEARANCE_METHOD_TYPEPARAMETERS = "org.eclipse.jdt.ui.methodtypeparametesr";//$NON-NLS-1$
0078:
0079: /**
0080: * A named preference that controls if override indicators are rendered in the UI.
0081: * <p>
0082: * Value is of type <code>Boolean</code>: if <code>true</code> override
0083: * indicators are rendered
0084: * </p>
0085: * @deprecated Override Indicator is now controlled on the platform's decorator preference page
0086: */
0087: public static final String APPEARANCE_OVERRIDE_INDICATOR = "org.eclipse.jdt.ui.overrideindicator";//$NON-NLS-1$
0088:
0089: /**
0090: * A named preference that controls if quick assist light bulbs are shown.
0091: * <p>
0092: * Value is of type <code>Boolean</code>: if <code>true</code> light bulbs are shown
0093: * for quick assists.
0094: * </p>
0095: *
0096: * @since 3.0
0097: */
0098: public static final String EDITOR_QUICKASSIST_LIGHTBULB = "org.eclipse.jdt.quickassist.lightbulb"; //$NON-NLS-1$
0099:
0100: /**
0101: * A named preference that defines the pattern used for package name compression.
0102: * <p>
0103: * Value is of type <code>String</code>. For example for the given package name 'org.eclipse.jdt' pattern
0104: * '.' will compress it to '..jdt', '1~' to 'o~.e~.jdt'.
0105: * </p>
0106: */
0107: public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW = "PackagesView.pkgNamePatternForPackagesView";//$NON-NLS-1$
0108:
0109: /**
0110: * A named preference that controls if package name compression is turned on or off.
0111: * <p>
0112: * Value is of type <code>Boolean</code>.
0113: * </p>
0114: *
0115: * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
0116: */
0117: public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "org.eclipse.jdt.ui.compresspackagenames";//$NON-NLS-1$
0118:
0119: /**
0120: * A named preference that controls if empty inner packages are folded in
0121: * the hierarchical mode of the package explorer.
0122: * <p>
0123: * Value is of type <code>Boolean</code>: if <code>true</code> empty
0124: * inner packages are folded.
0125: * </p>
0126: * @since 2.1
0127: */
0128: public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "org.eclipse.jdt.ui.flatPackagesInPackageExplorer";//$NON-NLS-1$
0129:
0130: /**
0131: * A named preference that defines how member elements are ordered by the
0132: * Java views using the <code>JavaElementSorter</code>.
0133: * <p>
0134: * Value is of type <code>String</code>: A comma separated list of the
0135: * following entries. Each entry must be in the list, no duplication. List
0136: * order defines the sort order.
0137: * <ul>
0138: * <li><b>T</b>: Types</li>
0139: * <li><b>C</b>: Constructors</li>
0140: * <li><b>I</b>: Initializers</li>
0141: * <li><b>M</b>: Methods</li>
0142: * <li><b>F</b>: Fields</li>
0143: * <li><b>SI</b>: Static Initializers</li>
0144: * <li><b>SM</b>: Static Methods</li>
0145: * <li><b>SF</b>: Static Fields</li>
0146: * </ul>
0147: * </p>
0148: * @since 2.1
0149: */
0150: public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$
0151:
0152: /**
0153: * A named preference that defines how member elements are ordered by visibility in the
0154: * Java views using the <code>JavaElementSorter</code>.
0155: * <p>
0156: * Value is of type <code>String</code>: A comma separated list of the
0157: * following entries. Each entry must be in the list, no duplication. List
0158: * order defines the sort order.
0159: * <ul>
0160: * <li><b>B</b>: Public</li>
0161: * <li><b>V</b>: Private</li>
0162: * <li><b>R</b>: Protected</li>
0163: * <li><b>D</b>: Default</li>
0164: * </ul>
0165: * </p>
0166: * @since 3.0
0167: */
0168: public static final String APPEARANCE_VISIBILITY_SORT_ORDER = "org.eclipse.jdt.ui.visibility.order"; //$NON-NLS-1$
0169:
0170: /**
0171: * A named preferences that controls if Java elements are also sorted by
0172: * visibility.
0173: * <p>
0174: * Value is of type <code>Boolean</code>.
0175: * </p>
0176: * @since 3.0
0177: */
0178: public static final String APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER = "org.eclipse.jdt.ui.enable.visibility.order"; //$NON-NLS-1$
0179:
0180: /**
0181: * A named preference that controls category rendering of Java elements in the UI.
0182: * <p>
0183: * Value is of type <code>Boolean</code>: if <code>true</code> category is rendered
0184: * </p>
0185: * @since 3.2
0186: */
0187: public static final String APPEARANCE_CATEGORY = "org.eclipse.jdt.ui.category";//$NON-NLS-1$
0188:
0189: /**
0190: * The symbolic font name for the font used to display Javadoc
0191: * (value <code>"org.eclipse.jdt.ui.javadocfont"</code>).
0192: *
0193: * @since 3.3
0194: */
0195: public final static String APPEARANCE_JAVADOC_FONT = "org.eclipse.jdt.ui.javadocfont"; //$NON-NLS-1$
0196:
0197: /**
0198: * A named preference that controls if prefix removal during setter/getter generation is turned on or off.
0199: * <p>
0200: * Value is of type <code>Boolean</code>.
0201: * </p>
0202: * @deprecated Use JavaCore preference store (key JavaCore.
0203: * CODEASSIST_FIELD_PREFIXES and CODEASSIST_STATIC_FIELD_PREFIXES)
0204: */
0205: public static final String CODEGEN_USE_GETTERSETTER_PREFIX = "org.eclipse.jdt.ui.gettersetter.prefix.enable";//$NON-NLS-1$
0206:
0207: /**
0208: * A named preference that holds a list of prefixes to be removed from a local variable to compute setter
0209: * and getter names.
0210: * <p>
0211: * Value is of type <code>String</code>: comma separated list of prefixed
0212: * </p>
0213: *
0214: * @deprecated Use JavaCore preference store (key JavaCore.
0215: * CODEASSIST_FIELD_PREFIXES and CODEASSIST_STATIC_FIELD_PREFIXES)
0216: */
0217: public static final String CODEGEN_GETTERSETTER_PREFIX = "org.eclipse.jdt.ui.gettersetter.prefix.list";//$NON-NLS-1$
0218:
0219: /**
0220: * A named preference that controls if suffix removal during setter/getter generation is turned on or off.
0221: * <p>
0222: * Value is of type <code>Boolean</code>.
0223: * </p>
0224: * @deprecated Use JavaCore preference store (key JavaCore.
0225: * CODEASSIST_FIELD_PREFIXES and CODEASSIST_STATIC_FIELD_PREFIXES)
0226: */
0227: public static final String CODEGEN_USE_GETTERSETTER_SUFFIX = "org.eclipse.jdt.ui.gettersetter.suffix.enable";//$NON-NLS-1$
0228:
0229: /**
0230: * A named preference that holds a list of suffixes to be removed from a local variable to compute setter
0231: * and getter names.
0232: * <p>
0233: * Value is of type <code>String</code>: comma separated list of suffixes
0234: * </p>
0235: * @deprecated Use setting from JavaCore preference store (key JavaCore.
0236: * CODEASSIST_FIELD_SUFFIXES and CODEASSIST_STATIC_FIELD_SUFFIXES)
0237: */
0238: public static final String CODEGEN_GETTERSETTER_SUFFIX = "org.eclipse.jdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
0239:
0240: /**
0241: * A named preference that controls whether the keyword "this" will be added
0242: * automatically to field accesses in generated methods.
0243: * <p>
0244: * Value is of type <code>Boolean</code>.
0245: * </p>
0246: * @since 3.0
0247: */
0248: public static final String CODEGEN_KEYWORD_THIS = "org.eclipse.jdt.ui.keywordthis"; //$NON-NLS-1$
0249:
0250: /**
0251: * A named preference that controls whether to use the prefix "is" or the prefix "get" for
0252: * automatically created getters which return a boolean field.
0253: * <p>
0254: * Value is of type <code>Boolean</code>.
0255: * </p>
0256: * @since 3.0
0257: */
0258: public static final String CODEGEN_IS_FOR_GETTERS = "org.eclipse.jdt.ui.gettersetter.use.is"; //$NON-NLS-1$
0259:
0260: /**
0261: * A named preference that defines the preferred variable names for exceptions in
0262: * catch clauses.
0263: * <p>
0264: * Value is of type <code>String</code>.
0265: * </p>
0266: * @since 3.0
0267: */
0268: public static final String CODEGEN_EXCEPTION_VAR_NAME = "org.eclipse.jdt.ui.exception.name"; //$NON-NLS-1$
0269:
0270: /**
0271: * A named preference that controls if comment stubs will be added
0272: * automatically to newly created types and methods.
0273: * <p>
0274: * Value is of type <code>Boolean</code>.
0275: * </p>
0276: * @since 2.1
0277: */
0278: public static final String CODEGEN_ADD_COMMENTS = "org.eclipse.jdt.ui.javadoc"; //$NON-NLS-1$
0279:
0280: /**
0281: * A named preference that controls if a comment stubs will be added
0282: * automatically to newly created types and methods.
0283: * <p>
0284: * Value is of type <code>Boolean</code>.
0285: * </p>
0286: * @deprecated Use CODEGEN_ADD_COMMENTS instead (Name is more precise).
0287: */
0288: public static final String CODEGEN__JAVADOC_STUBS = CODEGEN_ADD_COMMENTS;
0289:
0290: /**
0291: * A named preference that controls if a non-javadoc comment gets added to methods generated via the
0292: * "Override Methods" operation.
0293: * <p>
0294: * Value is of type <code>Boolean</code>.
0295: * </p>
0296: * @deprecated New code template story: user can
0297: * specify the overriding method comment.
0298: */
0299: public static final String CODEGEN__NON_JAVADOC_COMMENTS = "org.eclipse.jdt.ui.seecomments"; //$NON-NLS-1$
0300:
0301: /**
0302: * A named preference that controls if a file comment gets added to newly created files.
0303: * <p>
0304: * Value is of type <code>Boolean</code>.
0305: * </p>
0306: * @deprecated New code template story: user can
0307: * specify the new file code template.
0308: */
0309: public static final String CODEGEN__FILE_COMMENTS = "org.eclipse.jdt.ui.filecomments"; //$NON-NLS-1$
0310:
0311: /**
0312: * A named preference that controls whether to add a override annotation for newly created methods
0313: * <p>
0314: * Value is of type <code>Boolean</code>.
0315: * </p>
0316: * @since 3.1
0317: */
0318: public static final String CODEGEN_USE_OVERRIDE_ANNOTATION = "org.eclipse.jdt.ui.overrideannotation"; //$NON-NLS-1$
0319:
0320: /**
0321: * A named preference that holds a list of semicolon separated fully qualified type names with wild card characters.
0322: * @since 3.0
0323: */
0324: public static final String TYPEFILTER_ENABLED = "org.eclipse.jdt.ui.typefilter.enabled"; //$NON-NLS-1$
0325:
0326: /**
0327: * A named preference that holds a list of semicolon separated fully qualified type names with wild card characters.
0328: * @since 3.0
0329: */
0330: public static final String TYPEFILTER_DISABLED = "org.eclipse.jdt.ui.typefilter.disabled"; //$NON-NLS-1$
0331:
0332: /**
0333: * A named preference that holds a list of semicolon separated package names. The list specifies the import order used by
0334: * the "Organize Imports" operation.
0335: * <p>
0336: * Value is of type <code>String</code>: semicolon separated list of package
0337: * names
0338: * </p>
0339: */
0340: public static final String ORGIMPORTS_IMPORTORDER = "org.eclipse.jdt.ui.importorder"; //$NON-NLS-1$
0341:
0342: /**
0343: * A named preference that specifies the number of imports added before a star-import declaration is used.
0344: * <p>
0345: * Value is of type <code>Integer</code>: positive value specifying the number of non star-import is used
0346: * </p>
0347: */
0348: public static final String ORGIMPORTS_ONDEMANDTHRESHOLD = "org.eclipse.jdt.ui.ondemandthreshold"; //$NON-NLS-1$
0349:
0350: /**
0351: * A named preference that specifies the number of static imports added before a star-import declaration is used.
0352: * <p>
0353: * Value is of type <code>Integer</code>: positive value specifying the number of non star-import is used
0354: * </p>
0355: * @since 3.2
0356: */
0357: public static final String ORGIMPORTS_STATIC_ONDEMANDTHRESHOLD = "org.eclipse.jdt.ui.staticondemandthreshold"; //$NON-NLS-1$
0358:
0359: /**
0360: * A named preferences that controls if types that start with a lower case letters get added by the
0361: * "Organize Import" operation.
0362: * <p>
0363: * Value is of type <code>Boolean</code>.
0364: * </p>
0365: */
0366: public static final String ORGIMPORTS_IGNORELOWERCASE = "org.eclipse.jdt.ui.ignorelowercasenames"; //$NON-NLS-1$
0367:
0368: /**
0369: * A named preference that specifies whether children of a compilation unit are shown in the package explorer.
0370: * <p>
0371: * Value is of type <code>Boolean</code>.
0372: * </p>
0373: */
0374: public static final String SHOW_CU_CHILDREN = "org.eclipse.jdt.ui.packages.cuchildren"; //$NON-NLS-1$
0375:
0376: /**
0377: * A named preference that controls whether the package explorer's selection is linked to the active editor.
0378: * <p>
0379: * Value is of type <code>Boolean</code>.
0380: * </p>
0381: * @deprecated Since 3.3. Not used anymore. Package view always restores with the last recently used setting.
0382: */
0383: public static final String LINK_PACKAGES_TO_EDITOR = "org.eclipse.jdt.ui.packages.linktoeditor"; //$NON-NLS-1$
0384:
0385: /**
0386: * A named preference that controls whether the hierarchy view's selection is linked to the active editor.
0387: * <p>
0388: * Value is of type <code>Boolean</code>.
0389: * </p>
0390: * @deprecated Since 3.3. Not used anymore. Type hierarchy view always restores with the last recently used setting.
0391: */
0392: public static final String LINK_TYPEHIERARCHY_TO_EDITOR = "org.eclipse.jdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
0393:
0394: /**
0395: * A named preference that controls whether the projects view's selection is
0396: * linked to the active editor.
0397: * <p>
0398: * Value is of type <code>Boolean</code>.
0399: * </p>
0400: * @since 2.1
0401: */
0402: public static final String LINK_BROWSING_PROJECTS_TO_EDITOR = "org.eclipse.jdt.ui.browsing.projectstoeditor"; //$NON-NLS-1$
0403:
0404: /**
0405: * A named preference that controls whether the packages view's selection is
0406: * linked to the active editor.
0407: * <p>
0408: * Value is of type <code>Boolean</code>.
0409: * </p>
0410: * @since 2.1
0411: */
0412: public static final String LINK_BROWSING_PACKAGES_TO_EDITOR = "org.eclipse.jdt.ui.browsing.packagestoeditor"; //$NON-NLS-1$
0413:
0414: /**
0415: * A named preference that controls whether the types view's selection is
0416: * linked to the active editor.
0417: * <p>
0418: * Value is of type <code>Boolean</code>.
0419: * </p>
0420: * @since 2.1
0421: */
0422: public static final String LINK_BROWSING_TYPES_TO_EDITOR = "org.eclipse.jdt.ui.browsing.typestoeditor"; //$NON-NLS-1$
0423:
0424: /**
0425: * A named preference that controls whether the members view's selection is
0426: * linked to the active editor.
0427: * <p>
0428: * Value is of type <code>Boolean</code>.
0429: * </p>
0430: * @since 2.1
0431: */
0432: public static final String LINK_BROWSING_MEMBERS_TO_EDITOR = "org.eclipse.jdt.ui.browsing.memberstoeditor"; //$NON-NLS-1$
0433: /**
0434: * A named preference that controls whether new projects are generated using source and output folder.
0435: * <p>
0436: * Value is of type <code>Boolean</code>. if <code>true</code> new projects are created with a source and
0437: * output folder. If <code>false</code> source and output folder equals to the project.
0438: * </p>
0439: */
0440: public static final String SRCBIN_FOLDERS_IN_NEWPROJ = "org.eclipse.jdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
0441:
0442: /**
0443: * A named preference that specifies the source folder name used when creating a new Java project. Value is inactive
0444: * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
0445: * <p>
0446: * Value is of type <code>String</code>.
0447: * </p>
0448: *
0449: * @see #SRCBIN_FOLDERS_IN_NEWPROJ
0450: */
0451: public static final String SRCBIN_SRCNAME = "org.eclipse.jdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
0452:
0453: /**
0454: * A named preference that specifies the output folder name used when creating a new Java project. Value is inactive
0455: * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
0456: * <p>
0457: * Value is of type <code>String</code>.
0458: * </p>
0459: *
0460: * @see #SRCBIN_FOLDERS_IN_NEWPROJ
0461: */
0462: public static final String SRCBIN_BINNAME = "org.eclipse.jdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
0463:
0464: /**
0465: * A named preference that holds a list of possible JRE libraries used by the New Java Project wizard. A library
0466: * consists of a description and an arbitrary number of <code>IClasspathEntry</code>s, that will represent the
0467: * JRE on the new project's class path.
0468: * <p>
0469: * Value is of type <code>String</code>: a semicolon separated list of encoded JRE libraries.
0470: * <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines the currently used library. Clients
0471: * should use the method <code>encodeJRELibrary</code> to encode a JRE library into a string
0472: * and the methods <code>decodeJRELibraryDescription(String)</code> and <code>
0473: * decodeJRELibraryClasspathEntries(String)</code> to decode the description and the array
0474: * of class path entries from an encoded string.
0475: * </p>
0476: *
0477: * @see #NEWPROJECT_JRELIBRARY_INDEX
0478: * @see #encodeJRELibrary(String, IClasspathEntry[])
0479: * @see #decodeJRELibraryDescription(String)
0480: * @see #decodeJRELibraryClasspathEntries(String)
0481: */
0482: public static final String NEWPROJECT_JRELIBRARY_LIST = "org.eclipse.jdt.ui.wizards.jre.list"; //$NON-NLS-1$
0483:
0484: /**
0485: * A named preferences that specifies the current active JRE library.
0486: * <p>
0487: * Value is of type <code>Integer</code>: an index into the list of possible JRE libraries.
0488: * </p>
0489: *
0490: * @see #NEWPROJECT_JRELIBRARY_LIST
0491: */
0492: public static final String NEWPROJECT_JRELIBRARY_INDEX = "org.eclipse.jdt.ui.wizards.jre.index"; //$NON-NLS-1$
0493:
0494: /**
0495: * A named preference that controls if a new type hierarchy gets opened in a
0496: * new type hierarchy perspective or inside the type hierarchy view part.
0497: * <p>
0498: * Value is of type <code>String</code>: possible values are <code>
0499: * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code> or <code>
0500: * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
0501: * </p>
0502: *
0503: * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
0504: * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
0505: */
0506: public static final String OPEN_TYPE_HIERARCHY = "org.eclipse.jdt.ui.openTypeHierarchy"; //$NON-NLS-1$
0507:
0508: /**
0509: * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
0510: *
0511: * @see #OPEN_TYPE_HIERARCHY
0512: */
0513: public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$
0514:
0515: /**
0516: * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
0517: *
0518: * @see #OPEN_TYPE_HIERARCHY
0519: */
0520: public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$
0521:
0522: /**
0523: * A named preference that controls the behavior when double clicking on a container in the packages view.
0524: * <p>
0525: * Value is of type <code>String</code>: possible values are <code>
0526: * DOUBLE_CLICK_GOES_INTO</code> or <code>
0527: * DOUBLE_CLICK_EXPANDS</code>.
0528: * </p>
0529: *
0530: * @see #DOUBLE_CLICK_EXPANDS
0531: * @see #DOUBLE_CLICK_GOES_INTO
0532: */
0533: public static final String DOUBLE_CLICK = "packageview.doubleclick"; //$NON-NLS-1$
0534:
0535: /**
0536: * A string value used by the named preference <code>DOUBLE_CLICK</code>.
0537: *
0538: * @see #DOUBLE_CLICK
0539: */
0540: public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$
0541:
0542: /**
0543: * A string value used by the named preference <code>DOUBLE_CLICK</code>.
0544: *
0545: * @see #DOUBLE_CLICK
0546: */
0547: public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$
0548:
0549: /**
0550: * A named preference that controls whether Java views update their presentation while editing or when saving the
0551: * content of an editor.
0552: * <p>
0553: * Value is of type <code>String</code>: possible values are <code>
0554: * UPDATE_ON_SAVE</code> or <code>
0555: * UPDATE_WHILE_EDITING</code>.
0556: * </p>
0557: *
0558: * @see #UPDATE_ON_SAVE
0559: * @see #UPDATE_WHILE_EDITING
0560: * @deprecated Since 3.0, views now always update while editing
0561: */
0562: public static final String UPDATE_JAVA_VIEWS = "JavaUI.update"; //$NON-NLS-1$
0563:
0564: /**
0565: * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
0566: *
0567: * @see #UPDATE_JAVA_VIEWS
0568: * @deprecated Since 3.0, views now always update while editing
0569: */
0570: public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$
0571:
0572: /**
0573: * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
0574: *
0575: * @see #UPDATE_JAVA_VIEWS
0576: * @deprecated Since 3.0, views now always update while editing
0577: */
0578: public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$
0579:
0580: /**
0581: * A named preference that holds the path of the Javadoc command used by the Javadoc creation wizard.
0582: * <p>
0583: * Value is of type <code>String</code>.
0584: * </p>
0585: */
0586: public static final String JAVADOC_COMMAND = "command"; //$NON-NLS-1$
0587:
0588: /**
0589: * A named preference that defines whether the hint to make hover sticky should be shown.
0590: *
0591: * @see JavaUI
0592: * @since 3.0
0593: * @deprecated As of 3.3, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_SHOW_TEXT_HOVER_AFFORDANCE}
0594: */
0595: public static final String EDITOR_SHOW_TEXT_HOVER_AFFORDANCE = "PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE"; //$NON-NLS-1$
0596:
0597: /**
0598: * A named preference that defines the key for the hover modifiers.
0599: *
0600: * @see JavaUI
0601: * @since 2.1
0602: */
0603: public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$
0604:
0605: /**
0606: * A named preference that defines the key for the hover modifier state masks.
0607: * The value is only used if the value of <code>EDITOR_TEXT_HOVER_MODIFIERS</code>
0608: * cannot be resolved to valid SWT modifier bits.
0609: *
0610: * @see JavaUI
0611: * @see #EDITOR_TEXT_HOVER_MODIFIERS
0612: * @since 2.1.1
0613: */
0614: public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
0615:
0616: /**
0617: * The id of the best match hover contributed for extension point
0618: * <code>javaEditorTextHovers</code>.
0619: *
0620: * @since 2.1
0621: */
0622: public static final String ID_BESTMATCH_HOVER = "org.eclipse.jdt.ui.BestMatchHover"; //$NON-NLS-1$
0623:
0624: /**
0625: * The id of the source code hover contributed for extension point
0626: * <code>javaEditorTextHovers</code>.
0627: *
0628: * @since 2.1
0629: */
0630: public static final String ID_SOURCE_HOVER = "org.eclipse.jdt.ui.JavaSourceHover"; //$NON-NLS-1$
0631:
0632: /**
0633: * The id of the javadoc hover contributed for extension point
0634: * <code>javaEditorTextHovers</code>.
0635: *
0636: * @since 2.1
0637: */
0638: public static final String ID_JAVADOC_HOVER = "org.eclipse.jdt.ui.JavadocHover"; //$NON-NLS-1$
0639:
0640: /**
0641: * The id of the problem hover contributed for extension point
0642: * <code>javaEditorTextHovers</code>.
0643: *
0644: * @since 2.1
0645: * @deprecated as of 3.0, this hover is no longer available
0646: */
0647: public static final String ID_PROBLEM_HOVER = "org.eclipse.jdt.ui.ProblemHover"; //$NON-NLS-1$
0648:
0649: /**
0650: * A named preference that controls whether bracket matching highlighting is turned on or off.
0651: * <p>
0652: * Value is of type <code>Boolean</code>.
0653: * </p>
0654: */
0655: public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
0656:
0657: /**
0658: * A named preference that holds the color used to highlight matching brackets.
0659: * <p>
0660: * Value is of type <code>String</code>. A RGB color value encoded as a string
0661: * using class <code>PreferenceConverter</code>
0662: * </p>
0663: *
0664: * @see org.eclipse.jface.resource.StringConverter
0665: * @see org.eclipse.jface.preference.PreferenceConverter
0666: */
0667: public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
0668:
0669: /**
0670: * A named preference that controls whether the current line highlighting is turned on or off.
0671: * <p>
0672: * Value is of type <code>Boolean</code>.
0673: * </p>
0674: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
0675: */
0676: public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
0677:
0678: /**
0679: * A named preference that holds the color used to highlight the current line.
0680: * <p>
0681: * Value is of type <code>String</code>. A RGB color value encoded as a string
0682: * using class <code>PreferenceConverter</code>
0683: * </p>
0684: *
0685: * @see org.eclipse.jface.resource.StringConverter
0686: * @see org.eclipse.jface.preference.PreferenceConverter
0687: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
0688: */
0689: public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
0690:
0691: /**
0692: * A named preference that controls whether the print margin is turned on or off.
0693: * <p>
0694: * Value is of type <code>Boolean</code>.
0695: * </p>
0696: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
0697: */
0698: public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
0699:
0700: /**
0701: * A named preference that holds the color used to render the print margin.
0702: * <p>
0703: * Value is of type <code>String</code>. A RGB color value encoded as a string
0704: * using class <code>PreferenceConverter</code>
0705: * </p>
0706: *
0707: * @see org.eclipse.jface.resource.StringConverter
0708: * @see org.eclipse.jface.preference.PreferenceConverter
0709: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
0710: */
0711: public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
0712:
0713: /**
0714: * Print margin column. Integer value.
0715: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
0716: */
0717: public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
0718:
0719: /**
0720: * A named preference that holds the color used for the find/replace scope.
0721: * <p>
0722: * Value is of type <code>String</code>. A RGB color value encoded as a string
0723: * using class <code>PreferenceConverter</code>
0724: * </p>
0725: *
0726: * @see org.eclipse.jface.resource.StringConverter
0727: * @see org.eclipse.jface.preference.PreferenceConverter
0728: * @deprecated As of 3.2, use {@link AbstractTextEditor#PREFERENCE_COLOR_FIND_SCOPE} instead}
0729: */
0730: public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
0731:
0732: /**
0733: * A named preference that specifies if the editor uses spaces for tabs.
0734: * <p>
0735: * Value is of type <code>Boolean</code>. If <code>true</code>spaces instead of tabs are used
0736: * in the editor. If <code>false</code> the editor inserts a tab character when pressing the tab
0737: * key.
0738: * </p>
0739: * @deprecated As of 3.1 replaced by the formatter setting defined in {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_TAB_CHAR}
0740: */
0741: public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
0742:
0743: /**
0744: * A named preference that holds the number of spaces used per tab in the editor.
0745: * <p>
0746: * Value is of type <code>Integer</code>: positive integer value specifying the number of
0747: * spaces per tab.
0748: * </p>
0749: * @deprecated As of 3.0 replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_TAB_WIDTH}
0750: */
0751: public final static String EDITOR_TAB_WIDTH = "org.eclipse.jdt.ui.editor.tab.width"; //$NON-NLS-1$
0752:
0753: /**
0754: * A named preference that controls whether the outline view selection
0755: * should stay in sync with with the element at the current cursor position.
0756: * <p>
0757: * Value is of type <code>Boolean</code>.
0758: * </p>
0759: * @since 2.1
0760: */
0761: public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
0762:
0763: /**
0764: * A named preference that controls if correction indicators are shown in the UI.
0765: * <p>
0766: * Value is of type <code>Boolean</code>.
0767: * </p>
0768: */
0769: public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
0770:
0771: /**
0772: * A named preference that controls whether the editor shows problem indicators in text (squiggly lines).
0773: * <p>
0774: * Value is of type <code>Boolean</code>.
0775: * </p>
0776: *
0777: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0778: */
0779: public final static String EDITOR_PROBLEM_INDICATION = "problemIndication"; //$NON-NLS-1$
0780:
0781: /**
0782: * A named preference that holds the color used to render problem indicators.
0783: * <p>
0784: * Value is of type <code>String</code>. A RGB color value encoded as a string
0785: * using class <code>PreferenceConverter</code>
0786: * </p>
0787: *
0788: * @see #EDITOR_PROBLEM_INDICATION
0789: * @see org.eclipse.jface.resource.StringConverter
0790: * @see org.eclipse.jface.preference.PreferenceConverter
0791: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0792: */
0793: public final static String EDITOR_PROBLEM_INDICATION_COLOR = "problemIndicationColor"; //$NON-NLS-1$
0794:
0795: /**
0796: * A named preference that controls whether the editor shows warning indicators in text (squiggly lines).
0797: * <p>
0798: * Value is of type <code>Boolean</code>.
0799: * </p>
0800: * @since 2.1
0801: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0802: */
0803: public final static String EDITOR_WARNING_INDICATION = "warningIndication"; //$NON-NLS-1$
0804:
0805: /**
0806: * A named preference that holds the color used to render warning indicators.
0807: * <p>
0808: * Value is of type <code>String</code>. A RGB color value encoded as a string
0809: * using class <code>PreferenceConverter</code>
0810: * </p>
0811: *
0812: * @see #EDITOR_WARNING_INDICATION
0813: * @see org.eclipse.jface.resource.StringConverter
0814: * @see org.eclipse.jface.preference.PreferenceConverter
0815: * @since 2.1
0816: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0817: */
0818: public final static String EDITOR_WARNING_INDICATION_COLOR = "warningIndicationColor"; //$NON-NLS-1$
0819:
0820: /**
0821: * A named preference that controls whether the editor shows task indicators in text (squiggly lines).
0822: * <p>
0823: * Value is of type <code>Boolean</code>.
0824: * </p>
0825: * @since 2.1
0826: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0827: */
0828: public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
0829:
0830: /**
0831: * A named preference that holds the color used to render task indicators.
0832: * <p>
0833: * Value is of type <code>String</code>. A RGB color value encoded as a string
0834: * using class <code>PreferenceConverter</code>
0835: * </p>
0836: *
0837: * @see #EDITOR_TASK_INDICATION
0838: * @see org.eclipse.jface.resource.StringConverter
0839: * @see org.eclipse.jface.preference.PreferenceConverter
0840: * @since 2.1
0841: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0842: */
0843: public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
0844:
0845: /**
0846: * A named preference that controls whether the editor shows bookmark
0847: * indicators in text (squiggly lines).
0848: * <p>
0849: * Value is of type <code>Boolean</code>.
0850: * </p>
0851: * @since 2.1
0852: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0853: */
0854: public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
0855:
0856: /**
0857: * A named preference that holds the color used to render bookmark indicators.
0858: * <p>
0859: * Value is of type <code>String</code>. A RGB color value encoded as a string
0860: * using class <code>PreferenceConverter</code>
0861: * </p>
0862: *
0863: * @see #EDITOR_BOOKMARK_INDICATION
0864: * @see org.eclipse.jface.resource.StringConverter
0865: * @see org.eclipse.jface.preference.PreferenceConverter
0866: * @since 2.1
0867: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0868: */
0869: public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
0870:
0871: /**
0872: * A named preference that controls whether the editor shows search
0873: * indicators in text (squiggly lines).
0874: * <p>
0875: * Value is of type <code>Boolean</code>.
0876: * </p>
0877: * @since 2.1
0878: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0879: */
0880: public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
0881:
0882: /**
0883: * A named preference that holds the color used to render search indicators.
0884: * <p>
0885: * Value is of type <code>String</code>. A RGB color value encoded as a string
0886: * using class <code>PreferenceConverter</code>
0887: * </p>
0888: *
0889: * @see #EDITOR_SEARCH_RESULT_INDICATION
0890: * @see org.eclipse.jface.resource.StringConverter
0891: * @see org.eclipse.jface.preference.PreferenceConverter
0892: * @since 2.1
0893: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0894: */
0895: public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
0896:
0897: /**
0898: * A named preference that controls whether the editor shows unknown
0899: * indicators in text (squiggly lines).
0900: * <p>
0901: * Value is of type <code>Boolean</code>.
0902: * </p>
0903: * @since 2.1
0904: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0905: */
0906: public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
0907:
0908: /**
0909: * A named preference that holds the color used to render unknown
0910: * indicators.
0911: * <p>
0912: * Value is of type <code>String</code>. A RGB color value encoded as a string
0913: * using class <code>PreferenceConverter</code>
0914: * </p>
0915: *
0916: * @see #EDITOR_UNKNOWN_INDICATION
0917: * @see org.eclipse.jface.resource.StringConverter
0918: * @see org.eclipse.jface.preference.PreferenceConverter
0919: * @since 2.1
0920: * @deprecated
0921: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0922: */
0923: public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
0924:
0925: /**
0926: * A named preference that controls whether the overview ruler shows error
0927: * indicators.
0928: * <p>
0929: * Value is of type <code>Boolean</code>.
0930: * </p>
0931: * @since 2.1
0932: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0933: */
0934: public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
0935:
0936: /**
0937: * A named preference that controls whether the overview ruler shows warning
0938: * indicators.
0939: * <p>
0940: * Value is of type <code>Boolean</code>.
0941: * </p>
0942: * @since 2.1
0943: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0944: */
0945: public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
0946:
0947: /**
0948: * A named preference that controls whether the overview ruler shows task
0949: * indicators.
0950: * <p>
0951: * Value is of type <code>Boolean</code>.
0952: * </p>
0953: * @since 2.1
0954: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0955: */
0956: public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
0957:
0958: /**
0959: * A named preference that controls whether the overview ruler shows
0960: * bookmark indicators.
0961: * <p>
0962: * Value is of type <code>Boolean</code>.
0963: * </p>
0964: * @since 2.1
0965: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0966: */
0967: public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
0968:
0969: /**
0970: * A named preference that controls whether the overview ruler shows
0971: * search result indicators.
0972: * <p>
0973: * Value is of type <code>Boolean</code>.
0974: * </p>
0975: * @since 2.1
0976: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0977: */
0978: public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
0979:
0980: /**
0981: * A named preference that controls whether the overview ruler shows
0982: * unknown indicators.
0983: * <p>
0984: * Value is of type <code>Boolean</code>.
0985: * </p>
0986: * @since 2.1
0987: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
0988: */
0989: public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
0990:
0991: /**
0992: * A named preference that controls whether the 'close strings' feature
0993: * is enabled.
0994: * <p>
0995: * Value is of type <code>Boolean</code>.
0996: * </p>
0997: * @since 2.1
0998: */
0999: public final static String EDITOR_CLOSE_STRINGS = "closeStrings"; //$NON-NLS-1$
1000:
1001: /**
1002: * A named preference that controls whether the 'wrap strings' feature is
1003: * enabled.
1004: * <p>
1005: * Value is of type <code>Boolean</code>.
1006: * </p>
1007: * @since 2.1
1008: */
1009: public final static String EDITOR_WRAP_STRINGS = "wrapStrings"; //$NON-NLS-1$
1010:
1011: /**
1012: * A named preference that controls whether the 'escape strings' feature is
1013: * enabled.
1014: * <p>
1015: * Value is of type <code>Boolean</code>.
1016: * </p>
1017: * @since 3.0
1018: */
1019: public final static String EDITOR_ESCAPE_STRINGS = "escapeStrings"; //$NON-NLS-1$
1020:
1021: /**
1022: * A named preference that controls whether the 'close brackets' feature is
1023: * enabled.
1024: * <p>
1025: * Value is of type <code>Boolean</code>.
1026: * </p>
1027: * @since 2.1
1028: */
1029: public final static String EDITOR_CLOSE_BRACKETS = "closeBrackets"; //$NON-NLS-1$
1030:
1031: /**
1032: * A named preference that controls whether the 'close braces' feature is
1033: * enabled.
1034: * <p>
1035: * Value is of type <code>Boolean</code>.
1036: * </p>
1037: * @since 2.1
1038: */
1039: public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
1040:
1041: /**
1042: * A named preference that controls whether the 'close java docs' feature is
1043: * enabled.
1044: * <p>
1045: * Value is of type <code>Boolean</code>.
1046: * </p>
1047: * @since 2.1
1048: */
1049: public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
1050:
1051: /**
1052: * A named preference that controls whether the 'add JavaDoc tags' feature
1053: * is enabled.
1054: * <p>
1055: * Value is of type <code>Boolean</code>.
1056: * </p>
1057: * @since 2.1
1058: */
1059: public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
1060:
1061: /**
1062: * A named preference that controls whether the 'format Javadoc tags'
1063: * feature is enabled.
1064: * <p>
1065: * Value is of type <code>Boolean</code>.
1066: * </p>
1067: * @since 2.1
1068: */
1069: public final static String EDITOR_FORMAT_JAVADOCS = "autoFormatJavaDocs"; //$NON-NLS-1$
1070:
1071: /**
1072: * A named preference that controls whether the 'smart paste' feature is
1073: * enabled.
1074: * <p>
1075: * Value is of type <code>Boolean</code>.
1076: * </p>
1077: * @since 2.1
1078: */
1079: public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
1080:
1081: /**
1082: * A named preference that controls whether 'paste' should update the imports.
1083: * <p>
1084: * Value is of type <code>Boolean</code>.
1085: * </p>
1086: * @since 3.0
1087: */
1088: public final static String EDITOR_IMPORTS_ON_PASTE = "importsOnPaste"; //$NON-NLS-1$
1089:
1090: /**
1091: * A named preference that controls whether the 'smart home-end' feature is
1092: * enabled.
1093: * <p>
1094: * Value is of type <code>Boolean</code>.
1095: * </p>
1096: * @since 2.1
1097: * @deprecated as of 3.3 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants#EDITOR_SMART_HOME_END}
1098: */
1099: public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
1100:
1101: /**
1102: * A named preference that controls whether the 'sub-word navigation' feature is
1103: * enabled.
1104: * <p>
1105: * Value is of type <code>Boolean</code>.
1106: * </p>
1107: * @since 3.0
1108: */
1109: public final static String EDITOR_SUB_WORD_NAVIGATION = "subWordNavigation"; //$NON-NLS-1$
1110:
1111: /**
1112: * A named preference that controls if temporary problems are evaluated and shown in the UI.
1113: * <p>
1114: * Value is of type <code>Boolean</code>.
1115: * </p>
1116: */
1117: public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
1118:
1119: /**
1120: * A named preference that controls if the overview ruler is shown in the UI.
1121: * <p>
1122: * Value is of type <code>Boolean</code>.
1123: * </p>
1124: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
1125: */
1126: public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
1127:
1128: /**
1129: * A named preference that controls if the line number ruler is shown in the UI.
1130: * <p>
1131: * Value is of type <code>Boolean</code>.
1132: * </p>
1133: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
1134: */
1135: public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$
1136:
1137: /**
1138: * A named preference that holds the color used to render line numbers inside the line number ruler.
1139: * <p>
1140: * Value is of type <code>String</code>. A RGB color value encoded as a string
1141: * using class <code>PreferenceConverter</code>
1142: * </p>
1143: *
1144: * @see org.eclipse.jface.resource.StringConverter
1145: * @see org.eclipse.jface.preference.PreferenceConverter
1146: * @see #EDITOR_LINE_NUMBER_RULER
1147: * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
1148: */
1149: public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$
1150:
1151: /**
1152: * A named preference that holds the color used to render linked positions inside code templates.
1153: * <p>
1154: * Value is of type <code>String</code>. A RGB color value encoded as a string
1155: * using class <code>PreferenceConverter</code>
1156: * </p>
1157: *
1158: * @deprecated not used any longer as the linked positions are displayed as annotations
1159: *
1160: * @see org.eclipse.jface.resource.StringConverter
1161: * @see org.eclipse.jface.preference.PreferenceConverter
1162: */
1163: public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
1164:
1165: /**
1166: * A named preference that holds the color used as the text foreground.
1167: * This value has not effect if the system default color is used.
1168: * <p>
1169: * Value is of type <code>String</code>. A RGB color value encoded as a string
1170: * using class <code>PreferenceConverter</code>
1171: * </p>
1172: *
1173: * @see org.eclipse.jface.resource.StringConverter
1174: * @see org.eclipse.jface.preference.PreferenceConverter
1175: * @deprecated As of 3.1, replaced by {@link AbstractTextEditor#PREFERENCE_COLOR_FOREGROUND}
1176: */
1177: public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
1178:
1179: /**
1180: * A named preference that describes if the system default foreground color
1181: * is used as the text foreground.
1182: * <p>
1183: * Value is of type <code>Boolean</code>.
1184: * </p>
1185: * @deprecated As of 3.1, replaced by {@link AbstractTextEditor#PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT}
1186: */
1187: public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
1188:
1189: /**
1190: * A named preference that holds the color used as the text background.
1191: * This value has not effect if the system default color is used.
1192: * <p>
1193: * Value is of type <code>String</code>. A RGB color value encoded as a string
1194: * using class <code>PreferenceConverter</code>
1195: * </p>
1196: *
1197: * @see org.eclipse.jface.resource.StringConverter
1198: * @see org.eclipse.jface.preference.PreferenceConverter
1199: * @deprecated As of 3.1, replaced by {@link AbstractTextEditor#PREFERENCE_COLOR_BACKGROUND}
1200: */
1201: public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
1202:
1203: /**
1204: * A named preference that describes if the system default background color
1205: * is used as the text background.
1206: * <p>
1207: * Value is of type <code>Boolean</code>.
1208: * </p>
1209: * @deprecated As of 3.1, replaced by {@link AbstractTextEditor#PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT}
1210: */
1211: public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
1212:
1213: /**
1214: * Preference key suffix for bold text style preference keys.
1215: *
1216: * @since 2.1
1217: */
1218: public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
1219:
1220: /**
1221: * Preference key suffix for italic text style preference keys.
1222: *
1223: * @since 3.0
1224: */
1225: public static final String EDITOR_ITALIC_SUFFIX = "_italic"; //$NON-NLS-1$
1226:
1227: /**
1228: * Preference key suffix for strikethrough text style preference keys.
1229: *
1230: * @since 3.1
1231: */
1232: public static final String EDITOR_STRIKETHROUGH_SUFFIX = "_strikethrough"; //$NON-NLS-1$
1233:
1234: /**
1235: * Preference key suffix for underline text style preference keys.
1236: *
1237: * @since 3.1
1238: */
1239: public static final String EDITOR_UNDERLINE_SUFFIX = "_underline"; //$NON-NLS-1$
1240:
1241: /**
1242: * A named preference that holds the color used to render multi-line comments.
1243: * <p>
1244: * Value is of type <code>String</code>. A RGB color value encoded as a string
1245: * using class <code>PreferenceConverter</code>
1246: * </p>
1247: *
1248: * @see org.eclipse.jface.resource.StringConverter
1249: * @see org.eclipse.jface.preference.PreferenceConverter
1250: */
1251: public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IJavaColorConstants.JAVA_MULTI_LINE_COMMENT;
1252:
1253: /**
1254: * The symbolic font name for the Java editor text font
1255: * (value <code>"org.eclipse.jdt.ui.editors.textfont"</code>).
1256: *
1257: * @since 2.1
1258: */
1259: public final static String EDITOR_TEXT_FONT = "org.eclipse.jdt.ui.editors.textfont"; //$NON-NLS-1$
1260:
1261: /**
1262: * A named preference that controls whether multi-line comments are rendered in bold.
1263: * <p>
1264: * Value is of type <code>Boolean</code>. If <code>true</code> multi-line comments are rendered
1265: * in bold. If <code>false</code> the are rendered using no font style attribute.
1266: * </p>
1267: */
1268: public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IJavaColorConstants.JAVA_MULTI_LINE_COMMENT
1269: + EDITOR_BOLD_SUFFIX;
1270:
1271: /**
1272: * A named preference that controls whether multi-line comments are rendered in italic.
1273: * <p>
1274: * Value is of type <code>Boolean</code>. If <code>true</code> multi-line comments are rendered
1275: * in italic. If <code>false</code> the are rendered using no italic font style attribute.
1276: * </p>
1277: *
1278: * @since 3.0
1279: */
1280: public final static String EDITOR_MULTI_LINE_COMMENT_ITALIC = IJavaColorConstants.JAVA_MULTI_LINE_COMMENT
1281: + EDITOR_ITALIC_SUFFIX;
1282:
1283: /**
1284: * A named preference that controls whether multi-line comments are rendered in strikethrough.
1285: * <p>
1286: * Value is of type <code>Boolean</code>. If <code>true</code> multi-line comments are rendered
1287: * in strikethrough. If <code>false</code> the are rendered using no strikethrough font style attribute.
1288: * </p>
1289: *
1290: * @since 3.1
1291: */
1292: public final static String EDITOR_MULTI_LINE_COMMENT_STRIKETHROUGH = IJavaColorConstants.JAVA_MULTI_LINE_COMMENT
1293: + EDITOR_STRIKETHROUGH_SUFFIX;
1294:
1295: /**
1296: * A named preference that controls whether multi-line comments are rendered in underline.
1297: * <p>
1298: * Value is of type <code>Boolean</code>. If <code>true</code> multi-line comments are rendered
1299: * in underline. If <code>false</code> the are rendered using no underline font style attribute.
1300: * </p>
1301: *
1302: * @since 3.1
1303: */
1304: public final static String EDITOR_MULTI_LINE_COMMENT_UNDERLINE = IJavaColorConstants.JAVA_MULTI_LINE_COMMENT
1305: + EDITOR_UNDERLINE_SUFFIX;
1306:
1307: /**
1308: * A named preference that holds the color used to render single line comments.
1309: * <p>
1310: * Value is of type <code>String</code>. A RGB color value encoded as a string
1311: * using class <code>PreferenceConverter</code>
1312: * </p>
1313: *
1314: * @see org.eclipse.jface.resource.StringConverter
1315: * @see org.eclipse.jface.preference.PreferenceConverter
1316: */
1317: public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT;
1318:
1319: /**
1320: * A named preference that controls whether single line comments are rendered in bold.
1321: * <p>
1322: * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1323: * in bold. If <code>false</code> the are rendered using no font style attribute.
1324: * </p>
1325: */
1326: public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT
1327: + EDITOR_BOLD_SUFFIX;
1328:
1329: /**
1330: * A named preference that controls whether single line comments are rendered in italic.
1331: * <p>
1332: * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1333: * in italic. If <code>false</code> the are rendered using no italic font style attribute.
1334: * </p>
1335: *
1336: * @since 3.0
1337: */
1338: public final static String EDITOR_SINGLE_LINE_COMMENT_ITALIC = IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT
1339: + EDITOR_ITALIC_SUFFIX;
1340:
1341: /**
1342: * A named preference that controls whether single line comments are rendered in strikethrough.
1343: * <p>
1344: * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1345: * in strikethrough. If <code>false</code> the are rendered using no italic font style attribute.
1346: * </p>
1347: *
1348: * @since 3.1
1349: */
1350: public final static String EDITOR_SINGLE_LINE_COMMENT_STRIKETHROUGH = IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT
1351: + EDITOR_STRIKETHROUGH_SUFFIX;
1352:
1353: /**
1354: * A named preference that controls whether single line comments are rendered in underline.
1355: * <p>
1356: * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1357: * in underline. If <code>false</code> the are rendered using no italic font style attribute.
1358: * </p>
1359: *
1360: * @since 3.1
1361: */
1362: public final static String EDITOR_SINGLE_LINE_COMMENT_UNDERLINE = IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT
1363: + EDITOR_UNDERLINE_SUFFIX;
1364:
1365: /**
1366: * A named preference that holds the color used to render java keywords.
1367: * <p>
1368: * Value is of type <code>String</code>. A RGB color value encoded as a string
1369: * using class <code>PreferenceConverter</code>
1370: * </p>
1371: *
1372: * @see org.eclipse.jface.resource.StringConverter
1373: * @see org.eclipse.jface.preference.PreferenceConverter
1374: */
1375: public final static String EDITOR_JAVA_KEYWORD_COLOR = IJavaColorConstants.JAVA_KEYWORD;
1376:
1377: /**
1378: * A named preference that controls whether keywords are rendered in bold.
1379: * <p>
1380: * Value is of type <code>Boolean</code>.
1381: * </p>
1382: */
1383: public final static String EDITOR_JAVA_KEYWORD_BOLD = IJavaColorConstants.JAVA_KEYWORD
1384: + EDITOR_BOLD_SUFFIX;
1385:
1386: /**
1387: * A named preference that controls whether keywords are rendered in italic.
1388: * <p>
1389: * Value is of type <code>Boolean</code>.
1390: * </p>
1391: *
1392: * @since 3.0
1393: */
1394: public final static String EDITOR_JAVA_KEYWORD_ITALIC = IJavaColorConstants.JAVA_KEYWORD
1395: + EDITOR_ITALIC_SUFFIX;
1396:
1397: /**
1398: * A named preference that controls whether keywords are rendered in strikethrough.
1399: * <p>
1400: * Value is of type <code>Boolean</code>.
1401: * </p>
1402: *
1403: * @since 3.1
1404: */
1405: public final static String EDITOR_JAVA_KEYWORD_STRIKETHROUGH = IJavaColorConstants.JAVA_KEYWORD
1406: + EDITOR_STRIKETHROUGH_SUFFIX;
1407:
1408: /**
1409: * A named preference that controls whether keywords are rendered in underline.
1410: * <p>
1411: * Value is of type <code>Boolean</code>.
1412: * </p>
1413: *
1414: * @since 3.1
1415: */
1416: public final static String EDITOR_JAVA_KEYWORD_UNDERLINE = IJavaColorConstants.JAVA_KEYWORD
1417: + EDITOR_UNDERLINE_SUFFIX;
1418:
1419: /**
1420: * A named preference that holds the color used to render string constants.
1421: * <p>
1422: * Value is of type <code>String</code>. A RGB color value encoded as a string
1423: * using class <code>PreferenceConverter</code>
1424: * </p>
1425: *
1426: * @see org.eclipse.jface.resource.StringConverter
1427: * @see org.eclipse.jface.preference.PreferenceConverter
1428: */
1429: public final static String EDITOR_STRING_COLOR = IJavaColorConstants.JAVA_STRING;
1430:
1431: /**
1432: * A named preference that controls whether string constants are rendered in bold.
1433: * <p>
1434: * Value is of type <code>Boolean</code>.
1435: * </p>
1436: */
1437: public final static String EDITOR_STRING_BOLD = IJavaColorConstants.JAVA_STRING
1438: + EDITOR_BOLD_SUFFIX;
1439:
1440: /**
1441: * A named preference that controls whether string constants are rendered in italic.
1442: * <p>
1443: * Value is of type <code>Boolean</code>.
1444: * </p>
1445: *
1446: * @since 3.0
1447: */
1448: public final static String EDITOR_STRING_ITALIC = IJavaColorConstants.JAVA_STRING
1449: + EDITOR_ITALIC_SUFFIX;
1450:
1451: /**
1452: * A named preference that controls whether string constants are rendered in strikethrough.
1453: * <p>
1454: * Value is of type <code>Boolean</code>.
1455: * </p>
1456: *
1457: * @since 3.1
1458: */
1459: public final static String EDITOR_STRING_STRIKETHROUGH = IJavaColorConstants.JAVA_STRING
1460: + EDITOR_STRIKETHROUGH_SUFFIX;
1461:
1462: /**
1463: * A named preference that controls whether string constants are rendered in underline.
1464: * <p>
1465: * Value is of type <code>Boolean</code>.
1466: * </p>
1467: *
1468: * @since 3.1
1469: */
1470: public final static String EDITOR_STRING_UNDERLINE = IJavaColorConstants.JAVA_STRING
1471: + EDITOR_UNDERLINE_SUFFIX;
1472:
1473: /**
1474: * A named preference that holds the color used to render method names.
1475: * <p>
1476: * Value is of type <code>String</code>. A RGB color value encoded as a string
1477: * using class <code>PreferenceConverter</code>
1478: * </p>
1479: *
1480: * @see org.eclipse.jface.resource.StringConverter
1481: * @see org.eclipse.jface.preference.PreferenceConverter
1482: * @since 3.0
1483: * @deprecated the method name highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#METHOD}
1484: */
1485: public final static String EDITOR_JAVA_METHOD_NAME_COLOR = IJavaColorConstants.JAVA_METHOD_NAME;
1486:
1487: /**
1488: * A named preference that controls whether method names are rendered in bold.
1489: * <p>
1490: * Value is of type <code>Boolean</code>.
1491: * </p>
1492: *
1493: * @since 3.0
1494: * @deprecated the method name highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#METHOD}
1495: */
1496: public final static String EDITOR_JAVA_METHOD_NAME_BOLD = IJavaColorConstants.JAVA_METHOD_NAME
1497: + EDITOR_BOLD_SUFFIX;
1498:
1499: /**
1500: * A named preference that controls whether method names are rendered in italic.
1501: * <p>
1502: * Value is of type <code>Boolean</code>.
1503: * </p>
1504: *
1505: * @since 3.0
1506: * @deprecated the method name highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#METHOD}
1507: */
1508: public final static String EDITOR_JAVA_METHOD_NAME_ITALIC = IJavaColorConstants.JAVA_METHOD_NAME
1509: + EDITOR_ITALIC_SUFFIX;
1510:
1511: /**
1512: * A named preference that holds the color used to render the 'return' keyword.
1513: * <p>
1514: * Value is of type <code>String</code>. A RGB color value encoded as a string
1515: * using class <code>PreferenceConverter</code>
1516: * </p>
1517: *
1518: * @see org.eclipse.jface.resource.StringConverter
1519: * @see org.eclipse.jface.preference.PreferenceConverter
1520: * @since 3.0
1521: */
1522: public final static String EDITOR_JAVA_KEYWORD_RETURN_COLOR = IJavaColorConstants.JAVA_KEYWORD_RETURN;
1523:
1524: /**
1525: * A named preference that controls whether 'return' keyword is rendered in bold.
1526: * <p>
1527: * Value is of type <code>Boolean</code>.
1528: * </p>
1529: *
1530: * @since 3.0
1531: */
1532: public final static String EDITOR_JAVA_KEYWORD_RETURN_BOLD = IJavaColorConstants.JAVA_KEYWORD_RETURN
1533: + EDITOR_BOLD_SUFFIX;
1534:
1535: /**
1536: * A named preference that controls whether 'return' keyword is rendered in italic.
1537: * <p>
1538: * Value is of type <code>Boolean</code>.
1539: * </p>
1540: *
1541: * @since 3.0
1542: */
1543: public final static String EDITOR_JAVA_KEYWORD_RETURN_ITALIC = IJavaColorConstants.JAVA_KEYWORD_RETURN
1544: + EDITOR_ITALIC_SUFFIX;
1545:
1546: /**
1547: * A named preference that controls whether 'return' keyword is rendered in strikethrough.
1548: * <p>
1549: * Value is of type <code>Boolean</code>.
1550: * </p>
1551: *
1552: * @since 3.1
1553: */
1554: public final static String EDITOR_JAVA_KEYWORD_RETURN_STRIKETHROUGH = IJavaColorConstants.JAVA_KEYWORD_RETURN
1555: + EDITOR_STRIKETHROUGH_SUFFIX;
1556:
1557: /**
1558: * A named preference that controls whether 'return' keyword is rendered in italic.
1559: * <p>
1560: * Value is of type <code>Boolean</code>.
1561: * </p>
1562: *
1563: * @since 3.1
1564: */
1565: public final static String EDITOR_JAVA_KEYWORD_RETURN_UNDERLINE = IJavaColorConstants.JAVA_KEYWORD_RETURN
1566: + EDITOR_UNDERLINE_SUFFIX;
1567:
1568: /**
1569: * A named preference that holds the color used to render operators.
1570: * <p>
1571: * Value is of type <code>String</code>. A RGB color value encoded as a string
1572: * using class <code>PreferenceConverter</code>
1573: * </p>
1574: *
1575: * @see org.eclipse.jface.resource.StringConverter
1576: * @see org.eclipse.jface.preference.PreferenceConverter
1577: * @since 3.0
1578: */
1579: public final static String EDITOR_JAVA_OPERATOR_COLOR = IJavaColorConstants.JAVA_OPERATOR;
1580:
1581: /**
1582: * A named preference that controls whether operators are rendered in bold.
1583: * <p>
1584: * Value is of type <code>Boolean</code>.
1585: * </p>
1586: *
1587: * @since 3.0
1588: */
1589: public final static String EDITOR_JAVA_OPERATOR_BOLD = IJavaColorConstants.JAVA_OPERATOR
1590: + EDITOR_BOLD_SUFFIX;
1591:
1592: /**
1593: * A named preference that controls whether operators are rendered in italic.
1594: * <p>
1595: * Value is of type <code>Boolean</code>.
1596: * </p>
1597: *
1598: * @since 3.0
1599: */
1600: public final static String EDITOR_JAVA_OPERATOR_ITALIC = IJavaColorConstants.JAVA_OPERATOR
1601: + EDITOR_ITALIC_SUFFIX;
1602:
1603: /**
1604: * A named preference that controls whether operators are rendered in strikethrough.
1605: * <p>
1606: * Value is of type <code>Boolean</code>.
1607: * </p>
1608: *
1609: * @since 3.1
1610: */
1611: public final static String EDITOR_JAVA_OPERATOR_STRIKETHROUGH = IJavaColorConstants.JAVA_OPERATOR
1612: + EDITOR_STRIKETHROUGH_SUFFIX;
1613:
1614: /**
1615: * A named preference that controls whether operators are rendered in underline.
1616: * <p>
1617: * Value is of type <code>Boolean</code>.
1618: * </p>
1619: *
1620: * @since 3.1
1621: */
1622: public final static String EDITOR_JAVA_OPERATOR_UNDERLINE = IJavaColorConstants.JAVA_OPERATOR
1623: + EDITOR_UNDERLINE_SUFFIX;
1624:
1625: /**
1626: * A named preference that holds the color used to render brackets.
1627: * <p>
1628: * Value is of type <code>String</code>. A RGB color value encoded as a string
1629: * using class <code>PreferenceConverter</code>
1630: * </p>
1631: *
1632: * @see org.eclipse.jface.resource.StringConverter
1633: * @see org.eclipse.jface.preference.PreferenceConverter
1634: * @since 3.3
1635: */
1636: public final static String EDITOR_JAVA_BRACKET_COLOR = IJavaColorConstants.JAVA_BRACKET;
1637:
1638: /**
1639: * A named preference that controls whether brackets are rendered in bold.
1640: * <p>
1641: * Value is of type <code>Boolean</code>.
1642: * </p>
1643: *
1644: * @since 3.3
1645: */
1646: public final static String EDITOR_JAVA_BRACKET_BOLD = IJavaColorConstants.JAVA_BRACKET
1647: + EDITOR_BOLD_SUFFIX;
1648:
1649: /**
1650: * A named preference that controls whether brackets are rendered in italic.
1651: * <p>
1652: * Value is of type <code>Boolean</code>.
1653: * </p>
1654: *
1655: * @since 3.3
1656: */
1657: public final static String EDITOR_JAVA_BRACKET_ITALIC = IJavaColorConstants.JAVA_BRACKET
1658: + EDITOR_ITALIC_SUFFIX;
1659:
1660: /**
1661: * A named preference that controls whether brackets are rendered in strikethrough.
1662: * <p>
1663: * Value is of type <code>Boolean</code>.
1664: * </p>
1665: *
1666: * @since 3.3
1667: */
1668: public final static String EDITOR_JAVA_BRACKET_STRIKETHROUGH = IJavaColorConstants.JAVA_BRACKET
1669: + EDITOR_STRIKETHROUGH_SUFFIX;
1670:
1671: /**
1672: * A named preference that controls whether brackets are rendered in underline.
1673: * <p>
1674: * Value is of type <code>Boolean</code>.
1675: * </p>
1676: *
1677: * @since 3.3
1678: */
1679: public final static String EDITOR_JAVA_BRACKET_UNDERLINE = IJavaColorConstants.JAVA_BRACKET
1680: + EDITOR_UNDERLINE_SUFFIX;
1681:
1682: /**
1683: * A named preference that holds the color used to render annotations.
1684: * <p>
1685: * Value is of type <code>String</code>. A RGB color value encoded as a string
1686: * using class <code>PreferenceConverter</code>
1687: * </p>
1688: *
1689: * @see org.eclipse.jface.resource.StringConverter
1690: * @see org.eclipse.jface.preference.PreferenceConverter
1691: * @since 3.1
1692: * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1693: */
1694: public final static String EDITOR_JAVA_ANNOTATION_COLOR = IJavaColorConstants.JAVA_ANNOTATION;
1695:
1696: /**
1697: * A named preference that controls whether annotations are rendered in bold.
1698: * <p>
1699: * Value is of type <code>Boolean</code>.
1700: * </p>
1701: *
1702: * @since 3.1
1703: * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1704: */
1705: public final static String EDITOR_JAVA_ANNOTATION_BOLD = IJavaColorConstants.JAVA_ANNOTATION
1706: + EDITOR_BOLD_SUFFIX;
1707:
1708: /**
1709: * A named preference that controls whether annotations are rendered in italic.
1710: * <p>
1711: * Value is of type <code>Boolean</code>.
1712: * </p>
1713: *
1714: * @since 3.1
1715: * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1716: */
1717: public final static String EDITOR_JAVA_ANNOTATION_ITALIC = IJavaColorConstants.JAVA_ANNOTATION
1718: + EDITOR_ITALIC_SUFFIX;
1719:
1720: /**
1721: * A named preference that controls whether annotations are rendered in strikethrough.
1722: * <p>
1723: * Value is of type <code>Boolean</code>.
1724: * </p>
1725: *
1726: * @since 3.1
1727: * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1728: */
1729: public final static String EDITOR_JAVA_ANNOTATION_STRIKETHROUGH = IJavaColorConstants.JAVA_ANNOTATION
1730: + EDITOR_STRIKETHROUGH_SUFFIX;
1731:
1732: /**
1733: * A named preference that controls whether annotations are rendered in underline.
1734: * <p>
1735: * Value is of type <code>Boolean</code>.
1736: * </p>
1737: *
1738: * @since 3.1
1739: * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1740: */
1741: public final static String EDITOR_JAVA_ANNOTATION_UNDERLINE = IJavaColorConstants.JAVA_ANNOTATION
1742: + EDITOR_UNDERLINE_SUFFIX;
1743:
1744: /**
1745: * A named preference that holds the color used to render java default text.
1746: * <p>
1747: * Value is of type <code>String</code>. A RGB color value encoded as a string
1748: * using class <code>PreferenceConverter</code>
1749: * </p>
1750: *
1751: * @see org.eclipse.jface.resource.StringConverter
1752: * @see org.eclipse.jface.preference.PreferenceConverter
1753: */
1754: public final static String EDITOR_JAVA_DEFAULT_COLOR = IJavaColorConstants.JAVA_DEFAULT;
1755:
1756: /**
1757: * A named preference that controls whether Java default text is rendered in bold.
1758: * <p>
1759: * Value is of type <code>Boolean</code>.
1760: * </p>
1761: */
1762: public final static String EDITOR_JAVA_DEFAULT_BOLD = IJavaColorConstants.JAVA_DEFAULT
1763: + EDITOR_BOLD_SUFFIX;
1764:
1765: /**
1766: * A named preference that controls whether Java default text is rendered in italic.
1767: * <p>
1768: * Value is of type <code>Boolean</code>.
1769: * </p>
1770: *
1771: * @since 3.0
1772: */
1773: public final static String EDITOR_JAVA_DEFAULT_ITALIC = IJavaColorConstants.JAVA_DEFAULT
1774: + EDITOR_ITALIC_SUFFIX;
1775: /**
1776: * A named preference that controls whether Java default text is rendered in strikethrough.
1777: * <p>
1778: * Value is of type <code>Boolean</code>.
1779: * </p>
1780: *
1781: * @since 3.1
1782: */
1783: public final static String EDITOR_JAVA_DEFAULT_STRIKETHROUGH = IJavaColorConstants.JAVA_DEFAULT
1784: + EDITOR_STRIKETHROUGH_SUFFIX;
1785:
1786: /**
1787: * A named preference that controls whether Java default text is rendered in underline.
1788: * <p>
1789: * Value is of type <code>Boolean</code>.
1790: * </p>
1791: *
1792: * @since 3.1
1793: */
1794: public final static String EDITOR_JAVA_DEFAULT_UNDERLINE = IJavaColorConstants.JAVA_DEFAULT
1795: + EDITOR_UNDERLINE_SUFFIX;
1796:
1797: /**
1798: * A named preference that holds the color used to render task tags.
1799: * <p>
1800: * Value is of type <code>String</code>. A RGB color value encoded as a string
1801: * using class <code>PreferenceConverter</code>
1802: * </p>
1803: *
1804: * @see org.eclipse.jface.resource.StringConverter
1805: * @see org.eclipse.jface.preference.PreferenceConverter
1806: * @since 2.1
1807: */
1808: public final static String EDITOR_TASK_TAG_COLOR = IJavaColorConstants.TASK_TAG;
1809:
1810: /**
1811: * A named preference that controls whether task tags are rendered in bold.
1812: * <p>
1813: * Value is of type <code>Boolean</code>.
1814: * </p>
1815: * @since 2.1
1816: */
1817: public final static String EDITOR_TASK_TAG_BOLD = IJavaColorConstants.TASK_TAG
1818: + EDITOR_BOLD_SUFFIX;
1819:
1820: /**
1821: * A named preference that controls whether task tags are rendered in italic.
1822: * <p>
1823: * Value is of type <code>Boolean</code>.
1824: * </p>
1825: *
1826: * @since 3.0
1827: */
1828: public final static String EDITOR_TASK_TAG_ITALIC = IJavaColorConstants.TASK_TAG
1829: + EDITOR_ITALIC_SUFFIX;
1830: /**
1831: * A named preference that controls whether task tags are rendered in strikethrough.
1832: * <p>
1833: * Value is of type <code>Boolean</code>.
1834: * </p>
1835: *
1836: * @since 3.1
1837: */
1838: public final static String EDITOR_TASK_TAG_STRIKETHROUGH = IJavaColorConstants.TASK_TAG
1839: + EDITOR_STRIKETHROUGH_SUFFIX;
1840:
1841: /**
1842: * A named preference that controls whether task tags are rendered in underline.
1843: * <p>
1844: * Value is of type <code>Boolean</code>.
1845: * </p>
1846: *
1847: * @since 3.1
1848: */
1849: public final static String EDITOR_TASK_TAG_UNDERLINE = IJavaColorConstants.TASK_TAG
1850: + EDITOR_UNDERLINE_SUFFIX;
1851:
1852: /**
1853: * A named preference that holds the color used to render javadoc keywords.
1854: * <p>
1855: * Value is of type <code>String</code>. A RGB color value encoded as a string
1856: * using class <code>PreferenceConverter</code>
1857: * </p>
1858: *
1859: * @see org.eclipse.jface.resource.StringConverter
1860: * @see org.eclipse.jface.preference.PreferenceConverter
1861: */
1862: public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IJavaColorConstants.JAVADOC_KEYWORD;
1863:
1864: /**
1865: * A named preference that controls whether javadoc keywords are rendered in bold.
1866: * <p>
1867: * Value is of type <code>Boolean</code>.
1868: * </p>
1869: */
1870: public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IJavaColorConstants.JAVADOC_KEYWORD
1871: + EDITOR_BOLD_SUFFIX;
1872:
1873: /**
1874: * A named preference that controls whether javadoc keywords are rendered in italic.
1875: * <p>
1876: * Value is of type <code>Boolean</code>.
1877: * </p>
1878: *
1879: * @since 3.0
1880: */
1881: public final static String EDITOR_JAVADOC_KEYWORD_ITALIC = IJavaColorConstants.JAVADOC_KEYWORD
1882: + EDITOR_ITALIC_SUFFIX;
1883:
1884: /**
1885: * A named preference that controls whether javadoc keywords are rendered in strikethrough.
1886: * <p>
1887: * Value is of type <code>Boolean</code>.
1888: * </p>
1889: *
1890: * @since 3.1
1891: *
1892: */
1893: public final static String EDITOR_JAVADOC_KEYWORD_STRIKETHROUGH = IJavaColorConstants.JAVADOC_KEYWORD
1894: + EDITOR_STRIKETHROUGH_SUFFIX;
1895:
1896: /**
1897: * A named preference that controls whether javadoc keywords are rendered in underline.
1898: * <p>
1899: * Value is of type <code>Boolean</code>.
1900: * </p>
1901: *
1902: * @since 3.1
1903: */
1904: public final static String EDITOR_JAVADOC_KEYWORD_UNDERLINE = IJavaColorConstants.JAVADOC_KEYWORD
1905: + EDITOR_UNDERLINE_SUFFIX;
1906:
1907: /**
1908: * A named preference that holds the color used to render javadoc tags.
1909: * <p>
1910: * Value is of type <code>String</code>. A RGB color value encoded as a string
1911: * using class <code>PreferenceConverter</code>
1912: * </p>
1913: *
1914: * @see org.eclipse.jface.resource.StringConverter
1915: * @see org.eclipse.jface.preference.PreferenceConverter
1916: */
1917: public final static String EDITOR_JAVADOC_TAG_COLOR = IJavaColorConstants.JAVADOC_TAG;
1918:
1919: /**
1920: * A named preference that controls whether javadoc tags are rendered in bold.
1921: * <p>
1922: * Value is of type <code>Boolean</code>.
1923: * </p>
1924: */
1925: public final static String EDITOR_JAVADOC_TAG_BOLD = IJavaColorConstants.JAVADOC_TAG
1926: + EDITOR_BOLD_SUFFIX;
1927:
1928: /**
1929: * A named preference that controls whether javadoc tags are rendered in italic.
1930: * <p>
1931: * Value is of type <code>Boolean</code>.
1932: * </p>
1933: *
1934: * @since 3.0
1935: */
1936: public final static String EDITOR_JAVADOC_TAG_ITALIC = IJavaColorConstants.JAVADOC_TAG
1937: + EDITOR_ITALIC_SUFFIX;
1938:
1939: /**
1940: * A named preference that controls whether javadoc tags are rendered in strikethrough.
1941: * <p>
1942: * Value is of type <code>Boolean</code>.
1943: * </p>
1944: *
1945: * @since 3.1
1946: */
1947: public final static String EDITOR_JAVADOC_TAG_STRIKETHROUGH = IJavaColorConstants.JAVADOC_TAG
1948: + EDITOR_STRIKETHROUGH_SUFFIX;
1949:
1950: /**
1951: * A named preference that controls whether javadoc tags are rendered in underline.
1952: * <p>
1953: * Value is of type <code>Boolean</code>.
1954: * </p>
1955: *
1956: * @since 3.1
1957: */
1958: public final static String EDITOR_JAVADOC_TAG_UNDERLINE = IJavaColorConstants.JAVADOC_TAG
1959: + EDITOR_UNDERLINE_SUFFIX;
1960:
1961: /**
1962: * A named preference that holds the color used to render javadoc links.
1963: * <p>
1964: * Value is of type <code>String</code>. A RGB color value encoded as a string
1965: * using class <code>PreferenceConverter</code>
1966: * </p>
1967: *
1968: * @see org.eclipse.jface.resource.StringConverter
1969: * @see org.eclipse.jface.preference.PreferenceConverter
1970: */
1971: public final static String EDITOR_JAVADOC_LINKS_COLOR = IJavaColorConstants.JAVADOC_LINK;
1972:
1973: /**
1974: * A named preference that controls whether javadoc links are rendered in bold.
1975: * <p>
1976: * Value is of type <code>Boolean</code>.
1977: * </p>
1978: */
1979: public final static String EDITOR_JAVADOC_LINKS_BOLD = IJavaColorConstants.JAVADOC_LINK
1980: + EDITOR_BOLD_SUFFIX;
1981:
1982: /**
1983: * A named preference that controls whether javadoc links are rendered in italic.
1984: * <p>
1985: * Value is of type <code>Boolean</code>.
1986: * </p>
1987: *
1988: * @since 3.0
1989: */
1990: public final static String EDITOR_JAVADOC_LINKS_ITALIC = IJavaColorConstants.JAVADOC_LINK
1991: + EDITOR_ITALIC_SUFFIX;
1992:
1993: /**
1994: * A named preference that controls whether javadoc links are rendered in strikethrough.
1995: * <p>
1996: * Value is of type <code>Boolean</code>.
1997: * </p>
1998: *
1999: * @since 3.1
2000: */
2001: public final static String EDITOR_JAVADOC_LINKS_STRIKETHROUGH = IJavaColorConstants.JAVADOC_LINK
2002: + EDITOR_STRIKETHROUGH_SUFFIX;
2003:
2004: /**
2005: * A named preference that controls whether javadoc links are rendered in underline.
2006: * <p>
2007: * Value is of type <code>Boolean</code>.
2008: * </p>
2009: *
2010: * @since 3.1
2011: */
2012: public final static String EDITOR_JAVADOC_LINKS_UNDERLINE = IJavaColorConstants.JAVADOC_LINK
2013: + EDITOR_UNDERLINE_SUFFIX;
2014:
2015: /**
2016: * A named preference that holds the color used to render javadoc default text.
2017: * <p>
2018: * Value is of type <code>String</code>. A RGB color value encoded as a string
2019: * using class <code>PreferenceConverter</code>
2020: * </p>
2021: *
2022: * @see org.eclipse.jface.resource.StringConverter
2023: * @see org.eclipse.jface.preference.PreferenceConverter
2024: */
2025: public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IJavaColorConstants.JAVADOC_DEFAULT;
2026:
2027: /**
2028: * A named preference that controls whether javadoc default text is rendered in bold.
2029: * <p>
2030: * Value is of type <code>Boolean</code>.
2031: * </p>
2032: */
2033: public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IJavaColorConstants.JAVADOC_DEFAULT
2034: + EDITOR_BOLD_SUFFIX;
2035:
2036: /**
2037: * A named preference that controls whether javadoc default text is rendered in italic.
2038: * <p>
2039: * Value is of type <code>Boolean</code>.
2040: * </p>
2041: *
2042: * @since 3.0
2043: */
2044: public final static String EDITOR_JAVADOC_DEFAULT_ITALIC = IJavaColorConstants.JAVADOC_DEFAULT
2045: + EDITOR_ITALIC_SUFFIX;
2046: /**
2047: * A named preference that controls whether javadoc default text is rendered in strikethrough.
2048: * <p>
2049: * Value is of type <code>Boolean</code>.
2050: * </p>
2051: *
2052: * @since 3.1
2053: */
2054: public final static String EDITOR_JAVADOC_DEFAULT_STRIKETHROUGH = IJavaColorConstants.JAVADOC_DEFAULT
2055: + EDITOR_STRIKETHROUGH_SUFFIX;
2056:
2057: /**
2058: * A named preference that controls whether javadoc default text is rendered in underline.
2059: * <p>
2060: * Value is of type <code>Boolean</code>.
2061: * </p>
2062: *
2063: * @since 3.1
2064: */
2065: public final static String EDITOR_JAVADOC_DEFAULT_UNDERLINE = IJavaColorConstants.JAVADOC_DEFAULT
2066: + EDITOR_UNDERLINE_SUFFIX;
2067:
2068: /**
2069: * A named preference that holds the color used for 'linked-mode' underline.
2070: * <p>
2071: * Value is of type <code>String</code>. A RGB color value encoded as a string
2072: * using class <code>PreferenceConverter</code>
2073: * </p>
2074: *
2075: * @see org.eclipse.jface.resource.StringConverter
2076: * @see org.eclipse.jface.preference.PreferenceConverter
2077: * @since 2.1
2078: * @deprecated As of 3.1, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_HYPERLINK_COLOR}
2079: */
2080: public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
2081:
2082: /**
2083: * A named preference that controls whether hover tool tips in the editor are turned on or off.
2084: * <p>
2085: * Value is of type <code>Boolean</code>.
2086: * </p>
2087: */
2088: public static final String EDITOR_SHOW_HOVER = "org.eclipse.jdt.ui.editor.showHover"; //$NON-NLS-1$
2089:
2090: /**
2091: * A named preference that defines the hover shown when no control key is
2092: * pressed.
2093: * <p>Value is of type <code>String</code>: possible values are <code>
2094: * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2095: * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a hover
2096: * contributed as <code>javaEditorTextHovers</code>.
2097: * </p>
2098: * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2099: * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2100: * @see JavaUI
2101: * @since 2.1
2102: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2103: */
2104: public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
2105:
2106: /**
2107: * A named preference that defines the hover shown when the
2108: * <code>CTRL</code> modifier key is pressed.
2109: * <p>Value is of type <code>String</code>: possible values are <code>
2110: * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2111: * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2112: * hover contributed as <code>javaEditorTextHovers</code>.
2113: * </p>
2114: * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2115: * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2116: * @see JavaUI
2117: * @since 2.1
2118: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2119: */
2120: public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
2121:
2122: /**
2123: * A named preference that defines the hover shown when the
2124: * <code>SHIFT</code> modifier key is pressed.
2125: * <p>Value is of type <code>String</code>: possible values are <code>
2126: * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2127: * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2128: * hover contributed as <code>javaEditorTextHovers</code>.
2129: * </p>
2130: * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2131: * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2132: * @see JavaUI ID_*_HOVER
2133: * @since 2.1
2134: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2135: */
2136: public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
2137:
2138: /**
2139: * A named preference that defines the hover shown when the
2140: * <code>CTRL + ALT</code> modifier keys is pressed.
2141: * <p>Value is of type <code>String</code>: possible values are <code>
2142: * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2143: * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2144: * hover contributed as <code>javaEditorTextHovers</code>.
2145: * </p>
2146: * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2147: * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2148: * @see JavaUI ID_*_HOVER
2149: * @since 2.1
2150: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2151: */
2152: public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
2153:
2154: /**
2155: * A named preference that defines the hover shown when the
2156: * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
2157: * <p>Value is of type <code>String</code>: possible values are <code>
2158: * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2159: * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2160: * hover contributed as <code>javaEditorTextHovers</code>.
2161: * </p>
2162: * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2163: * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2164: * @see JavaUI ID_*_HOVER
2165: * @since 2.1
2166: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2167: */
2168: public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
2169:
2170: /**
2171: * A named preference that defines the hover shown when the
2172: * <code>CTRL + SHIFT</code> modifier keys is pressed.
2173: * <p>Value is of type <code>String</code>: possible values are <code>
2174: * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2175: * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2176: * hover contributed as <code>javaEditorTextHovers</code>.
2177: * </p>
2178: * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2179: * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2180: * @see JavaUI ID_*_HOVER
2181: * @since 2.1
2182: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2183: */
2184: public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
2185:
2186: /**
2187: * A named preference that defines the hover shown when the
2188: * <code>ALT</code> modifier key is pressed.
2189: * <p>Value is of type <code>String</code>: possible values are <code>
2190: * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
2191: * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2192: * hover contributed as <code>javaEditorTextHovers</code>.
2193: * </p>
2194: * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2195: * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2196: * @see JavaUI ID_*_HOVER
2197: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2198: * @since 2.1
2199: */
2200: public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
2201:
2202: /**
2203: * A string value used by the named preferences for hover configuration to
2204: * describe that no hover should be shown for the given key modifiers.
2205: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2206: * @since 2.1
2207: */
2208: public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
2209:
2210: /**
2211: * A string value used by the named preferences for hover configuration to
2212: * describe that the default hover should be shown for the given key
2213: * modifiers. The default hover is described by the
2214: * <code>EDITOR_DEFAULT_HOVER</code> property.
2215: * @since 2.1
2216: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2217: */
2218: public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
2219:
2220: /**
2221: * A named preference that defines the hover named the 'default hover'.
2222: * Value is of type <code>String</code>: possible values are <code>
2223: * EDITOR_NO_HOVER_CONFIGURED_ID</code> or the hover id of a hover
2224: * contributed as <code>javaEditorTextHovers</code>.
2225: * </p>
2226: * @since 2.1
2227: * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2228: */
2229: public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
2230:
2231: /**
2232: * A named preference that controls if segmented view (show selected element only) is turned on or off.
2233: * <p>
2234: * Value is of type <code>Boolean</code>.
2235: * </p>
2236: */
2237: public static final String EDITOR_SHOW_SEGMENTS = "org.eclipse.jdt.ui.editor.showSegments"; //$NON-NLS-1$
2238:
2239: /**
2240: * A named preference that controls if browser like links are turned on or off.
2241: * <p>
2242: * Value is of type <code>Boolean</code>.
2243: * </p>
2244: *
2245: * @since 2.1
2246: * @deprecated As of 3.1, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_HYPERLINKS_ENABLED}
2247: */
2248: public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
2249:
2250: /**
2251: * A named preference that controls the key modifier for browser like links.
2252: * <p>
2253: * Value is of type <code>String</code>.
2254: * </p>
2255: *
2256: * @since 2.1
2257: * @deprecated As of 3.1, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_HYPERLINK_KEY_MODIFIER}
2258: */
2259: public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
2260:
2261: /**
2262: * A named preference that controls the key modifier mask for browser like links.
2263: * The value is only used if the value of <code>EDITOR_BROWSER_LIKE_LINKS</code>
2264: * cannot be resolved to valid SWT modifier bits.
2265: * <p>
2266: * Value is of type <code>String</code>.
2267: * </p>
2268: *
2269: * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2270: * @since 2.1.1
2271: * @deprecated As of 3.1, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_HYPERLINK_KEY_MODIFIER_MASK}
2272: */
2273: public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2274:
2275: /**
2276: * A named preference that controls whether occurrences are marked in the editor.
2277: * <p>
2278: * Value is of type <code>Boolean</code>.
2279: * </p>
2280: *
2281: * @since 3.0
2282: */
2283: public static final String EDITOR_MARK_OCCURRENCES = "markOccurrences"; //$NON-NLS-1$
2284:
2285: /**
2286: * A named preference that controls whether occurrences are sticky in the editor.
2287: * <p>
2288: * Value is of type <code>Boolean</code>.
2289: * </p>
2290: *
2291: * @since 3.0
2292: */
2293: public static final String EDITOR_STICKY_OCCURRENCES = "stickyOccurrences"; //$NON-NLS-1$
2294:
2295: /**
2296: * A named preference that controls whether type occurrences are marked.
2297: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2298: * <p>
2299: * Value is of type <code>Boolean</code>.
2300: * </p>
2301: *
2302: * @since 3.0
2303: */
2304: public static final String EDITOR_MARK_TYPE_OCCURRENCES = "markTypeOccurrences"; //$NON-NLS-1$
2305:
2306: /**
2307: * A named preference that controls whether method occurrences are marked.
2308: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2309: * <p>
2310: * Value is of type <code>Boolean</code>.
2311: * </p>
2312: *
2313: * @since 3.0
2314: */
2315: public static final String EDITOR_MARK_METHOD_OCCURRENCES = "markMethodOccurrences"; //$NON-NLS-1$
2316: /**
2317: * A named preference that controls whether non-constant field occurrences are marked.
2318: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2319: * <p>
2320: * Value is of type <code>Boolean</code>.
2321: * </p>
2322: *
2323: * @since 3.0
2324: */
2325: public static final String EDITOR_MARK_FIELD_OCCURRENCES = "markFieldOccurrences"; //$NON-NLS-1$
2326: /**
2327: * A named preference that controls whether constant (static final) occurrences are marked.
2328: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2329: * <p>
2330: * Value is of type <code>Boolean</code>.
2331: * </p>
2332: *
2333: * @since 3.0
2334: */
2335: public static final String EDITOR_MARK_CONSTANT_OCCURRENCES = "markConstantOccurrences"; //$NON-NLS-1$
2336:
2337: /**
2338: * A named preference that controls whether local variable occurrences are marked.
2339: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2340: * <p>
2341: * Value is of type <code>Boolean</code>.
2342: * </p>
2343: *
2344: * @since 3.0
2345: */
2346: public static final String EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES = "markLocalVariableOccurrences"; //$NON-NLS-1$
2347:
2348: /**
2349: * A named preference that controls whether exception occurrences are marked.
2350: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2351: * <p>
2352: * Value is of type <code>Boolean</code>.
2353: * </p>
2354: *
2355: * @since 3.0
2356: */
2357: public static final String EDITOR_MARK_EXCEPTION_OCCURRENCES = "markExceptionOccurrences"; //$NON-NLS-1$
2358:
2359: /**
2360: * A named preference that controls whether method exit points are marked.
2361: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2362: * <p>
2363: * Value is of type <code>Boolean</code>.
2364: * </p>
2365: *
2366: * @since 3.0
2367: */
2368: public static final String EDITOR_MARK_METHOD_EXIT_POINTS = "markMethodExitPoints"; //$NON-NLS-1$
2369:
2370: /**
2371: * A named preference that controls whether targets for of <code>break</code> and <code>continue</code> statements are marked.
2372: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2373: * <p>
2374: * Value is of type <code>Boolean</code>.
2375: * </p>
2376: *
2377: * @since 3.2
2378: */
2379: public static final String EDITOR_MARK_BREAK_CONTINUE_TARGETS = "markBreakContinueTargets"; //$NON-NLS-1$
2380:
2381: /**
2382: * A named preference that controls whether method exit points are marked.
2383: * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2384: * <p>
2385: * Value is of type <code>Boolean</code>.
2386: * </p>
2387: *
2388: * @since 3.1
2389: */
2390: public static final String EDITOR_MARK_IMPLEMENTORS = "markImplementors"; //$NON-NLS-1$
2391:
2392: /**
2393: * A named preference prefix for semantic highlighting preferences.
2394: *
2395: * @since 3.0
2396: */
2397: public static final String EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX = "semanticHighlighting."; //$NON-NLS-1$
2398:
2399: /**
2400: * A named preference that controls if semantic highlighting is enabled.
2401: * <p>
2402: * Value is of type <code>Boolean</code>:<code>true</code> if enabled.
2403: * </p>
2404: *
2405: * @since 3.0
2406: * @deprecated As of 3.1, this preference is not used or set any longer; see
2407: * {@link SemanticHighlightings#affectsEnablement(IPreferenceStore, org.eclipse.jface.util.PropertyChangeEvent)}
2408: */
2409: public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED = EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX
2410: + "enabled"; //$NON-NLS-1$
2411:
2412: /**
2413: * A named preference suffix that controls a semantic highlighting's color.
2414: * <p>
2415: * Value is of type <code>String</code>. A RGB color value encoded as a string
2416: * using class <code>PreferenceConverter</code>
2417: * </p>
2418: *
2419: * @see org.eclipse.jface.resource.StringConverter
2420: * @see org.eclipse.jface.preference.PreferenceConverter
2421: * @since 3.0
2422: */
2423: public static final String EDITOR_SEMANTIC_HIGHLIGHTING_COLOR_SUFFIX = ".color"; //$NON-NLS-1$
2424:
2425: /**
2426: * A named preference suffix that controls if semantic highlighting has the text attribute bold.
2427: * <p>
2428: * Value is of type <code>Boolean</code>: <code>true</code> if bold.
2429: * </p>
2430: *
2431: * @since 3.0
2432: */
2433: public static final String EDITOR_SEMANTIC_HIGHLIGHTING_BOLD_SUFFIX = ".bold"; //$NON-NLS-1$
2434:
2435: /**
2436: * A named preference suffix that controls if semantic highlighting has the text attribute italic.
2437: * <p>
2438: * Value is of type <code>Boolean</code>: <code>true</code> if italic.
2439: * </p>
2440: *
2441: * @since 3.0
2442: */
2443: public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ITALIC_SUFFIX = ".italic"; //$NON-NLS-1$
2444:
2445: /**
2446: * A named preference suffix that controls if semantic highlighting has the text attribute strikethrough.
2447: * <p>
2448: * Value is of type <code>Boolean</code>: <code>true</code> if strikethrough.
2449: * </p>
2450: *
2451: * @since 3.1
2452: */
2453: public static final String EDITOR_SEMANTIC_HIGHLIGHTING_STRIKETHROUGH_SUFFIX = ".strikethrough"; //$NON-NLS-1$
2454:
2455: /**
2456: * A named preference suffix that controls if semantic highlighting has the text attribute underline.
2457: * <p>
2458: * Value is of type <code>Boolean</code>: <code>true</code> if underline.
2459: * </p>
2460: *
2461: * @since 3.1
2462: */
2463: public static final String EDITOR_SEMANTIC_HIGHLIGHTING_UNDERLINE_SUFFIX = ".underline"; //$NON-NLS-1$
2464:
2465: /**
2466: * A named preference suffix that controls if semantic highlighting is enabled.
2467: * <p>
2468: * Value is of type <code>Boolean</code>: <code>true</code> if enabled.
2469: * </p>
2470: *
2471: * @since 3.0
2472: */
2473: public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED_SUFFIX = ".enabled"; //$NON-NLS-1$
2474:
2475: /**
2476: * A named preference that controls disabling of the overwrite mode.
2477: * <p>
2478: * Value is of type <code>Boolean</code>.
2479: * </p>
2480: *
2481: * @since 3.0
2482: * @deprecated as of 3.1 replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_DISABLE_OVERWRITE_MODE}
2483: */
2484: public static final String EDITOR_DISABLE_OVERWRITE_MODE = "disable_overwrite_mode"; //$NON-NLS-1$
2485:
2486: /**
2487: * A named preference that controls the "smart semicolon" smart typing handler.
2488: * <p>
2489: * Value is of type <code>Boolean</code>.
2490: * </p>
2491: *
2492: * @since 3.0
2493: */
2494: public static final String EDITOR_SMART_SEMICOLON = "smart_semicolon"; //$NON-NLS-1$
2495:
2496: /**
2497: * A named preference that controls the smart backspace behavior.
2498: * <p>
2499: * Value is of type <code>Boolean</code>.
2500: *
2501: * @since 3.0
2502: */
2503: public static final String EDITOR_SMART_BACKSPACE = "smart_backspace"; //$NON-NLS-1$
2504:
2505: /**
2506: * A named preference that controls the "smart opening brace" smart typing handler.
2507: * <p>
2508: * Value is of type <code>Boolean</code>.
2509: * </p>
2510: *
2511: * @since 3.0
2512: */
2513: public static final String EDITOR_SMART_OPENING_BRACE = "smart_opening_brace"; //$NON-NLS-1$
2514:
2515: /**
2516: * A named preference that controls the smart tab behavior.
2517: * <p>
2518: * Value is of type <code>Boolean</code>.
2519: *
2520: * @since 3.0
2521: */
2522: public static final String EDITOR_SMART_TAB = "smart_tab"; //$NON-NLS-1$
2523:
2524: /**
2525: * A named preference that controls whether Java comments should be
2526: * spell checked.
2527: * <p>
2528: * Value is of type <code>Boolean</code>.
2529: * </p>
2530: *
2531: * @deprecated since 3.1, use {@link org.eclipse.ui.texteditor.spelling.SpellingService#PREFERENCE_SPELLING_ENABLED}
2532: * and {@link org.eclipse.ui.texteditor.spelling.SpellingService#PREFERENCE_SPELLING_ENGINE}
2533: * @since 3.0
2534: */
2535: public final static String SPELLING_CHECK_SPELLING = "spelling_check_spelling"; //$NON-NLS-1$
2536:
2537: /**
2538: * A named preference that controls whether words containing digits should
2539: * be skipped during spell checking.
2540: * <p>
2541: * Value is of type <code>Boolean</code>.
2542: * </p>
2543: *
2544: * @since 3.0
2545: */
2546: public final static String SPELLING_IGNORE_DIGITS = "spelling_ignore_digits"; //$NON-NLS-1$
2547:
2548: /**
2549: * A named preference that controls whether mixed case words should be
2550: * skipped during spell checking.
2551: * <p>
2552: * Value is of type <code>Boolean</code>.
2553: * </p>
2554: *
2555: * @since 3.0
2556: */
2557: public final static String SPELLING_IGNORE_MIXED = "spelling_ignore_mixed"; //$NON-NLS-1$
2558:
2559: /**
2560: * A named preference that controls whether sentence capitalization should
2561: * be ignored during spell checking.
2562: * <p>
2563: * Value is of type <code>Boolean</code>.
2564: * </p>
2565: *
2566: * @since 3.0
2567: */
2568: public final static String SPELLING_IGNORE_SENTENCE = "spelling_ignore_sentence"; //$NON-NLS-1$
2569:
2570: /**
2571: * A named preference that controls whether upper case words should be
2572: * skipped during spell checking.
2573: * <p>
2574: * Value is of type <code>Boolean</code>.
2575: * </p>
2576: *
2577: * @since 3.0
2578: */
2579: public final static String SPELLING_IGNORE_UPPER = "spelling_ignore_upper"; //$NON-NLS-1$
2580:
2581: /**
2582: * A named preference that controls whether URLs should be ignored during
2583: * spell checking.
2584: * <p>
2585: * Value is of type <code>Boolean</code>.
2586: * </p>
2587: *
2588: * @since 3.0
2589: */
2590: public final static String SPELLING_IGNORE_URLS = "spelling_ignore_urls"; //$NON-NLS-1$
2591:
2592: /**
2593: * A named preference that controls whether single letters
2594: * should be ignored during spell checking.
2595: * <p>
2596: * Value is of type <code>Boolean</code>.
2597: * </p>
2598: *
2599: * @since 3.3
2600: */
2601: public final static String SPELLING_IGNORE_SINGLE_LETTERS = "spelling_ignore_single_letters"; //$NON-NLS-1$
2602:
2603: /**
2604: * A named preference that controls whether '&' in
2605: * Java properties files are ignored.
2606: * <p>
2607: * Value is of type <code>Boolean</code>.
2608: * </p>
2609: *
2610: * @since 3.3
2611: */
2612: public final static String SPELLING_IGNORE_AMPERSAND_IN_PROPERTIES = "spelling_ignore_ampersand_in_properties"; //$NON-NLS-1$
2613:
2614: /**
2615: * A named preference that controls whether non-letters at word boundaries
2616: * should be ignored during spell checking.
2617: * <p>
2618: * Value is of type <code>Boolean</code>.
2619: * </p>
2620: *
2621: * @since 3.3
2622: */
2623: public final static String SPELLING_IGNORE_NON_LETTERS = "spelling_ignore_non_letters"; //$NON-NLS-1$
2624:
2625: /**
2626: * A named preference that controls whether Java strings
2627: * should be ignored during spell checking.
2628: * <p>
2629: * Value is of type <code>Boolean</code>.
2630: * </p>
2631: *
2632: * @since 3.4
2633: */
2634: public static final String SPELLING_IGNORE_JAVA_STRINGS = "spelling_ignore_java_strings"; //$NON-NLS-1$;
2635:
2636: /**
2637: * A named preference that controls the locale used for spell checking.
2638: * <p>
2639: * Value is of type <code>String</code>.
2640: * </p>
2641: *
2642: * @since 3.0
2643: */
2644: public final static String SPELLING_LOCALE = "spelling_locale"; //$NON-NLS-1$
2645:
2646: /**
2647: * A named preference that controls the number of proposals offered during
2648: * spell checking.
2649: * <p>
2650: * Value is of type <code>Integer</code>.
2651: * </p>
2652: *
2653: * @since 3.0
2654: */
2655: public final static String SPELLING_PROPOSAL_THRESHOLD = "spelling_proposal_threshold"; //$NON-NLS-1$
2656:
2657: /**
2658: * A named preference that controls the maximum number of problems reported during spell checking.
2659: * <p>
2660: * Value is of type <code>Integer</code>.
2661: * </p>
2662: *
2663: * @since 3.4
2664: */
2665: public final static String SPELLING_PROBLEMS_THRESHOLD = "spelling_problems_threshold"; //$NON-NLS-1$
2666:
2667: /**
2668: * A named preference that specifies the workspace user dictionary.
2669: * <p>
2670: * Value is of type <code>Integer</code>.
2671: * </p>
2672: *
2673: * @since 3.0
2674: */
2675: public final static String SPELLING_USER_DICTIONARY = "spelling_user_dictionary"; //$NON-NLS-1$
2676:
2677: /**
2678: * A named preference that specifies encoding of the workspace user dictionary.
2679: * <p>
2680: * Value is of type <code>String</code>.
2681: * </p>
2682: *
2683: * @since 3.3
2684: */
2685: public final static String SPELLING_USER_DICTIONARY_ENCODING = "spelling_user_dictionary_encoding"; //$NON-NLS-1$
2686:
2687: /**
2688: * A named preference that specifies whether spelling dictionaries are available to content assist.
2689: *
2690: * <strong>Note:</strong> This is currently not supported because the spelling engine
2691: * cannot return word proposals but only correction proposals.
2692: * <p>
2693: * Value is of type <code>Boolean</code>.
2694: * </p>
2695: *
2696: * @since 3.0
2697: */
2698: public final static String SPELLING_ENABLE_CONTENTASSIST = "spelling_enable_contentassist"; //$NON-NLS-1$
2699:
2700: /**
2701: * A named preference that controls whether code snippets are formatted
2702: * in Javadoc comments.
2703: * <p>
2704: * Value is of type <code>Boolean</code>.
2705: * </p>
2706: *
2707: * @since 3.0
2708: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_FORMAT_SOURCE}
2709: */
2710: public final static String FORMATTER_COMMENT_FORMATSOURCE = "comment_format_source_code"; //$NON-NLS-1$
2711:
2712: /**
2713: * A named preference that controls whether description of Javadoc
2714: * parameters are indented.
2715: * <p>
2716: * Value is of type <code>Boolean</code>.
2717: * </p>
2718: *
2719: * @since 3.0
2720: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_INDENT_PARAMETER_DESCRIPTION}
2721: */
2722: public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION = "comment_indent_parameter_description"; //$NON-NLS-1$
2723:
2724: /**
2725: * A named preference that controls whether the header comment of
2726: * a Java source file is formatted.
2727: * <p>
2728: * Value is of type <code>Boolean</code>.
2729: * </p>
2730: *
2731: * @since 3.0
2732: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_FORMAT_HEADER}
2733: */
2734: public final static String FORMATTER_COMMENT_FORMATHEADER = "comment_format_header"; //$NON-NLS-1$
2735:
2736: /**
2737: * A named preference that controls whether Javadoc root tags
2738: * are indented.
2739: * <p>
2740: * Value is of type <code>Boolean</code>.
2741: * </p>
2742: *
2743: * @since 3.0
2744: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_INDENT_ROOT_TAGS}
2745: */
2746: public final static String FORMATTER_COMMENT_INDENTROOTTAGS = "comment_indent_root_tags"; //$NON-NLS-1$
2747:
2748: /**
2749: * A named preference that controls whether Javadoc comments
2750: * are formatted by the content formatter.
2751: * <p>
2752: * Value is of type <code>Boolean</code>.
2753: * </p>
2754: *
2755: * @since 3.0
2756: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_FORMAT}
2757: */
2758: public final static String FORMATTER_COMMENT_FORMAT = "comment_format_comments"; //$NON-NLS-1$
2759:
2760: /**
2761: * A named preference that controls whether a new line is inserted
2762: * after Javadoc root tag parameters.
2763: * <p>
2764: * Value is of type <code>Boolean</code>.
2765: * </p>
2766: *
2767: * @since 3.0
2768: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_INSERT_NEW_LINE_FOR_PARAMETER}
2769: */
2770: public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER = "comment_new_line_for_parameter"; //$NON-NLS-1$
2771:
2772: /**
2773: * A named preference that controls whether an empty line is inserted before
2774: * the Javadoc root tag block.
2775: * <p>
2776: * Value is of type <code>Boolean</code>.
2777: * </p>
2778: *
2779: * @since 3.0
2780: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_INSERT_EMPTY_LINE_BEFORE_ROOT_TAGS}
2781: */
2782: public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS = "comment_separate_root_tags"; //$NON-NLS-1$
2783:
2784: /**
2785: * A named preference that controls whether blank lines are cleared during formatting.
2786: * <p>
2787: * Value is of type <code>Boolean</code>.
2788: * </p>
2789: *
2790: * @since 3.0
2791: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_CLEAR_BLANK_LINES}
2792: */
2793: public final static String FORMATTER_COMMENT_CLEARBLANKLINES = "comment_clear_blank_lines"; //$NON-NLS-1$
2794:
2795: /**
2796: * A named preference that controls the line length of comments.
2797: * <p>
2798: * Value is of type <code>Integer</code>. The value must be at least 4 for reasonable formatting.
2799: * </p>
2800: *
2801: * @since 3.0
2802: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_LINE_LENGTH}
2803: */
2804: public final static String FORMATTER_COMMENT_LINELENGTH = "comment_line_length"; //$NON-NLS-1$
2805:
2806: /**
2807: * A named preference that controls whether HTML tags are formatted.
2808: * <p>
2809: * Value is of type <code>Boolean</code>.
2810: * </p>
2811: *
2812: * @since 3.0
2813: * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_FORMAT_HTML}
2814: */
2815: public final static String FORMATTER_COMMENT_FORMATHTML = "comment_format_html"; //$NON-NLS-1$
2816:
2817: /**
2818: * A named preference that controls if the Java code assist gets auto activated.
2819: * <p>
2820: * Value is of type <code>Boolean</code>.
2821: * </p>
2822: */
2823: public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
2824:
2825: /**
2826: * A name preference that holds the auto activation delay time in milliseconds.
2827: * <p>
2828: * Value is of type <code>Integer</code>.
2829: * </p>
2830: */
2831: public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
2832:
2833: /**
2834: * A named preference that controls if code assist contains only visible proposals.
2835: * <p>
2836: * Value is of type <code>Boolean</code>. if <code>true</code> code assist only contains visible members. If
2837: * <code>false</code> all members are included.
2838: * </p>
2839: */
2840: public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
2841:
2842: /**
2843: * A named preference that controls if the Java code assist inserts a
2844: * proposal automatically if only one proposal is available.
2845: * <p>
2846: * Value is of type <code>Boolean</code>.
2847: * </p>
2848: * @since 2.1
2849: */
2850: public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
2851:
2852: /**
2853: * A named preference that controls if the Java code assist adds import
2854: * statements.
2855: * <p>
2856: * Value is of type <code>Boolean</code>.
2857: * </p>
2858: * @since 2.1
2859: */
2860: public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
2861:
2862: /**
2863: * A named preference that controls if the Java code assist only inserts
2864: * completions. If set to false the proposals can also _replace_ code.
2865: * <p>
2866: * Value is of type <code>Boolean</code>.
2867: * </p>
2868: * @since 2.1
2869: */
2870: public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
2871:
2872: /**
2873: * A named preference that controls whether code assist proposals filtering is case sensitive or not.
2874: * <p>
2875: * Value is of type <code>Boolean</code>.
2876: * </p>
2877: */
2878: public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
2879:
2880: /**
2881: * A named preference that defines if code assist proposals are sorted in alphabetical order.
2882: * <p>
2883: * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical
2884: * order. If <code>false</code> that are unsorted.
2885: * </p>
2886: * @deprecated use {@link #CODEASSIST_SORTER} instead
2887: */
2888: public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
2889:
2890: /**
2891: * A named preference that controls if argument names are filled in when a method is selected from as list
2892: * of code assist proposal.
2893: * <p>
2894: * Value is of type <code>Boolean</code>.
2895: * </p>
2896: */
2897: public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
2898:
2899: /**
2900: * A named preference that controls if method arguments are guessed when a
2901: * method is selected from as list of code assist proposal.
2902: * <p>
2903: * Value is of type <code>Boolean</code>.
2904: * </p>
2905: * @since 2.1
2906: */
2907: public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
2908:
2909: /**
2910: * A named preference that holds the characters that auto activate code assist in Java code.
2911: * <p>
2912: * Value is of type <code>String</code>. All characters that trigger auto code assist in Java code.
2913: * </p>
2914: */
2915: public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_java"; //$NON-NLS-1$
2916:
2917: /**
2918: * A named preference that holds the characters that auto activate code assist in Javadoc.
2919: * <p>
2920: * Value is of type <code>String</code>. All characters that trigger auto code assist in Javadoc.
2921: * </p>
2922: */
2923: public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_javadoc"; //$NON-NLS-1$
2924:
2925: /**
2926: * A named preference that holds the background color used in the code assist selection dialog.
2927: * <p>
2928: * Value is of type <code>String</code>. A RGB color value encoded as a string
2929: * using class <code>PreferenceConverter</code>
2930: * </p>
2931: *
2932: * @see org.eclipse.jface.resource.StringConverter
2933: * @see org.eclipse.jface.preference.PreferenceConverter
2934: */
2935: public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
2936:
2937: /**
2938: * A named preference that holds the foreground color used in the code assist selection dialog.
2939: * <p>
2940: * Value is of type <code>String</code>. A RGB color value encoded as a string
2941: * using class <code>PreferenceConverter</code>
2942: * </p>
2943: *
2944: * @see org.eclipse.jface.resource.StringConverter
2945: * @see org.eclipse.jface.preference.PreferenceConverter
2946: */
2947: public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
2948:
2949: /**
2950: * A named preference that holds the background color used for parameter hints.
2951: * <p>
2952: * Value is of type <code>String</code>. A RGB color value encoded as a string
2953: * using class <code>PreferenceConverter</code>
2954: * </p>
2955: *
2956: * @see org.eclipse.jface.resource.StringConverter
2957: * @see org.eclipse.jface.preference.PreferenceConverter
2958: */
2959: public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
2960:
2961: /**
2962: * A named preference that holds the foreground color used in the code assist selection dialog.
2963: * <p>
2964: * Value is of type <code>String</code>. A RGB color value encoded as a string
2965: * using class <code>PreferenceConverter</code>
2966: * </p>
2967: *
2968: * @see org.eclipse.jface.resource.StringConverter
2969: * @see org.eclipse.jface.preference.PreferenceConverter
2970: */
2971: public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
2972:
2973: /**
2974: * A named preference that holds the background color used in the code
2975: * assist selection dialog to mark replaced code.
2976: * <p>
2977: * Value is of type <code>String</code>. A RGB color value encoded as a string
2978: * using class <code>PreferenceConverter</code>
2979: * </p>
2980: *
2981: * @see org.eclipse.jface.resource.StringConverter
2982: * @see org.eclipse.jface.preference.PreferenceConverter
2983: * @since 2.1
2984: */
2985: public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
2986:
2987: /**
2988: * A named preference that holds the foreground color used in the code
2989: * assist selection dialog to mark replaced code.
2990: * <p>
2991: * Value is of type <code>String</code>. A RGB color value encoded as a string
2992: * using class <code>PreferenceConverter</code>
2993: * </p>
2994: *
2995: * @see org.eclipse.jface.resource.StringConverter
2996: * @see org.eclipse.jface.preference.PreferenceConverter
2997: * @since 2.1
2998: */
2999: public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
3000:
3001: /**
3002: * A named preference that holds the favorite static members.
3003: * <p>
3004: * Value is of type <code>String</code>: semicolon separated list of favorites.
3005: * </p>
3006: *
3007: * @see org.eclipse.jface.resource.StringConverter
3008: * @see org.eclipse.jface.preference.PreferenceConverter
3009: * @since 3.3
3010: */
3011: public final static String CODEASSIST_FAVORITE_STATIC_MEMBERS = "content_assist_favorite_static_members"; //$NON-NLS-1$
3012:
3013: /**
3014: * A named preference that controls the behavior of the refactoring wizard for showing the error page.
3015: * <p>
3016: * Value is of type <code>String</code>. Valid values are:
3017: * <code>REFACTOR_FATAL_SEVERITY</code>,
3018: * <code>REFACTOR_ERROR_SEVERITY</code>,
3019: * <code>REFACTOR_WARNING_SEVERITY</code>
3020: * <code>REFACTOR_INFO_SEVERITY</code>,
3021: * <code>REFACTOR_OK_SEVERITY</code>.
3022: * </p>
3023: *
3024: * @see #REFACTOR_FATAL_SEVERITY
3025: * @see #REFACTOR_ERROR_SEVERITY
3026: * @see #REFACTOR_WARNING_SEVERITY
3027: * @see #REFACTOR_INFO_SEVERITY
3028: * @see #REFACTOR_OK_SEVERITY
3029: *
3030: * @deprecated Use method {@link org.eclipse.ltk.core.refactoring.RefactoringCore#getConditionCheckingFailedSeverity()}.
3031: */
3032: public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
3033:
3034: /**
3035: * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3036: *
3037: * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3038: * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#FATAL}
3039: */
3040: public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
3041:
3042: /**
3043: * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3044: *
3045: * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3046: * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#ERROR}
3047: */
3048: public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
3049:
3050: /**
3051: * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3052: *
3053: * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3054: * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#WARNING}
3055: */
3056: public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
3057:
3058: /**
3059: * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3060: *
3061: * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3062: * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#INFO}
3063: */
3064: public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
3065:
3066: /**
3067: * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3068: *
3069: * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3070: * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#OK}
3071: */
3072: public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
3073:
3074: /**
3075: * A named preference that controls whether all dirty editors are automatically saved before a refactoring is
3076: * executed.
3077: * <p>
3078: * Value is of type <code>Boolean</code>.
3079: * </p>
3080: */
3081: public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
3082:
3083: /**
3084: * A named preference that controls whether certain refactorings use a lightweight UI when
3085: * started from a Java editor.
3086: * <p>
3087: * Value is of type <code>Boolean</code>.
3088: * </p>
3089: * <p>
3090: * Note: this is work in progress and may change any time
3091: * </p>
3092: * @since 3.3
3093: */
3094: public static final String REFACTOR_LIGHTWEIGHT = "Refactor.lightweight"; //$NON-NLS-1$
3095:
3096: /**
3097: * A named preference that controls a reduced search menu is used in the Java editors.
3098: * <p>
3099: * Value is of type <code>Boolean</code>.
3100: * </p>
3101: * @since 3.0
3102: */
3103: public static final String SEARCH_USE_REDUCED_MENU = "Search.usereducemenu"; //$NON-NLS-1$
3104:
3105: /**
3106: * A named preference that controls if the Java Browsing views are linked to the active editor.
3107: * <p>
3108: * Value is of type <code>Boolean</code>.
3109: * </p>
3110: *
3111: */
3112: public static final String BROWSING_LINK_VIEW_TO_EDITOR = "org.eclipse.jdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
3113:
3114: /**
3115: * A named preference that controls the layout of the Java Browsing views vertically. Boolean value.
3116: * <p>
3117: * Value is of type <code>Boolean</code>. If <code>true</code> the views are stacked vertical.
3118: * If <code>false</code> they are stacked horizontal.
3119: * </p>
3120: */
3121: public static final String BROWSING_STACK_VERTICALLY = "org.eclipse.jdt.ui.browsing.stackVertically"; //$NON-NLS-1$
3122:
3123: /**
3124: * A named preference that controls if templates are formatted when applied.
3125: * <p>
3126: * Value is of type <code>Boolean</code>.
3127: * </p>
3128: *
3129: * @since 2.1
3130: */
3131: public static final String TEMPLATES_USE_CODEFORMATTER = "org.eclipse.jdt.ui.template.format"; //$NON-NLS-1$
3132:
3133: /**
3134: * A named preference that controls which profile is used by the code formatter.
3135: * <p>
3136: * Value is of type <code>String</code>.
3137: * </p>
3138: *
3139: * @since 3.0
3140: */
3141: public static final String FORMATTER_PROFILE = "formatter_profile"; //$NON-NLS-1$
3142:
3143: /**
3144: * A named preference that controls whether annotation roll over is used or not.
3145: * <p>
3146: * Value is of type <code>Boolean</code>. If <code>true</code> the annotation ruler column
3147: * uses a roll over to display multiple annotations
3148: * </p>
3149: *
3150: * @since 3.0
3151: */
3152: public static final String EDITOR_ANNOTATION_ROLL_OVER = "editor_annotation_roll_over"; //$NON-NLS-1$
3153:
3154: /**
3155: * A named preference that controls if content assist inserts the common
3156: * prefix of all proposals before presenting choices.
3157: * <p>
3158: * Value is of type <code>Boolean</code>.
3159: * </p>
3160: *
3161: * @since 3.0
3162: */
3163: public final static String CODEASSIST_PREFIX_COMPLETION = "content_assist_prefix_completion"; //$NON-NLS-1$
3164:
3165: /**
3166: * A named preference that controls which completion proposal categories
3167: * have been excluded from the default proposal list.
3168: * <p>
3169: * Value is of type <code>String</code>, a "\0"-separated list of identifiers.
3170: * </p>
3171: *
3172: * @since 3.2
3173: */
3174: public static final String CODEASSIST_EXCLUDED_CATEGORIES = "content_assist_disabled_computers"; //$NON-NLS-1$
3175:
3176: /**
3177: * A named preference that controls which the order of the specific code assist commands.
3178: * <p>
3179: * Value is of type <code>String</code>, a "\0"-separated list with categoryId:cycleState where
3180: * <ul>
3181: * <li>categoryId is the <code>String</code> holding the category ID</li>
3182: * <li>cycleState is an <code>int</code> which specifies the rank and the enablement:
3183: * <ul>
3184: * <li>enabled= cycleState < 65535</li>
3185: * <li>rank= cycleState > 65535 ? cycleState - 65535 : cycleState)</li>
3186: * </ul></li>
3187: * </ul>
3188: *
3189: * </p>
3190: *
3191: * @since 3.2
3192: */
3193: public static final String CODEASSIST_CATEGORY_ORDER = "content_assist_category_order"; //$NON-NLS-1$
3194:
3195: /**
3196: * A named preference that controls whether folding is enabled in the Java editor.
3197: * <p>
3198: * Value is of type <code>Boolean</code>.
3199: * </p>
3200: *
3201: * @since 3.0
3202: */
3203: public static final String EDITOR_FOLDING_ENABLED = "editor_folding_enabled"; //$NON-NLS-1$
3204:
3205: /**
3206: * A named preference that stores the configured folding provider.
3207: * <p>
3208: * Value is of type <code>String</code>.
3209: * </p>
3210: *
3211: * @since 3.0
3212: */
3213: public static final String EDITOR_FOLDING_PROVIDER = "editor_folding_provider"; //$NON-NLS-1$
3214:
3215: /**
3216: * A named preference that stores the value for Javadoc folding for the default folding provider.
3217: * <p>
3218: * Value is of type <code>Boolean</code>.
3219: * </p>
3220: *
3221: * @since 3.0
3222: */
3223: public static final String EDITOR_FOLDING_JAVADOC = "editor_folding_default_javadoc"; //$NON-NLS-1$
3224:
3225: /**
3226: * A named preference that stores the value for inner type folding for the default folding provider.
3227: * <p>
3228: * Value is of type <code>Boolean</code>.
3229: * </p>
3230: *
3231: * @since 3.0
3232: */
3233: public static final String EDITOR_FOLDING_INNERTYPES = "editor_folding_default_innertypes"; //$NON-NLS-1$
3234:
3235: /**
3236: * A named preference that stores the value for method folding for the default folding provider.
3237: * <p>
3238: * Value is of type <code>Boolean</code>.
3239: * </p>
3240: *
3241: * @since 3.0
3242: */
3243: public static final String EDITOR_FOLDING_METHODS = "editor_folding_default_methods"; //$NON-NLS-1$
3244:
3245: /**
3246: * A named preference that stores the value for imports folding for the default folding provider.
3247: * <p>
3248: * Value is of type <code>Boolean</code>.
3249: * </p>
3250: *
3251: * @since 3.0
3252: */
3253: public static final String EDITOR_FOLDING_IMPORTS = "editor_folding_default_imports"; //$NON-NLS-1$
3254:
3255: /**
3256: * A named preference that stores the value for header comment folding for the default folding provider.
3257: * <p>
3258: * Value is of type <code>Boolean</code>.
3259: * </p>
3260: *
3261: * @since 3.1
3262: */
3263: public static final String EDITOR_FOLDING_HEADERS = "editor_folding_default_headers"; //$NON-NLS-1$
3264:
3265: //---------- Properties File Editor ----------
3266:
3267: /**
3268: * The symbolic font name for the Java properties file editor text font
3269: * (value <code>"org.eclipse.jdt.ui.PropertiesFileEditor.textfont"</code>).
3270: *
3271: * @since 3.1
3272: */
3273: public static final String PROPERTIES_FILE_EDITOR_TEXT_FONT = "org.eclipse.jdt.ui.PropertiesFileEditor.textfont"; //$NON-NLS-1$
3274:
3275: /**
3276: * A named preference that holds the color used to render keys in a properties file.
3277: * <p>
3278: * Value is of type <code>String</code>. A RGB color value encoded as a string
3279: * using class <code>PreferenceConverter</code>
3280: * </p>
3281: *
3282: * @see org.eclipse.jface.resource.StringConverter
3283: * @see org.eclipse.jface.preference.PreferenceConverter
3284: * @since 3.1
3285: */
3286: public static final String PROPERTIES_FILE_COLORING_KEY = IJavaColorConstants.PROPERTIES_FILE_COLORING_KEY;
3287:
3288: /**
3289: * A named preference that controls whether keys in a properties file are rendered in bold.
3290: * <p>
3291: * Value is of type <code>Boolean</code>.
3292: * </p>
3293: *
3294: * @since 3.1
3295: */
3296: public static final String PROPERTIES_FILE_COLORING_KEY_BOLD = PROPERTIES_FILE_COLORING_KEY
3297: + EDITOR_BOLD_SUFFIX;
3298:
3299: /**
3300: * A named preference that controls whether keys in a properties file are rendered in italic.
3301: * <p>
3302: * Value is of type <code>Boolean</code>.
3303: * </p>
3304: *
3305: * @since 3.1
3306: */
3307: public static final String PROPERTIES_FILE_COLORING_KEY_ITALIC = PROPERTIES_FILE_COLORING_KEY
3308: + EDITOR_ITALIC_SUFFIX;
3309:
3310: /**
3311: * A named preference that controls whether keys in a properties file are rendered in strikethrough.
3312: * <p>
3313: * Value is of type <code>Boolean</code>.
3314: * </p>
3315: *
3316: * @since 3.1
3317: */
3318: public static final String PROPERTIES_FILE_COLORING_KEY_STRIKETHROUGH = PROPERTIES_FILE_COLORING_KEY
3319: + EDITOR_STRIKETHROUGH_SUFFIX;
3320:
3321: /**
3322: * A named preference that controls whether keys in a properties file are rendered in underline.
3323: * <p>
3324: * Value is of type <code>Boolean</code>.
3325: * </p>
3326: *
3327: * @since 3.1
3328: */
3329: public static final String PROPERTIES_FILE_COLORING_KEY_UNDERLINE = PROPERTIES_FILE_COLORING_KEY
3330: + EDITOR_UNDERLINE_SUFFIX;
3331:
3332: /**
3333: * A named preference that holds the color used to render comments in a properties file.
3334: * <p>
3335: * Value is of type <code>String</code>. A RGB color value encoded as a string
3336: * using class <code>PreferenceConverter</code>
3337: * </p>
3338: *
3339: * @see org.eclipse.jface.resource.StringConverter
3340: * @see org.eclipse.jface.preference.PreferenceConverter
3341: * @since 3.1
3342: */
3343: public static final String PROPERTIES_FILE_COLORING_COMMENT = IJavaColorConstants.PROPERTIES_FILE_COLORING_COMMENT;
3344:
3345: /**
3346: * A named preference that controls whether comments in a properties file are rendered in bold.
3347: * <p>
3348: * Value is of type <code>Boolean</code>.
3349: * </p>
3350: *
3351: * @since 3.1
3352: */
3353: public static final String PROPERTIES_FILE_COLORING_COMMENT_BOLD = PROPERTIES_FILE_COLORING_COMMENT
3354: + EDITOR_BOLD_SUFFIX;
3355:
3356: /**
3357: * A named preference that controls whether comments in a properties file are rendered in italic.
3358: * <p>
3359: * Value is of type <code>Boolean</code>.
3360: * </p>
3361: *
3362: * @since 3.1
3363: */
3364: public static final String PROPERTIES_FILE_COLORING_COMMENT_ITALIC = PROPERTIES_FILE_COLORING_COMMENT
3365: + EDITOR_ITALIC_SUFFIX;
3366:
3367: /**
3368: * A named preference that controls whether comments in a properties file are rendered in strikethrough.
3369: * <p>
3370: * Value is of type <code>Boolean</code>.
3371: * </p>
3372: *
3373: * @since 3.1
3374: */
3375: public static final String PROPERTIES_FILE_COLORING_COMMENT_STRIKETHROUGH = PROPERTIES_FILE_COLORING_COMMENT
3376: + EDITOR_STRIKETHROUGH_SUFFIX;
3377:
3378: /**
3379: * A named preference that controls whether comments in a properties file are rendered in underline.
3380: * <p>
3381: * Value is of type <code>Boolean</code>.
3382: * </p>
3383: *
3384: * @since 3.1
3385: */
3386: public static final String PROPERTIES_FILE_COLORING_COMMENT_UNDERLINE = PROPERTIES_FILE_COLORING_COMMENT
3387: + EDITOR_UNDERLINE_SUFFIX;
3388:
3389: /**
3390: * A named preference that holds the color used to render values in a properties file.
3391: * <p>
3392: * Value is of type <code>String</code>. A RGB color value encoded as a string
3393: * using class <code>PreferenceConverter</code>
3394: * </p>
3395: *
3396: * @see org.eclipse.jface.resource.StringConverter
3397: * @see org.eclipse.jface.preference.PreferenceConverter
3398: * @since 3.1
3399: */
3400: public static final String PROPERTIES_FILE_COLORING_VALUE = IJavaColorConstants.PROPERTIES_FILE_COLORING_VALUE;
3401:
3402: /**
3403: * A named preference that controls whether values in a properties file are rendered in bold.
3404: * <p>
3405: * Value is of type <code>Boolean</code>.
3406: * </p>
3407: *
3408: * @since 3.1
3409: */
3410: public static final String PROPERTIES_FILE_COLORING_VALUE_BOLD = PROPERTIES_FILE_COLORING_VALUE
3411: + EDITOR_BOLD_SUFFIX;
3412:
3413: /**
3414: * A named preference that controls whether values in a properties file are rendered in italic.
3415: * <p>
3416: * Value is of type <code>Boolean</code>.
3417: * </p>
3418: *
3419: * @since 3.1
3420: */
3421: public static final String PROPERTIES_FILE_COLORING_VALUE_ITALIC = PROPERTIES_FILE_COLORING_VALUE
3422: + EDITOR_ITALIC_SUFFIX;
3423:
3424: /**
3425: * A named preference that controls whether values in a properties file are rendered in strikethrough.
3426: * <p>
3427: * Value is of type <code>Boolean</code>.
3428: * </p>
3429: *
3430: * @since 3.1
3431: */
3432: public static final String PROPERTIES_FILE_COLORING_VALUE_STRIKETHROUGH = PROPERTIES_FILE_COLORING_VALUE
3433: + EDITOR_STRIKETHROUGH_SUFFIX;
3434:
3435: /**
3436: * A named preference that controls whether values in a properties file are rendered in underline.
3437: * <p>
3438: * Value is of type <code>Boolean</code>.
3439: * </p>
3440: *
3441: * @since 3.1
3442: */
3443: public static final String PROPERTIES_FILE_COLORING_VALUE_UNDERLINE = PROPERTIES_FILE_COLORING_VALUE
3444: + EDITOR_UNDERLINE_SUFFIX;
3445:
3446: /**
3447: * A named preference that holds the color used to render assignments in a properties file.
3448: * <p>
3449: * Value is of type <code>String</code>. A RGB color value encoded as a string
3450: * using class <code>PreferenceConverter</code>
3451: * </p>
3452: *
3453: * @see org.eclipse.jface.resource.StringConverter
3454: * @see org.eclipse.jface.preference.PreferenceConverter
3455: * @since 3.1
3456: */
3457: public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT = IJavaColorConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT;
3458:
3459: /**
3460: * A named preference that controls whether assignments in a properties file are rendered in bold.
3461: * <p>
3462: * Value is of type <code>Boolean</code>.
3463: * </p>
3464: *
3465: * @since 3.1
3466: */
3467: public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_BOLD = PROPERTIES_FILE_COLORING_ASSIGNMENT
3468: + EDITOR_BOLD_SUFFIX;
3469:
3470: /**
3471: * A named preference that controls whether assignments in a properties file are rendered in italic.
3472: * <p>
3473: * Value is of type <code>Boolean</code>.
3474: * </p>
3475: *
3476: * @since 3.1
3477: */
3478: public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_ITALIC = PROPERTIES_FILE_COLORING_ASSIGNMENT
3479: + EDITOR_ITALIC_SUFFIX;
3480:
3481: /**
3482: * A named preference that controls whether assignments in a properties file are rendered in strikethrough.
3483: * <p>
3484: * Value is of type <code>Boolean</code>.
3485: * </p>
3486: *
3487: * @since 3.1
3488: */
3489: public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_STRIKETHROUGH = PROPERTIES_FILE_COLORING_ASSIGNMENT
3490: + EDITOR_STRIKETHROUGH_SUFFIX;
3491:
3492: /**
3493: * A named preference that controls whether assignments in a properties file are rendered in underline.
3494: * <p>
3495: * Value is of type <code>Boolean</code>.
3496: * </p>
3497: *
3498: * @since 3.1
3499: */
3500: public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_UNDERLINE = PROPERTIES_FILE_COLORING_ASSIGNMENT
3501: + EDITOR_UNDERLINE_SUFFIX;
3502:
3503: /**
3504: * A named preference that holds the color used to render arguments in a properties file.
3505: * <p>
3506: * Value is of type <code>String</code>. A RGB color value encoded as a string
3507: * using class <code>PreferenceConverter</code>
3508: * </p>
3509: *
3510: * @see org.eclipse.jface.resource.StringConverter
3511: * @see org.eclipse.jface.preference.PreferenceConverter
3512: * @since 3.1
3513: */
3514: public static final String PROPERTIES_FILE_COLORING_ARGUMENT = IJavaColorConstants.PROPERTIES_FILE_COLORING_ARGUMENT;
3515:
3516: /**
3517: * A named preference that controls whether arguments in a properties file are rendered in bold.
3518: * <p>
3519: * Value is of type <code>Boolean</code>.
3520: * </p>
3521: *
3522: * @since 3.1
3523: */
3524: public static final String PROPERTIES_FILE_COLORING_ARGUMENT_BOLD = PROPERTIES_FILE_COLORING_ARGUMENT
3525: + EDITOR_BOLD_SUFFIX;
3526:
3527: /**
3528: * A named preference that controls whether arguments in a properties file are rendered in italic.
3529: * <p>
3530: * Value is of type <code>Boolean</code>.
3531: * </p>
3532: *
3533: * @since 3.1
3534: */
3535: public static final String PROPERTIES_FILE_COLORING_ARGUMENT_ITALIC = PROPERTIES_FILE_COLORING_ARGUMENT
3536: + EDITOR_ITALIC_SUFFIX;
3537:
3538: /**
3539: * A named preference that controls whether arguments in a properties file are rendered in strikethrough.
3540: * <p>
3541: * Value is of type <code>Boolean</code>.
3542: * </p>
3543: *
3544: * @since 3.1
3545: */
3546: public static final String PROPERTIES_FILE_COLORING_ARGUMENT_STRIKETHROUGH = PROPERTIES_FILE_COLORING_ARGUMENT
3547: + EDITOR_STRIKETHROUGH_SUFFIX;
3548:
3549: /**
3550: * A named preference that controls whether arguments in a properties file are rendered in underline.
3551: * <p>
3552: * Value is of type <code>Boolean</code>.
3553: * </p>
3554: *
3555: * @since 3.1
3556: */
3557: public static final String PROPERTIES_FILE_COLORING_ARGUMENT_UNDERLINE = PROPERTIES_FILE_COLORING_ARGUMENT
3558: + EDITOR_UNDERLINE_SUFFIX;
3559:
3560: /**
3561: * A named preference that stores the content assist LRU history
3562: * <p>
3563: * Value is an XML encoded version of the history.
3564: * </p>
3565: *
3566: * @see org.eclipse.jdt.internal.ui.text.java.ContentAssistHistory#load(org.eclipse.core.runtime.Preferences, String)
3567: * @since 3.2
3568: */
3569: public static final String CODEASSIST_LRU_HISTORY = "content_assist_lru_history"; //$NON-NLS-1$
3570:
3571: /**
3572: * A named preference that stores the content assist sorter id.
3573: * <p>
3574: * Value is a {@link String}.
3575: * </p>
3576: *
3577: * @see ProposalSorterRegistry
3578: * @since 3.2
3579: */
3580: public static final String CODEASSIST_SORTER = "content_assist_sorter"; //$NON-NLS-1$
3581:
3582: /**
3583: * A named preference that holds the source hover background color.
3584: * <p>
3585: * Value is of type <code>String</code>. A RGB color value encoded as a string
3586: * using class <code>PreferenceConverter</code>
3587: * </p>
3588: *
3589: * @see org.eclipse.jface.resource.StringConverter
3590: * @see org.eclipse.jface.preference.PreferenceConverter
3591: * @since 3.3
3592: */
3593: public final static String EDITOR_SOURCE_HOVER_BACKGROUND_COLOR = "sourceHoverBackgroundColor"; //$NON-NLS-1$
3594:
3595: /**
3596: * A named preference that tells whether to use the system
3597: * default color ({@link SWT#COLOR_INFO_BACKGROUND}) for
3598: * the source hover background color.
3599: * <p>
3600: * Value is of type <code>Boolean</code>.
3601: * </p>
3602: *
3603: * @see org.eclipse.jface.resource.StringConverter
3604: * @see org.eclipse.jface.preference.PreferenceConverter
3605: * @since 3.3
3606: */
3607: public final static String EDITOR_SOURCE_HOVER_BACKGROUND_COLOR_SYSTEM_DEFAULT = "sourceHoverBackgroundColor.SystemDefault"; //$NON-NLS-1$
3608:
3609: /**
3610: * Initializes the given preference store with the default values.
3611: *
3612: * @param store the preference store to be initialized
3613: *
3614: * @since 2.1
3615: */
3616: public static void initializeDefaultValues(IPreferenceStore store) {
3617: ColorRegistry registry = null;
3618: if (PlatformUI.isWorkbenchRunning())
3619: registry = PlatformUI.getWorkbench().getThemeManager()
3620: .getCurrentTheme().getColorRegistry();
3621:
3622: store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS,
3623: false);
3624:
3625: // JavaBasePreferencePage
3626: store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY,
3627: PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
3628: store.setDefault(PreferenceConstants.DOUBLE_CLICK,
3629: PreferenceConstants.DOUBLE_CLICK_EXPANDS);
3630: store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS,
3631: PreferenceConstants.UPDATE_WHILE_EDITING);
3632: store.setToDefault(PreferenceConstants.UPDATE_JAVA_VIEWS); // clear preference, update on save not supported anymore
3633:
3634: store.setDefault(
3635: PreferenceConstants.LINK_BROWSING_PROJECTS_TO_EDITOR,
3636: true);
3637: store.setDefault(
3638: PreferenceConstants.LINK_BROWSING_PACKAGES_TO_EDITOR,
3639: true);
3640: store
3641: .setDefault(
3642: PreferenceConstants.LINK_BROWSING_TYPES_TO_EDITOR,
3643: true);
3644: store.setDefault(
3645: PreferenceConstants.LINK_BROWSING_MEMBERS_TO_EDITOR,
3646: true);
3647:
3648: store.setDefault(PreferenceConstants.SEARCH_USE_REDUCED_MENU,
3649: true);
3650:
3651: // AppearancePreferencePage
3652: store.setDefault(
3653: PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES,
3654: false);
3655: store
3656: .setDefault(
3657: PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE,
3658: false);
3659: store.setDefault(
3660: PreferenceConstants.APPEARANCE_METHOD_TYPEPARAMETERS,
3661: true);
3662: store.setDefault(PreferenceConstants.APPEARANCE_CATEGORY, true);
3663: store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
3664: store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY,
3665: false);
3666: store
3667: .setDefault(
3668: PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW,
3669: ""); //$NON-NLS-1$
3670: store
3671: .setDefault(
3672: PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER,
3673: true);
3674: store.setDefault(ColoredViewersManager.PREF_COLORED_LABELS,
3675: true);
3676:
3677: // ImportOrganizePreferencePage
3678: store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER,
3679: "java;javax;org;com"); //$NON-NLS-1$
3680: store.setDefault(
3681: PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
3682: store
3683: .setDefault(
3684: PreferenceConstants.ORGIMPORTS_STATIC_ONDEMANDTHRESHOLD,
3685: 99);
3686: store.setDefault(
3687: PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
3688:
3689: // TypeFilterPreferencePage
3690: store.setDefault(PreferenceConstants.TYPEFILTER_ENABLED, ""); //$NON-NLS-1$
3691: store.setDefault(PreferenceConstants.TYPEFILTER_DISABLED, ""); //$NON-NLS-1$
3692:
3693: // ClasspathVariablesPreferencePage
3694: // CodeFormatterPreferencePage
3695: // CompilerPreferencePage
3696: // no initialization needed
3697:
3698: // RefactoringPreferencePage
3699: store
3700: .setDefault(
3701: PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD,
3702: PreferenceConstants.REFACTOR_WARNING_SEVERITY);
3703: store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS,
3704: false);
3705: store
3706: .setDefault(PreferenceConstants.REFACTOR_LIGHTWEIGHT,
3707: true);
3708:
3709: // TemplatePreferencePage
3710: store.setDefault(
3711: PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
3712:
3713: // CodeGenerationPreferencePage
3714: // compatibility code
3715: if (store
3716: .getBoolean(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX)) {
3717: String prefix = store
3718: .getString(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX);
3719: if (prefix.length() > 0) {
3720: JavaCore.getPlugin().getPluginPreferences().setValue(
3721: JavaCore.CODEASSIST_FIELD_PREFIXES, prefix);
3722: store
3723: .setToDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX);
3724: store
3725: .setToDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX);
3726: }
3727: }
3728: if (store
3729: .getBoolean(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX)) {
3730: String suffix = store
3731: .getString(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX);
3732: if (suffix.length() > 0) {
3733: JavaCore.getPlugin().getPluginPreferences().setValue(
3734: JavaCore.CODEASSIST_FIELD_SUFFIXES, suffix);
3735: store
3736: .setToDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX);
3737: store
3738: .setToDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX);
3739: }
3740: }
3741: store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS,
3742: false);
3743: store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS,
3744: true);
3745: store.setDefault(
3746: PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$
3747: store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS,
3748: false);
3749: store.setDefault(
3750: PreferenceConstants.CODEGEN_USE_OVERRIDE_ANNOTATION,
3751: true);
3752:
3753: // MembersOrderPreferencePage
3754: store.setDefault(
3755: PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER,
3756: "T,SF,SI,SM,F,I,C,M"); //$NON-NLS-1$
3757: store.setDefault(
3758: PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER,
3759: "B,V,R,D"); //$NON-NLS-1$
3760: store
3761: .setDefault(
3762: PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER,
3763: false);
3764:
3765: // JavaEditorPreferencePage
3766: store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS,
3767: true);
3768: setDefaultAndFireEvent(
3769: store,
3770: PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR,
3771: findRGB(
3772: registry,
3773: IJavaThemeConstants.EDITOR_MATCHING_BRACKETS_COLOR,
3774: new RGB(192, 192, 192)));
3775:
3776: store.setDefault(
3777: PreferenceConstants.EDITOR_CORRECTION_INDICATION, true);
3778: store.setDefault(
3779: PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE,
3780: true);
3781:
3782: store.setDefault(
3783: PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS,
3784: true);
3785:
3786: PreferenceConverter.setDefault(store,
3787: PreferenceConstants.EDITOR_LINKED_POSITION_COLOR,
3788: new RGB(121, 121, 121));
3789:
3790: store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
3791: store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS,
3792: false);
3793:
3794: setDefaultAndFireEvent(
3795: store,
3796: PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR,
3797: findRGB(
3798: registry,
3799: IJavaThemeConstants.EDITOR_MULTI_LINE_COMMENT_COLOR,
3800: new RGB(63, 127, 95)));
3801:
3802: store.setDefault(
3803: PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD,
3804: false);
3805: store.setDefault(
3806: PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_ITALIC,
3807: false);
3808:
3809: setDefaultAndFireEvent(
3810: store,
3811: PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR,
3812: findRGB(
3813: registry,
3814: IJavaThemeConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR,
3815: new RGB(63, 127, 95)));
3816:
3817: store.setDefault(
3818: PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD,
3819: false);
3820: store.setDefault(
3821: PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_ITALIC,
3822: false);
3823:
3824: setDefaultAndFireEvent(store,
3825: PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, findRGB(
3826: registry,
3827: IJavaThemeConstants.EDITOR_JAVA_KEYWORD_COLOR,
3828: new RGB(127, 0, 85)));
3829: store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD,
3830: true);
3831: store.setDefault(
3832: PreferenceConstants.EDITOR_JAVA_KEYWORD_ITALIC, false);
3833:
3834: PreferenceConverter.setDefault(store,
3835: PreferenceConstants.EDITOR_JAVA_ANNOTATION_COLOR,
3836: new RGB(100, 100, 100));
3837: store.setDefault(
3838: PreferenceConstants.EDITOR_JAVA_ANNOTATION_BOLD, false);
3839: store.setDefault(
3840: PreferenceConstants.EDITOR_JAVA_ANNOTATION_ITALIC,
3841: false);
3842:
3843: setDefaultAndFireEvent(store,
3844: PreferenceConstants.EDITOR_STRING_COLOR, findRGB(
3845: registry,
3846: IJavaThemeConstants.EDITOR_STRING_COLOR,
3847: new RGB(42, 0, 255)));
3848:
3849: store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false);
3850: store.setDefault(PreferenceConstants.EDITOR_STRING_ITALIC,
3851: false);
3852:
3853: setDefaultAndFireEvent(store,
3854: PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, findRGB(
3855: registry,
3856: IJavaThemeConstants.EDITOR_JAVA_DEFAULT_COLOR,
3857: new RGB(0, 0, 0)));
3858: store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD,
3859: false);
3860: store.setDefault(
3861: PreferenceConstants.EDITOR_JAVA_DEFAULT_ITALIC, false);
3862:
3863: setDefaultAndFireEvent(store,
3864: PreferenceConstants.EDITOR_JAVA_METHOD_NAME_COLOR,
3865: new RGB(0, 0, 0));
3866: store
3867: .setDefault(
3868: PreferenceConstants.EDITOR_JAVA_METHOD_NAME_BOLD,
3869: false);
3870: store.setDefault(
3871: PreferenceConstants.EDITOR_JAVA_METHOD_NAME_ITALIC,
3872: false);
3873:
3874: setDefaultAndFireEvent(
3875: store,
3876: PreferenceConstants.EDITOR_JAVA_KEYWORD_RETURN_COLOR,
3877: findRGB(
3878: registry,
3879: IJavaThemeConstants.EDITOR_JAVA_KEYWORD_RETURN_COLOR,
3880: new RGB(127, 0, 85)));
3881: store.setDefault(
3882: PreferenceConstants.EDITOR_JAVA_KEYWORD_RETURN_BOLD,
3883: true);
3884: store.setDefault(
3885: PreferenceConstants.EDITOR_JAVA_KEYWORD_RETURN_ITALIC,
3886: false);
3887:
3888: setDefaultAndFireEvent(store,
3889: PreferenceConstants.EDITOR_JAVA_OPERATOR_COLOR,
3890: findRGB(registry,
3891: IJavaThemeConstants.EDITOR_JAVA_OPERATOR_COLOR,
3892: new RGB(0, 0, 0)));
3893: store.setDefault(PreferenceConstants.EDITOR_JAVA_OPERATOR_BOLD,
3894: false);
3895: store.setDefault(
3896: PreferenceConstants.EDITOR_JAVA_OPERATOR_ITALIC, false);
3897:
3898: setDefaultAndFireEvent(store,
3899: PreferenceConstants.EDITOR_JAVA_BRACKET_COLOR, findRGB(
3900: registry,
3901: IJavaThemeConstants.EDITOR_JAVA_BRACKET_COLOR,
3902: new RGB(0, 0, 0)));
3903: store.setDefault(PreferenceConstants.EDITOR_JAVA_BRACKET_BOLD,
3904: false);
3905: store.setDefault(
3906: PreferenceConstants.EDITOR_JAVA_BRACKET_ITALIC, false);
3907:
3908: setDefaultAndFireEvent(store,
3909: PreferenceConstants.EDITOR_TASK_TAG_COLOR, findRGB(
3910: registry,
3911: IJavaThemeConstants.EDITOR_TASK_TAG_COLOR,
3912: new RGB(127, 159, 191)));
3913: store
3914: .setDefault(PreferenceConstants.EDITOR_TASK_TAG_BOLD,
3915: true);
3916: store.setDefault(PreferenceConstants.EDITOR_TASK_TAG_ITALIC,
3917: false);
3918:
3919: setDefaultAndFireEvent(
3920: store,
3921: PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR,
3922: findRGB(
3923: registry,
3924: IJavaThemeConstants.EDITOR_JAVADOC_KEYWORD_COLOR,
3925: new RGB(127, 159, 191)));
3926: store.setDefault(
3927: PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
3928: store.setDefault(
3929: PreferenceConstants.EDITOR_JAVADOC_KEYWORD_ITALIC,
3930: false);
3931:
3932: setDefaultAndFireEvent(store,
3933: PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, findRGB(
3934: registry,
3935: IJavaThemeConstants.EDITOR_JAVADOC_TAG_COLOR,
3936: new RGB(127, 127, 159)));
3937: store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD,
3938: false);
3939: store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_ITALIC,
3940: false);
3941:
3942: setDefaultAndFireEvent(store,
3943: PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR,
3944: findRGB(registry,
3945: IJavaThemeConstants.EDITOR_JAVADOC_LINKS_COLOR,
3946: new RGB(63, 63, 191)));
3947: store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD,
3948: false);
3949: store.setDefault(
3950: PreferenceConstants.EDITOR_JAVADOC_LINKS_ITALIC, false);
3951:
3952: setDefaultAndFireEvent(
3953: store,
3954: PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR,
3955: findRGB(
3956: registry,
3957: IJavaThemeConstants.EDITOR_JAVADOC_DEFAULT_COLOR,
3958: new RGB(63, 95, 191)));
3959: store.setDefault(
3960: PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false);
3961: store.setDefault(
3962: PreferenceConstants.EDITOR_JAVADOC_DEFAULT_ITALIC,
3963: false);
3964:
3965: store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION,
3966: true);
3967: store.setDefault(
3968: PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY,
3969: 200);
3970:
3971: store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT,
3972: true);
3973: setDefaultAndFireEvent(
3974: store,
3975: PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND,
3976: findRGB(
3977: registry,
3978: IJavaThemeConstants.CODEASSIST_PROPOSALS_BACKGROUND,
3979: new RGB(255, 255, 255)));
3980: setDefaultAndFireEvent(
3981: store,
3982: PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND,
3983: findRGB(
3984: registry,
3985: IJavaThemeConstants.CODEASSIST_PROPOSALS_FOREGROUND,
3986: new RGB(0, 0, 0)));
3987: setDefaultAndFireEvent(
3988: store,
3989: PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND,
3990: findRGB(
3991: registry,
3992: IJavaThemeConstants.CODEASSIST_PARAMETERS_BACKGROUND,
3993: new RGB(255, 255, 255)));
3994: setDefaultAndFireEvent(
3995: store,
3996: PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND,
3997: findRGB(
3998: registry,
3999: IJavaThemeConstants.CODEASSIST_PARAMETERS_FOREGROUND,
4000: new RGB(0, 0, 0)));
4001: setDefaultAndFireEvent(
4002: store,
4003: PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND,
4004: findRGB(
4005: registry,
4006: IJavaThemeConstants.CODEASSIST_REPLACEMENT_BACKGROUND,
4007: new RGB(255, 255, 0)));
4008: setDefaultAndFireEvent(
4009: store,
4010: PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND,
4011: findRGB(
4012: registry,
4013: IJavaThemeConstants.CODEASSIST_REPLACEMENT_FOREGROUND,
4014: new RGB(255, 0, 0)));
4015: store
4016: .setDefault(
4017: PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA,
4018: "."); //$NON-NLS-1$
4019: store
4020: .setDefault(
4021: PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC,
4022: "@#"); //$NON-NLS-1$
4023: store.setDefault(
4024: PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS,
4025: true);
4026: store.setDefault(
4027: PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false);
4028: store
4029: .setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT,
4030: true);
4031: store.setDefault(
4032: PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true);
4033: store.setDefault(
4034: PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES,
4035: true);
4036: store.setDefault(
4037: PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS,
4038: false);
4039: store
4040: .setDefault(
4041: PreferenceConstants.CODEASSIST_PREFIX_COMPLETION,
4042: false);
4043: store.setDefault(
4044: PreferenceConstants.CODEASSIST_EXCLUDED_CATEGORIES,
4045: "org.eclipse.jdt.ui.textProposalCategory\0"); //$NON-NLS-1$
4046: store
4047: .setDefault(
4048: PreferenceConstants.CODEASSIST_CATEGORY_ORDER,
4049: "org.eclipse.jdt.ui.spellingProposalCategory:65545\0org.eclipse.jdt.ui.javaTypeProposalCategory:65540\0org.eclipse.jdt.ui.javaNoTypeProposalCategory:65539\0org.eclipse.jdt.ui.textProposalCategory:65541\0org.eclipse.jdt.ui.templateProposalCategory:2\0org.eclipse.jdt.ui.swtProposalCategory:3\0"); //$NON-NLS-1$
4050: store
4051: .setDefault(PreferenceConstants.CODEASSIST_LRU_HISTORY,
4052: ""); //$NON-NLS-1$
4053: store.setDefault(PreferenceConstants.CODEASSIST_SORTER,
4054: "org.eclipse.jdt.ui.RelevanceSorter"); //$NON-NLS-1$
4055: store.setDefault(
4056: PreferenceConstants.CODEASSIST_FAVORITE_STATIC_MEMBERS,
4057: ""); //$NON-NLS-1$
4058:
4059: store.setDefault(
4060: PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
4061: store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
4062: store.setDefault(PreferenceConstants.EDITOR_IMPORTS_ON_PASTE,
4063: true);
4064: store
4065: .setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS,
4066: true);
4067: store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS,
4068: true);
4069: store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
4070: store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS,
4071: true);
4072: store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
4073: store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS,
4074: false);
4075: store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS,
4076: true);
4077: store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS,
4078: false);
4079:
4080: int sourceHoverModifier = SWT.MOD2;
4081: String sourceHoverModifierName = Action
4082: .findModifierString(sourceHoverModifier); // Shift
4083: int nlsHoverModifier = SWT.MOD1 + SWT.MOD3;
4084: String nlsHoverModifierName = Action
4085: .findModifierString(SWT.MOD1)
4086: + "+" + Action.findModifierString(SWT.MOD3); // Ctrl + Alt //$NON-NLS-1$
4087: store
4088: .setDefault(
4089: PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS,
4090: "org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.ui.JavaSourceHover;" + sourceHoverModifierName + ";org.eclipse.jdt.ui.NLSStringHover;" + nlsHoverModifierName); //$NON-NLS-1$ //$NON-NLS-2$
4091: store
4092: .setDefault(
4093: PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS,
4094: "org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.ui.JavaSourceHover;" + sourceHoverModifier + ";org.eclipse.jdt.ui.NLSStringHover;" + nlsHoverModifier); //$NON-NLS-1$ //$NON-NLS-2$
4095:
4096: store.setDefault(PreferenceConstants.EDITOR_SMART_TAB, true);
4097: store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE,
4098: true);
4099: store.setDefault(
4100: PreferenceConstants.EDITOR_ANNOTATION_ROLL_OVER, false);
4101:
4102: store.setDefault(
4103: EDITOR_SOURCE_HOVER_BACKGROUND_COLOR_SYSTEM_DEFAULT,
4104: true);
4105:
4106: store.setDefault(PreferenceConstants.FORMATTER_PROFILE,
4107: FormatterProfileManager.DEFAULT_PROFILE);
4108:
4109: // mark occurrences
4110: store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES,
4111: true);
4112: store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES,
4113: true);
4114: store.setDefault(
4115: PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES, true);
4116: store.setDefault(
4117: PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES,
4118: true);
4119: store.setDefault(
4120: PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES,
4121: true);
4122: store
4123: .setDefault(
4124: PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES,
4125: true);
4126: store
4127: .setDefault(
4128: PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES,
4129: true);
4130: store.setDefault(
4131: PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES,
4132: true);
4133: store.setDefault(
4134: PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS,
4135: true);
4136: store.setDefault(
4137: PreferenceConstants.EDITOR_MARK_BREAK_CONTINUE_TARGETS,
4138: true);
4139: store.setDefault(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS,
4140: true);
4141:
4142: // spell checking
4143: store.setDefault(PreferenceConstants.SPELLING_LOCALE, "en_US"); //$NON-NLS-1$
4144: String isInitializedKey = "spelling_locale_initialized"; //$NON-NLS-1$
4145: if (!store.getBoolean(isInitializedKey)) {
4146: store.setValue(isInitializedKey, true);
4147: Locale locale = SpellCheckEngine.getDefaultLocale();
4148: locale = SpellCheckEngine.findClosestLocale(locale);
4149: if (locale != null)
4150: store.setValue(PreferenceConstants.SPELLING_LOCALE,
4151: locale.toString());
4152: }
4153: store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS,
4154: true);
4155: store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED,
4156: true);
4157: store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE,
4158: true);
4159: store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER,
4160: true);
4161: store
4162: .setDefault(PreferenceConstants.SPELLING_IGNORE_URLS,
4163: true);
4164: store.setDefault(
4165: PreferenceConstants.SPELLING_IGNORE_SINGLE_LETTERS,
4166: true);
4167: store
4168: .setDefault(
4169: PreferenceConstants.SPELLING_IGNORE_AMPERSAND_IN_PROPERTIES,
4170: true);
4171: store.setDefault(
4172: PreferenceConstants.SPELLING_IGNORE_NON_LETTERS, true);
4173: store.setDefault(
4174: PreferenceConstants.SPELLING_IGNORE_JAVA_STRINGS, true);
4175: store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY,
4176: ""); //$NON-NLS-1$
4177:
4178: // Note: For backwards compatibility we must use the property and not the workspace default
4179: store.setDefault(
4180: PreferenceConstants.SPELLING_USER_DICTIONARY_ENCODING,
4181: System.getProperty("file.encoding")); //$NON-NLS-1$
4182:
4183: store.setDefault(
4184: PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20);
4185: store.setDefault(
4186: PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD, 100);
4187: /*
4188: * XXX: This is currently disabled because the spelling engine
4189: * cannot return word proposals but only correction proposals.
4190: */
4191: store
4192: .setToDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST);
4193:
4194: // folding
4195: store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED,
4196: true);
4197: store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER,
4198: "org.eclipse.jdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
4199: store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC,
4200: false);
4201: store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES,
4202: false);
4203: store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS,
4204: false);
4205: store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS,
4206: true);
4207: store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS,
4208: true);
4209:
4210: // properties file editor
4211: setDefaultAndFireEvent(
4212: store,
4213: PreferenceConstants.PROPERTIES_FILE_COLORING_KEY,
4214: findRGB(
4215: registry,
4216: IJavaThemeConstants.PROPERTIES_FILE_COLORING_KEY,
4217: new RGB(0, 0, 0)));
4218: store.setDefault(
4219: PreferenceConstants.PROPERTIES_FILE_COLORING_KEY_BOLD,
4220: false);
4221: store
4222: .setDefault(
4223: PreferenceConstants.PROPERTIES_FILE_COLORING_KEY_ITALIC,
4224: false);
4225:
4226: setDefaultAndFireEvent(
4227: store,
4228: PreferenceConstants.PROPERTIES_FILE_COLORING_VALUE,
4229: findRGB(
4230: registry,
4231: IJavaThemeConstants.PROPERTIES_FILE_COLORING_VALUE,
4232: new RGB(42, 0, 255)));
4233: store
4234: .setDefault(
4235: PreferenceConstants.PROPERTIES_FILE_COLORING_VALUE_BOLD,
4236: false);
4237: store
4238: .setDefault(
4239: PreferenceConstants.PROPERTIES_FILE_COLORING_VALUE_ITALIC,
4240: false);
4241:
4242: setDefaultAndFireEvent(
4243: store,
4244: PreferenceConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT,
4245: findRGB(
4246: registry,
4247: IJavaThemeConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT,
4248: new RGB(0, 0, 0)));
4249: store
4250: .setDefault(
4251: PreferenceConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT_BOLD,
4252: false);
4253: store
4254: .setDefault(
4255: PreferenceConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT_ITALIC,
4256: false);
4257:
4258: setDefaultAndFireEvent(
4259: store,
4260: PreferenceConstants.PROPERTIES_FILE_COLORING_ARGUMENT,
4261: findRGB(
4262: registry,
4263: IJavaThemeConstants.PROPERTIES_FILE_COLORING_ARGUMENT,
4264: new RGB(127, 0, 85)));
4265: store
4266: .setDefault(
4267: PreferenceConstants.PROPERTIES_FILE_COLORING_ARGUMENT_BOLD,
4268: true);
4269: store
4270: .setDefault(
4271: PreferenceConstants.PROPERTIES_FILE_COLORING_ARGUMENT_ITALIC,
4272: false);
4273:
4274: setDefaultAndFireEvent(
4275: store,
4276: PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT,
4277: findRGB(
4278: registry,
4279: IJavaThemeConstants.PROPERTIES_FILE_COLORING_COMMENT,
4280: new RGB(63, 127, 95)));
4281: store
4282: .setDefault(
4283: PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT_BOLD,
4284: false);
4285: store
4286: .setDefault(
4287: PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT_ITALIC,
4288: false);
4289:
4290: // semantic highlighting
4291: SemanticHighlightings.initDefaults(store);
4292:
4293: // do more complicated stuff
4294: NewJavaProjectPreferencePage.initDefaults(store);
4295:
4296: // reset preferences that are not settable by editor any longer
4297: // see AbstractDecoratedTextEditorPreferenceConstants
4298: store.setToDefault(EDITOR_SMART_HOME_END); // global
4299: store.setToDefault(EDITOR_LINE_NUMBER_RULER); // global
4300: store.setToDefault(EDITOR_LINE_NUMBER_RULER_COLOR); // global
4301: store.setToDefault(EDITOR_OVERVIEW_RULER); // removed -> true
4302: store
4303: .setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_USE_CUSTOM_CARETS); // accessibility
4304:
4305: store.setToDefault(PreferenceConstants.EDITOR_CURRENT_LINE); // global
4306: store
4307: .setToDefault(PreferenceConstants.EDITOR_CURRENT_LINE_COLOR); // global
4308:
4309: store.setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN); // global
4310: store
4311: .setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN); // global
4312: store
4313: .setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR); // global
4314:
4315: store.setToDefault(PreferenceConstants.EDITOR_FOREGROUND_COLOR); // global
4316: store
4317: .setToDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR); // global
4318: store.setToDefault(PreferenceConstants.EDITOR_BACKGROUND_COLOR); // global
4319: store
4320: .setToDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR); // global
4321: store.setToDefault(PreferenceConstants.EDITOR_FIND_SCOPE_COLOR); // global
4322: store
4323: .setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR); // global
4324: store
4325: .setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR); // global
4326:
4327: store
4328: .setToDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE); // global
4329:
4330: store
4331: .setToDefault(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED); // removed
4332:
4333: store
4334: .setToDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE); // global
4335:
4336: //Code Clean Up
4337: CleanUpConstants.initDefaults(store);
4338: }
4339:
4340: /**
4341: * Returns the JDT-UI preference store.
4342: *
4343: * @return the JDT-UI preference store
4344: */
4345: public static IPreferenceStore getPreferenceStore() {
4346: return JavaPlugin.getDefault().getPreferenceStore();
4347: }
4348:
4349: /**
4350: * Encodes a JRE library to be used in the named preference <code>NEWPROJECT_JRELIBRARY_LIST</code>.
4351: *
4352: * @param description a string value describing the JRE library. The description is used
4353: * to identify the JDR library in the UI
4354: * @param entries an array of classpath entries to be encoded
4355: *
4356: * @return the encoded string.
4357: */
4358: public static String encodeJRELibrary(String description,
4359: IClasspathEntry[] entries) {
4360: return NewJavaProjectPreferencePage.encodeJRELibrary(
4361: description, entries);
4362: }
4363:
4364: /**
4365: * Decodes an encoded JRE library and returns its description string.
4366: * @param encodedLibrary the encoded library
4367: * @return the description of an encoded JRE library
4368: *
4369: * @see #encodeJRELibrary(String, IClasspathEntry[])
4370: */
4371: public static String decodeJRELibraryDescription(
4372: String encodedLibrary) {
4373: return NewJavaProjectPreferencePage
4374: .decodeJRELibraryDescription(encodedLibrary);
4375: }
4376:
4377: /**
4378: * Decodes an encoded JRE library and returns its class path entries.
4379: * @param encodedLibrary the encoded library
4380: * @return the array of classpath entries of an encoded JRE library.
4381: *
4382: * @see #encodeJRELibrary(String, IClasspathEntry[])
4383: */
4384: public static IClasspathEntry[] decodeJRELibraryClasspathEntries(
4385: String encodedLibrary) {
4386: return NewJavaProjectPreferencePage
4387: .decodeJRELibraryClasspathEntries(encodedLibrary);
4388: }
4389:
4390: /**
4391: * Returns the current configuration for the JRE to be used as default in new Java projects.
4392: * This is a convenience method to access the named preference <code>NEWPROJECT_JRELIBRARY_LIST
4393: * </code> with the index defined by <code> NEWPROJECT_JRELIBRARY_INDEX</code>.
4394: *
4395: * @return the current default set of class path entries
4396: *
4397: * @see #NEWPROJECT_JRELIBRARY_LIST
4398: * @see #NEWPROJECT_JRELIBRARY_INDEX
4399: */
4400: public static IClasspathEntry[] getDefaultJRELibrary() {
4401: return NewJavaProjectPreferencePage.getDefaultJRELibrary();
4402: }
4403:
4404: /**
4405: * Returns the value for the given key in the given context.
4406: * @param key The preference key
4407: * @param project The current context or <code>null</code> if no context is available and the
4408: * workspace setting should be taken. Note that passing <code>null</code> should
4409: * be avoided.
4410: * @return Returns the current value for the string.
4411: * @since 3.1
4412: */
4413: public static String getPreference(String key, IJavaProject project) {
4414: String val;
4415: if (project != null) {
4416: val = new ProjectScope(project.getProject()).getNode(
4417: JavaUI.ID_PLUGIN).get(key, null);
4418: if (val != null) {
4419: return val;
4420: }
4421: }
4422: val = new InstanceScope().getNode(JavaUI.ID_PLUGIN).get(key,
4423: null);
4424: if (val != null) {
4425: return val;
4426: }
4427: return new DefaultScope().getNode(JavaUI.ID_PLUGIN).get(key,
4428: null);
4429: }
4430:
4431: /**
4432: * Sets the default value and fires a property
4433: * change event if necessary.
4434: *
4435: * @param store the preference store
4436: * @param key the preference key
4437: * @param newValue the new value
4438: * @since 3.3
4439: */
4440: private static void setDefaultAndFireEvent(IPreferenceStore store,
4441: String key, RGB newValue) {
4442: RGB oldValue = null;
4443: if (store.isDefault(key))
4444: oldValue = PreferenceConverter.getDefaultColor(store, key);
4445:
4446: PreferenceConverter.setDefault(store, key, newValue);
4447:
4448: if (oldValue != null && !oldValue.equals(newValue))
4449: store.firePropertyChangeEvent(key, oldValue, newValue);
4450: }
4451:
4452: /**
4453: * Returns the RGB for the given key in the given color registry.
4454: *
4455: * @param registry the color registry
4456: * @param key the key for the constant in the registry
4457: * @param defaultRGB the default RGB if no entry is found
4458: * @return RGB the RGB
4459: * @since 3.3
4460: */
4461: private static RGB findRGB(ColorRegistry registry, String key,
4462: RGB defaultRGB) {
4463: if (registry == null)
4464: return defaultRGB;
4465:
4466: RGB rgb = registry.getRGB(key);
4467: if (rgb != null)
4468: return rgb;
4469:
4470: return defaultRGB;
4471: }
4472:
4473: }
|