1 /*******************************************************************************
2 * Copyright (c) 2002 International Business Machines Corp. and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v05.html
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.ui;
13 import net.sourceforge.phpdt.core.IClasspathEntry;
14 import net.sourceforge.phpdt.internal.ui.text.spelling.SpellCheckEngine;
15 import net.sourceforge.phpdt.internal.ui.text.spelling.engine.ISpellCheckPreferenceKeys;
16 import net.sourceforge.phpeclipse.IPreferenceConstants;
17 //import net.sourceforge.phpeclipse.PHPeclipsePlugin;
18 import net.sourceforge.phpeclipse.phpeditor.util.PHPColorProvider;
19 import net.sourceforge.phpeclipse.ui.WebUI;
21 import org.eclipse.core.runtime.Platform;
22 import org.eclipse.jface.action.Action;
23 import org.eclipse.jface.preference.IPreferenceStore;
24 import org.eclipse.jface.preference.PreferenceConverter;
25 import org.eclipse.swt.SWT;
26 import org.eclipse.swt.graphics.RGB;
27 import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
28 import org.eclipse.ui.texteditor.AbstractTextEditor;
31 // import org.phpeclipse.phpdt.internal.ui.JavaPlugin;
33 // org.phpeclipse.phpdt.internal.ui.preferences.NewJavaProjectPreferencePage;
36 * Preference constants used in the JDT-UI preference store. Clients should only
37 * read the JDT-UI preference store using these values. Clients are not allowed
38 * to modify the preference store programmatically.
42 public class PreferenceConstants {
44 private PreferenceConstants() {
48 * A named preference that controls return type rendering of methods in the
51 * Value is of type <code>Boolean</code>: if <code>true</code> return
55 public static final String APPEARANCE_METHOD_RETURNTYPE = "net.sourceforge.phpdt.ui.methodreturntype"; //$NON-NLS-1$
58 * A named preference that controls if override indicators are rendered in
61 * Value is of type <code>Boolean</code>: if <code>true</code> override
62 * indicators are rendered
65 public static final String APPEARANCE_OVERRIDE_INDICATOR = "net.sourceforge.phpdt.ui.overrideindicator"; //$NON-NLS-1$
68 * A named preference that defines the pattern used for package name
71 * Value is of type <code>String</code>. For example foe the given
72 * package name 'net.sourceforge.phpdt' pattern '.' will compress it to
73 * '..jdt', '1~' to 'o~.e~.jdt'.
76 public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW = "PackagesView.pkgNamePatternForPackagesView"; //$NON-NLS-1$
79 * A named preference that controls if package name compression is turned on
82 * Value is of type <code>Boolean</code>.
85 * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
87 public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "net.sourceforge.phpdt.ui.compresspackagenames"; //$NON-NLS-1$
90 * A named preference that controls if empty inner packages are folded in
91 * the hierarchical mode of the package explorer.
93 * Value is of type <code>Boolean</code>: if <code>true</code> empty
94 * inner packages are folded.
99 public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "net.sourceforge.phpdt.ui.flatPackagesInPackageExplorer"; //$NON-NLS-1$
102 * A named preference that defines how member elements are ordered by the
103 * Java views using the <code>JavaElementSorter</code>.
105 * Value is of type <code>String</code>: A comma separated list of the
106 * following entries. Each entry must be in the list, no duplication. List
107 * order defines the sort order.
109 * <li><b>T </b>: Types</li>
110 * <li><b>C </b>: Constructors</li>
111 * <li><b>I </b>: Initializers</li>
112 * <li><b>M </b>: Methods</li>
113 * <li><b>F </b>: Fields</li>
114 * <li><b>SI </b>: Static Initializers</li>
115 * <li><b>SM </b>: Static Methods</li>
116 * <li><b>SF </b>: Static Fields</li>
122 public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$
125 * A named preference that defines how member elements are ordered by
126 * visibility in the Java views using the <code>JavaElementSorter</code>.
128 * Value is of type <code>String</code>: A comma separated list of the
129 * following entries. Each entry must be in the list, no duplication. List
130 * order defines the sort order.
132 * <li><b>B </b>: Public</li>
133 * <li><b>V </b>: Private</li>
134 * <li><b>R </b>: Protected</li>
135 * <li><b>D </b>: Default</li>
141 public static final String APPEARANCE_VISIBILITY_SORT_ORDER = "net.sourceforge.phpdt.ui.visibility.order"; //$NON-NLS-1$
144 * A named preferences that controls if Java elements are also sorted by
147 * Value is of type <code>Boolean</code>.
152 public static final String APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER = "net.sourceforge.phpdt.ui.enable.visibility.order"; //$NON-NLS-1$
155 * A named preference that controls if prefix removal during setter/getter
156 * generation is turned on or off.
158 * Value is of type <code>Boolean</code>.
161 public static final String CODEGEN_USE_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.enable"; //$NON-NLS-1$
164 * A named preference that holds a list of prefixes to be removed from a
165 * local variable to compute setter and gettter names.
167 * Value is of type <code>String</code>: comma separated list of prefixed
170 * @see #CODEGEN_USE_GETTERSETTER_PREFIX
172 public static final String CODEGEN_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.list"; //$NON-NLS-1$
175 * A named preference that controls if suffix removal during setter/getter
176 * generation is turned on or off.
178 * Value is of type <code>Boolean</code>.
181 public static final String CODEGEN_USE_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.enable"; //$NON-NLS-1$
184 * A named preference that holds a list of suffixes to be removed from a
185 * local variable to compute setter and getter names.
187 * Value is of type <code>String</code>: comma separated list of suffixes
190 * @see #CODEGEN_USE_GETTERSETTER_SUFFIX
192 public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
195 * A named preference that controls whether the keyword "this" will be added
196 * automatically to field accesses in generated methods.
198 * Value is of type <code>Boolean</code>.
203 public static final String CODEGEN_KEYWORD_THIS = "org.eclipse.jdt.ui.keywordthis"; //$NON-NLS-1$
206 * A named preference that controls whether to use the prefix "is" or the
207 * prefix "get" for automatically created getters which return a boolean
210 * Value is of type <code>Boolean</code>.
215 public static final String CODEGEN_IS_FOR_GETTERS = "org.eclipse.jdt.ui.gettersetter.use.is"; //$NON-NLS-1$
218 * A named preference that defines the preferred variable names for
219 * exceptions in catch clauses.
221 * Value is of type <code>String</code>.
226 public static final String CODEGEN_EXCEPTION_VAR_NAME = "org.eclipse.jdt.ui.exception.name"; //$NON-NLS-1$
229 * A named preference that controls if comment stubs will be added
230 * automatically to newly created types and methods.
232 * Value is of type <code>Boolean</code>.
237 public static final String CODEGEN_ADD_COMMENTS = "net.sourceforge.phpdt.ui.phpdoc"; //$NON-NLS-1$
240 * A name preference that controls if a JavaDoc stub gets added to newly
241 * created types and methods.
243 * Value is of type <code>Boolean</code>.
246 * @deprecated Use CODEGEN_ADD_COMMENTS instead (Name is more precise).
248 // public static final String CODEGEN__JAVADOC_STUBS = CODEGEN_ADD_COMMENTS;
251 * A named preference that controls if a non-phpdoc comment gets added to
252 * methods generated via the "Override Methods" operation.
254 * Value is of type <code>Boolean</code>.
257 public static final String CODEGEN__NON_JAVADOC_COMMENTS = "net.sourceforge.phpdt.ui.seecomments"; //$NON-NLS-1$
260 * A named preference that controls if a file comment gets added to newly
263 * Value is of type <code>Boolean</code>.
266 public static final String CODEGEN__FILE_COMMENTS = "net.sourceforge.phpdt.ui.filecomments"; //$NON-NLS-1$
269 * A named preference that holds a list of comma separated package names.
270 * The list specifies the import order used by the "Organize Imports"
273 * Value is of type <code>String</code>: semicolon separated list of
277 // public static final String ORGIMPORTS_IMPORTORDER =
278 // "net.sourceforge.phpdt.ui.importorder"; //$NON-NLS-1$
280 * A named preference that specifies the number of imports added before a
281 * star-import declaration is used.
283 * Value is of type <code>Int</code>: positive value specifing the number
284 * of non star-import is used
287 public static final String ORGIMPORTS_ONDEMANDTHRESHOLD = "net.sourceforge.phpdt.ui.ondemandthreshold"; //$NON-NLS-1$
290 * A named preferences that controls if types that start with a lower case
291 * letters get added by the "Organize Import" operation.
293 * Value is of type <code>Boolean</code>.
296 public static final String ORGIMPORTS_IGNORELOWERCASE = "net.sourceforge.phpdt.ui.ignorelowercasenames"; //$NON-NLS-1$
299 * A named preference that speficies whether children of a compilation unit
300 * are shown in the package explorer.
302 * Value is of type <code>Boolean</code>.
305 public static final String SHOW_CU_CHILDREN = "net.sourceforge.phpdt.ui.packages.cuchildren"; //$NON-NLS-1$
308 * A named preference that controls whether the package explorer's selection
309 * is linked to the active editor.
311 * Value is of type <code>Boolean</code>.
314 public static final String LINK_PACKAGES_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktoeditor"; //$NON-NLS-1$
317 * A named preference that controls whether the hierarchy view's selection
318 * is linked to the active editor.
320 * Value is of type <code>Boolean</code>.
323 public static final String LINK_TYPEHIERARCHY_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
326 * A named preference that controls whether the browsing view's selection is
327 * linked to the active editor.
329 * Value is of type <code>Boolean</code>.
334 public static final String LINK_BROWSING_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
337 * A named preference that controls whether new projects are generated using
338 * source and output folder.
340 * Value is of type <code>Boolean</code>. if <code>true</code> new
341 * projects are created with a source and output folder. If
342 * <code>false</code> source and output folder equals to the project.
345 public static final String SRCBIN_FOLDERS_IN_NEWPROJ = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
348 * A named preference that specifies the source folder name used when
349 * creating a new Java project. Value is inactive if
350 * <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
352 * Value is of type <code>String</code>.
355 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
357 public static final String SRCBIN_SRCNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
360 * A named preference that specifies the output folder name used when
361 * creating a new Java project. Value is inactive if
362 * <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
364 * Value is of type <code>String</code>.
367 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
369 public static final String SRCBIN_BINNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
372 * A named preference that holds a list of possible JRE libraries used by
373 * the New Java Project wizard. An library consists of a description and an
374 * arbitrary number of <code>IClasspathEntry</code>s, that will represent
375 * the JRE on the new project's classpath.
377 * Value is of type <code>String</code>: a semicolon separated list of
378 * encoded JRE libraries. <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines
379 * the currently used library. Clients should use the method
380 * <code>encodeJRELibrary</code> to encode a JRE library into a string and
381 * the methods <code>decodeJRELibraryDescription(String)</code> and <code>
382 * decodeJRELibraryClasspathEntries(String)</code>
383 * to decode the description and the array of classpath entries from an
387 * @see #NEWPROJECT_JRELIBRARY_INDEX
388 * @see #encodeJRELibrary(String, IClasspathEntry[])
389 * @see #decodeJRELibraryDescription(String)
390 * @see #decodeJRELibraryClasspathEntries(String)
392 public static final String NEWPROJECT_JRELIBRARY_LIST = "net.sourceforge.phpdt.ui.wizards.jre.list"; //$NON-NLS-1$
395 * A named preferences that specifies the current active JRE library.
397 * Value is of type <code>Int</code>: an index into the list of possible
401 * @see #NEWPROJECT_JRELIBRARY_LIST
403 public static final String NEWPROJECT_JRELIBRARY_INDEX = "net.sourceforge.phpdt.ui.wizards.jre.index"; //$NON-NLS-1$
406 * A named preference that controls if a new type hierarchy gets opened in a
407 * new type hierarchy perspective or inside the type hierarchy view part.
409 * Value is of type <code>String</code>: possible values are <code>
410 * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code>
412 * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
415 * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
416 * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
418 public static final String OPEN_TYPE_HIERARCHY = "net.sourceforge.phpdt.ui.openTypeHierarchy"; //$NON-NLS-1$
421 * A string value used by the named preference
422 * <code>OPEN_TYPE_HIERARCHY</code>.
424 * @see #OPEN_TYPE_HIERARCHY
426 public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$
429 * A string value used by the named preference
430 * <code>OPEN_TYPE_HIERARCHY</code>.
432 * @see #OPEN_TYPE_HIERARCHY
434 public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$
437 * A named preference that controls the behaviour when double clicking on a
438 * container in the packages view.
440 * Value is of type <code>String</code>: possible values are <code>
441 * DOUBLE_CLICK_GOES_INTO</code>
443 * DOUBLE_CLICK_EXPANDS</code>.
446 * @see #DOUBLE_CLICK_EXPANDS
447 * @see #DOUBLE_CLICK_GOES_INTO
449 public static final String DOUBLE_CLICK = "packageview.doubleclick"; //$NON-NLS-1$
452 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
456 public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$
459 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
463 public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$
466 * A named preference that controls whether Java views update their
467 * presentation while editing or when saving the content of an editor.
469 * Value is of type <code>String</code>: possible values are <code>
470 * UPDATE_ON_SAVE</code>
472 * UPDATE_WHILE_EDITING</code>.
475 * @see #UPDATE_ON_SAVE
476 * @see #UPDATE_WHILE_EDITING
478 public static final String UPDATE_JAVA_VIEWS = "JavaUI.update"; //$NON-NLS-1$
481 * A string value used by the named preference
482 * <code>UPDATE_JAVA_VIEWS</code>
484 * @see #UPDATE_JAVA_VIEWS
486 public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$
489 * A string value used by the named preference
490 * <code>UPDATE_JAVA_VIEWS</code>
492 * @see #UPDATE_JAVA_VIEWS
494 public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$
497 * A named preference that holds the path of the Javadoc command used by the
498 * Javadoc creation wizard.
500 * Value is of type <code>String</code>.
503 public static final String JAVADOC_COMMAND = "command"; //$NON-NLS-1$
506 * A named preference that defines whether hint to make hover sticky should
512 public static final String EDITOR_SHOW_TEXT_HOVER_AFFORDANCE = "PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE"; //$NON-NLS-1$
515 * A named preference that defines the key for the hover modifiers.
520 public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$
523 * The id of the best match hover contributed for extension point
524 * <code>javaEditorTextHovers</code>.
528 public static String ID_BESTMATCH_HOVER = "net.sourceforge.phpdt.ui.BestMatchHover"; //$NON-NLS-1$
531 * The id of the source code hover contributed for extension point
532 * <code>javaEditorTextHovers</code>.
536 public static String ID_SOURCE_HOVER = "net.sourceforge.phpdt.ui.JavaSourceHover"; //$NON-NLS-1$
539 * The id of the problem hover contributed for extension point
540 * <code>javaEditorTextHovers</code>.
544 public static String ID_PROBLEM_HOVER = "net.sourceforge.phpdt.ui.ProblemHover"; //$NON-NLS-1$
547 * A named preference that controls whether bracket matching highlighting is
550 * Value is of type <code>Boolean</code>.
553 public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
556 * A named preference that holds the color used to highlight matching
559 * Value is of type <code>String</code>. A RGB color value encoded as a
560 * string using class <code>PreferenceConverter</code>
563 * @see org.eclipse.jface.resource.StringConverter
564 * @see org.eclipse.jface.preference.PreferenceConverter
566 public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
569 * A named preference that controls whether the current line highlighting is
572 * Value is of type <code>Boolean</code>.
575 public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
578 * A named preference that holds the color used to highlight the current
581 * Value is of type <code>String</code>. A RGB color value encoded as a
582 * string using class <code>PreferenceConverter</code>
585 * @see org.eclipse.jface.resource.StringConverter
586 * @see org.eclipse.jface.preference.PreferenceConverter
588 public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
591 * A named preference that controls whether the print margin is turned on or
594 * Value is of type <code>Boolean</code>.
597 public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
600 * A named preference that holds the color used to render the print margin.
602 * Value is of type <code>String</code>. A RGB color value encoded as a
603 * string using class <code>PreferenceConverter</code>
606 * @see org.eclipse.jface.resource.StringConverter
607 * @see org.eclipse.jface.preference.PreferenceConverter
609 public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
612 * Print margin column. Int value.
614 public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
617 * A named preference that holds the color used for the find/replace scope.
619 * Value is of type <code>String</code>. A RGB color value encoded as a
620 * string using class <code>PreferenceConverter</code>
623 * @see org.eclipse.jface.resource.StringConverter
624 * @see org.eclipse.jface.preference.PreferenceConverter
626 public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
629 * A named preference that specifies if the editor uses spaces for tabs.
631 * Value is of type <code>Boolean</code>. If <code>true</code> spaces
632 * instead of tabs are used in the editor. If <code>false</code> the
633 * editor inserts a tab character when pressing the tab key.
636 public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
639 * A named preference that holds the number of spaces used per tab in the
642 * Value is of type <code>Int</code>: positive int value specifying the
643 * number of spaces per tab.
646 public final static String EDITOR_TAB_WIDTH = AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH; // "net.sourceforge.phpdt.ui.editor.tab.width";
651 * A named preference that controls whether the outline view selection
652 * should stay in sync with with the element at the current cursor position.
654 * Value is of type <code>Boolean</code>.
659 public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
662 * A named preference that controls if correction indicators are shown in
665 * Value is of type <code>Boolean</code>.
668 public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
671 * A named preference that controls whether the editor shows problem
672 * indicators in text (squiggly lines).
674 * Value is of type <code>Boolean</code>.
677 // public final static String EDITOR_PROBLEM_INDICATION =
678 // "problemIndication"; //$NON-NLS-1$
680 * A named preference that holds the color used to render problem
683 * Value is of type <code>String</code>. A RGB color value encoded as a
684 * string using class <code>PreferenceConverter</code>
687 * @see #EDITOR_PROBLEM_INDICATION
688 * @see org.eclipse.jface.resource.StringConverter
689 * @see org.eclipse.jface.preference.PreferenceConverter
691 // public final static String EDITOR_PROBLEM_INDICATION_COLOR =
692 // "problemIndicationColor"; //$NON-NLS-1$
694 * PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR; A named preference
695 * that controls whether the editor shows warning indicators in text
698 * Value is of type <code>Boolean</code>.
701 // public final static String EDITOR_WARNING_INDICATION =
702 // "warningIndication"; //$NON-NLS-1$
704 * A named preference that holds the color used to render warning
707 * Value is of type <code>String</code>. A RGB color value encoded as a
708 * string using class <code>PreferenceConverter</code>
711 * @see #EDITOR_WARNING_INDICATION
712 * @see org.eclipse.jface.resource.StringConverter
713 * @see org.eclipse.jface.preference.PreferenceConverter
715 // public final static String EDITOR_WARNING_INDICATION_COLOR =
716 // "warningIndicationColor"; //$NON-NLS-1$
718 * A named preference that controls whether the editor shows task indicators
719 * in text (squiggly lines).
721 * Value is of type <code>Boolean</code>.
724 public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
727 * A named preference that holds the color used to render task indicators.
729 * Value is of type <code>String</code>. A RGB color value encoded as a
730 * string using class <code>PreferenceConverter</code>
733 * @see #EDITOR_TASK_INDICATION
734 * @see org.eclipse.jface.resource.StringConverter
735 * @see org.eclipse.jface.preference.PreferenceConverter
737 public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
740 * A named preference that controls whether the editor shows bookmark
741 * indicators in text (squiggly lines).
743 * Value is of type <code>Boolean</code>.
748 public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
751 * A named preference that holds the color used to render bookmark
754 * Value is of type <code>String</code>. A RGB color value encoded as a
755 * string using class <code>PreferenceConverter</code>
758 * @see #EDITOR_BOOKMARK_INDICATION
759 * @see org.eclipse.jface.resource.StringConverter
760 * @see org.eclipse.jface.preference.PreferenceConverter
763 public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
766 * A named preference that controls whether the editor shows search
767 * indicators in text (squiggly lines).
769 * Value is of type <code>Boolean</code>.
774 public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
777 * A named preference that holds the color used to render search indicators.
779 * Value is of type <code>String</code>. A RGB color value encoded as a
780 * string using class <code>PreferenceConverter</code>
783 * @see #EDITOR_SEARCH_RESULT_INDICATION
784 * @see org.eclipse.jface.resource.StringConverter
785 * @see org.eclipse.jface.preference.PreferenceConverter
788 public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
791 * A named preference that controls whether the editor shows unknown
792 * indicators in text (squiggly lines).
794 * Value is of type <code>Boolean</code>.
799 public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
802 * A named preference that holds the color used to render unknown
805 * Value is of type <code>String</code>. A RGB color value encoded as a
806 * string using class <code>PreferenceConverter</code>
809 * @see #EDITOR_UNKNOWN_INDICATION
810 * @see org.eclipse.jface.resource.StringConverter
811 * @see org.eclipse.jface.preference.PreferenceConverter
814 public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
817 * A named preference that controls whether the overview ruler shows error
820 * Value is of type <code>Boolean</code>.
825 public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
828 * A named preference that controls whether the overview ruler shows warning
831 * Value is of type <code>Boolean</code>.
836 public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
839 * A named preference that controls whether the overview ruler shows task
842 * Value is of type <code>Boolean</code>.
847 public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
850 * A named preference that controls whether the overview ruler shows
851 * bookmark indicators.
853 * Value is of type <code>Boolean</code>.
858 public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
861 * A named preference that controls whether the overview ruler shows search
864 * Value is of type <code>Boolean</code>.
869 public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
872 * A named preference that controls whether the overview ruler shows unknown
875 * Value is of type <code>Boolean</code>.
880 public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
883 * A named preference that controls whether the 'close strings' feature is
884 * enabled in PHP mode
886 * Value is of type <code>Boolean</code>.
889 public final static String EDITOR_CLOSE_STRINGS_DQ_PHP = "closeStringsPHPDQ"; //$NON-NLS-1$
892 * A named preference that controls whether the 'close strings' feature is
893 * enabled in PHP mode
895 * Value is of type <code>Boolean</code>.
898 public final static String EDITOR_CLOSE_STRINGS_SQ_PHP = "closeStringsPHPSQ"; //$NON-NLS-1$
901 * A named preference that controls whether the 'close brackets' feature is
902 * enabled in PHP mode
904 * Value is of type <code>Boolean</code>.
909 public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$
912 * A named preference that controls whether the 'wrap words' feature is
915 * Value is of type <code>Boolean</code>.
920 public final static String EDITOR_WRAP_WORDS = "wrapWords"; //$NON-NLS-1$
923 * A named preference that controls whether the 'wrap strings' feature is
926 * Value is of type <code>Boolean</code>.
931 public final static String EDITOR_WRAP_STRINGS_DQ = "wrapStringsDQ"; //$NON-NLS-1$
934 * A named preference that controls whether the 'escape strings' feature is
937 * Value is of type <code>Boolean</code>.
942 public final static String EDITOR_ESCAPE_STRINGS_DQ = "escapeStringsDQ"; //$NON-NLS-1$
945 * A named preference that controls whether the 'wrap strings' feature is
948 * Value is of type <code>Boolean</code>.
953 public final static String EDITOR_WRAP_STRINGS_SQ = "wrapStringsSQ"; //$NON-NLS-1$
956 * A named preference that controls whether the 'escape strings' feature is
959 * Value is of type <code>Boolean</code>.
964 public final static String EDITOR_ESCAPE_STRINGS_SQ = "escapeStringsSQ"; //$NON-NLS-1$
967 * A named preference that controls if content assist inserts the common
968 * prefix of all proposals before presenting choices.
970 * Value is of type <code>Boolean</code>.
975 public final static String CODEASSIST_PREFIX_COMPLETION = "content_assist_prefix_completion"; //$NON-NLS-1$
978 * A named preference that controls whether the 'close braces' feature is
981 * Value is of type <code>Boolean</code>.
986 public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
989 * A named preference that controls whether the 'close php docs' feature is
992 * Value is of type <code>Boolean</code>.
997 public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
1000 * A named preference that controls whether the 'add JavaDoc tags' feature
1003 * Value is of type <code>Boolean</code>.
1008 public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
1011 * A named preference that controls whether the 'format Javadoc tags'
1012 * feature is enabled.
1014 * Value is of type <code>Boolean</code>.
1019 public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$
1022 * A named preference that controls whether the 'smart paste' feature is
1025 * Value is of type <code>Boolean</code>.
1030 public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
1033 * A named preference that controls whether the 'close strings' feature is
1034 * enabled in HTML mode
1036 * Value is of type <code>Boolean</code>.
1041 public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$
1044 * A named preference that controls whether the 'close brackets' feature is
1045 * enabled in HTML mode
1047 * Value is of type <code>Boolean</code>.
1052 public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$
1055 * A named preference that controls whether the 'smart home-end' feature is
1058 * Value is of type <code>Boolean</code>.
1063 public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
1066 * A named preference that controls whether the 'sub-word navigation'
1067 * feature is enabled.
1069 * Value is of type <code>Boolean</code>.
1074 public final static String EDITOR_SUB_WORD_NAVIGATION = "subWordNavigation"; //$NON-NLS-1$
1077 * A named preference that controls if temporary problems are evaluated and
1080 * Value is of type <code>Boolean</code>.
1083 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
1086 * A named preference that controls if the overview ruler is shown in the
1089 * Value is of type <code>Boolean</code>.
1092 public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
1095 * A named preference that holds the color used to render linked positions
1096 * inside code templates.
1098 * Value is of type <code>String</code>. A RGB color value encoded as a
1099 * string using class <code>PreferenceConverter</code>
1102 * @see org.eclipse.jface.resource.StringConverter
1103 * @see org.eclipse.jface.preference.PreferenceConverter
1105 public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
1108 * A named preference that holds the color used as the text foreground.
1110 * Value is of type <code>String</code>. A RGB color value encoded as a
1111 * string using class <code>PreferenceConverter</code>
1114 * @see org.eclipse.jface.resource.StringConverter
1115 * @see org.eclipse.jface.preference.PreferenceConverter
1117 public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
1120 * A named preference that describes if the system default foreground color
1121 * is used as the text foreground.
1123 * Value is of type <code>Boolean</code>.
1126 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
1129 * A named preference that holds the color used as the text background.
1131 * Value is of type <code>String</code>. A RGB color value encoded as a
1132 * string using class <code>PreferenceConverter</code>
1135 * @see org.eclipse.jface.resource.StringConverter
1136 * @see org.eclipse.jface.preference.PreferenceConverter
1138 public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
1141 * A named preference that describes if the system default background color
1142 * is used as the text foreground.
1144 * Value is of type <code>Boolean</code>.
1147 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
1150 * Preference key suffix for bold text style preference keys.
1152 public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
1155 * Preference key suffix for bold text style preference keys.
1157 public static final String EDITOR_ITALIC_SUFFIX = "_italic"; //$NON-NLS-1$
1160 * A named preference that holds the color used to render multi line
1163 * Value is of type <code>String</code>. A RGB color value encoded as a
1164 * string using class <code>PreferenceConverter</code>
1167 * @see org.eclipse.jface.resource.StringConverter
1168 * @see org.eclipse.jface.preference.PreferenceConverter
1170 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT;
1173 * The symbolic font name for the Java editor text font (value
1174 * <code>"net.sourceforge.phpdt.ui.editors.textfont"</code>).
1178 public final static String EDITOR_TEXT_FONT = "net.sourceforge.phpdt.ui.editors.textfont"; //$NON-NLS-1$
1181 * A named preference that controls whether multi line comments are rendered
1184 * Value is of type <code>Boolean</code>. If <code>true</code> multi
1185 * line comments are rendered in bold. If <code>false</code> the are
1186 * rendered using no font style attribute.
1189 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT
1190 + EDITOR_BOLD_SUFFIX;
1193 * A named preference that holds the color used to render single line
1196 * Value is of type <code>String</code>. A RGB color value encoded as a
1197 * string using class <code>PreferenceConverter</code>
1200 * @see org.eclipse.jface.resource.StringConverter
1201 * @see org.eclipse.jface.preference.PreferenceConverter
1203 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT;
1206 * A named preference that controls whether sinle line comments are rendered
1209 * Value is of type <code>Boolean</code>. If <code>true</code> single
1210 * line comments are rendered in bold. If <code>false</code> the are
1211 * rendered using no font style attribute.
1214 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT
1215 + EDITOR_BOLD_SUFFIX;
1218 * A named preference that holds the color used to render operators and
1221 * Value is of type <code>String</code>. A RGB color value encoded as a
1222 * string using class <code>PreferenceConverter</code>
1225 * @see org.eclipse.jface.resource.StringConverter
1226 * @see org.eclipse.jface.preference.PreferenceConverter
1229 public final static String EDITOR_PHP_OPERATOR_COLOR = IPreferenceConstants.PHP_OPERATOR;
1232 * A named preference that controls whether operators and brackets are
1235 * Value is of type <code>Boolean</code>.
1240 public final static String EDITOR_PHP_OPERATOR_BOLD = IPreferenceConstants.PHP_OPERATOR
1241 + EDITOR_BOLD_SUFFIX;
1244 * A named preference that controls whether operators and brackets are
1245 * rendered in italic.
1247 * Value is of type <code>Boolean</code>.
1252 public final static String EDITOR_PHP_OPERATOR_ITALIC = IPreferenceConstants.PHP_OPERATOR
1253 + EDITOR_ITALIC_SUFFIX;
1256 * A named preference that holds the color used to render operators and
1259 * Value is of type <code>String</code>. A RGB color value encoded as a
1260 * string using class <code>PreferenceConverter</code>
1263 * @see org.eclipse.jface.resource.StringConverter
1264 * @see org.eclipse.jface.preference.PreferenceConverter
1267 public final static String EDITOR_PHP_BRACE_OPERATOR_COLOR = IPreferenceConstants.PHP_BRACE_OPERATOR;
1270 * A named preference that controls whether operators and brackets are
1273 * Value is of type <code>Boolean</code>.
1278 public final static String EDITOR_PHP_BRACE_OPERATOR_BOLD = IPreferenceConstants.PHP_BRACE_OPERATOR
1279 + EDITOR_BOLD_SUFFIX;
1282 * A named preference that controls whether operators and brackets are
1283 * rendered in italic.
1285 * Value is of type <code>Boolean</code>.
1290 public final static String EDITOR_PHP_BRACE_OPERATOR_ITALIC = IPreferenceConstants.PHP_BRACE_OPERATOR
1291 + EDITOR_ITALIC_SUFFIX;
1294 * A named preference that holds the color used to render the 'return'
1297 * Value is of type <code>String</code>. A RGB color value encoded as a
1298 * string using class <code>PreferenceConverter</code>
1301 * @see org.eclipse.jface.resource.StringConverter
1302 * @see org.eclipse.jface.preference.PreferenceConverter
1305 public final static String EDITOR_PHP_KEYWORD_RETURN_COLOR = IPreferenceConstants.PHP_KEYWORD_RETURN;
1308 * A named preference that controls whether 'return' keyword is rendered in
1311 * Value is of type <code>Boolean</code>.
1316 public final static String EDITOR_PHP_KEYWORD_RETURN_BOLD = IPreferenceConstants.PHP_KEYWORD_RETURN
1317 + EDITOR_BOLD_SUFFIX;
1320 * A named preference that controls whether 'return' keyword is rendered in
1323 * Value is of type <code>Boolean</code>.
1328 public final static String EDITOR_PHP_KEYWORD_RETURN_ITALIC = IPreferenceConstants.PHP_KEYWORD_RETURN
1329 + EDITOR_ITALIC_SUFFIX;
1332 * A named preference that holds the color used to render php start and stop
1335 * Value is of type <code>String</code>. A RGB color value encoded as a
1336 * string using class <code>PreferenceConverter</code>
1339 * @see org.eclipse.jface.resource.StringConverter
1340 * @see org.eclipse.jface.preference.PreferenceConverter
1342 public final static String EDITOR_PHP_TAG_COLOR = IPreferenceConstants.PHP_TAG;
1345 * A named preference that controls whether php start and stop tags are
1348 * Value is of type <code>Boolean</code>.
1351 public final static String EDITOR_PHP_TAG_BOLD = IPreferenceConstants.PHP_TAG
1352 + EDITOR_BOLD_SUFFIX;
1355 * A named preference that holds the color used to render php keywords.
1357 * Value is of type <code>String</code>. A RGB color value encoded as a
1358 * string using class <code>PreferenceConverter</code>
1361 * @see org.eclipse.jface.resource.StringConverter
1362 * @see org.eclipse.jface.preference.PreferenceConverter
1364 public final static String EDITOR_JAVA_KEYWORD_COLOR = IPreferenceConstants.PHP_KEYWORD;
1367 * A named preference that controls whether keywords are rendered in bold.
1369 * Value is of type <code>Boolean</code>.
1372 public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD
1373 + EDITOR_BOLD_SUFFIX;
1376 * A named preference that holds the color used to render predefined php
1379 * Value is of type <code>String</code>. A RGB color value encoded as a
1380 * string using class <code>PreferenceConverter</code>
1383 * @see org.eclipse.jface.resource.StringConverter
1384 * @see org.eclipse.jface.preference.PreferenceConverter
1386 public final static String EDITOR_PHP_FUNCTIONNAME_COLOR = IPreferenceConstants.PHP_FUNCTIONNAME;
1389 * A named preference that controls whether function names are rendered in
1392 * Value is of type <code>Boolean</code>.
1395 public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME
1396 + EDITOR_BOLD_SUFFIX;
1399 * A named preference that holds the color used to render php variables with
1402 * Value is of type <code>String</code>. A RGB color value encoded as a
1403 * string using class <code>PreferenceConverter</code>
1406 * @see org.eclipse.jface.resource.StringConverter
1407 * @see org.eclipse.jface.preference.PreferenceConverter
1409 public final static String EDITOR_PHP_VARIABLE_DOLLAR_COLOR = IPreferenceConstants.PHP_VARIABLE_DOLLAR;
1412 * A named preference that controls whether variables with prefix '$_' are
1415 * Value is of type <code>Boolean</code>.
1418 public final static String EDITOR_PHP_VARIABLE_DOLLAR_BOLD = IPreferenceConstants.PHP_VARIABLE_DOLLAR
1419 + EDITOR_BOLD_SUFFIX;
1422 * A named preference that holds the color used to render php variables.
1424 * Value is of type <code>String</code>. A RGB color value encoded as a
1425 * string using class <code>PreferenceConverter</code>
1428 * @see org.eclipse.jface.resource.StringConverter
1429 * @see org.eclipse.jface.preference.PreferenceConverter
1431 public final static String EDITOR_PHP_VARIABLE_COLOR = IPreferenceConstants.PHP_VARIABLE;
1434 * A named preference that controls whether variables are rendered in bold.
1436 * Value is of type <code>Boolean</code>.
1439 public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE
1440 + EDITOR_BOLD_SUFFIX;
1443 * A named preference that holds the color used to render php constants.
1445 * Value is of type <code>String</code>. A RGB color value encoded as a
1446 * string using class <code>PreferenceConverter</code>
1449 * @see org.eclipse.jface.resource.StringConverter
1450 * @see org.eclipse.jface.preference.PreferenceConverter
1452 public final static String EDITOR_PHP_CONSTANT_COLOR = IPreferenceConstants.PHP_CONSTANT;
1455 * A named preference that controls whether constants are rendered in bold.
1457 * Value is of type <code>Boolean</code>.
1460 public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT
1461 + EDITOR_BOLD_SUFFIX;
1464 * A named preference that holds the color used to render php types.
1466 * Value is of type <code>String</code>. A RGB color value encoded as a
1467 * string using class <code>PreferenceConverter</code>
1470 * @see org.eclipse.jface.resource.StringConverter
1471 * @see org.eclipse.jface.preference.PreferenceConverter
1473 public final static String EDITOR_PHP_TYPE_COLOR = IPreferenceConstants.PHP_TYPE;
1476 * A named preference that controls whether types are rendered in bold.
1478 * Value is of type <code>Boolean</code>.
1481 public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE
1482 + EDITOR_BOLD_SUFFIX;
1485 * A named preference that holds the color used to render string constants.
1487 * Value is of type <code>String</code>. A RGB color value encoded as a
1488 * string using class <code>PreferenceConverter</code>
1491 * @see org.eclipse.jface.resource.StringConverter
1492 * @see org.eclipse.jface.preference.PreferenceConverter
1494 public final static String EDITOR_STRING_COLOR_DQ = IPreferenceConstants.PHP_STRING_DQ;
1497 * A named preference that controls whether string constants are rendered in
1500 * Value is of type <code>Boolean</code>.
1503 public final static String EDITOR_STRING_BOLD_DQ = IPreferenceConstants.PHP_STRING_DQ
1504 + EDITOR_BOLD_SUFFIX;
1506 public final static String EDITOR_STRING_COLOR_SQ = IPreferenceConstants.PHP_STRING_SQ;
1509 * A named preference that controls whether string constants are rendered in
1512 * Value is of type <code>Boolean</code>.
1515 public final static String EDITOR_STRING_BOLD_SQ = IPreferenceConstants.PHP_STRING_SQ
1516 + EDITOR_BOLD_SUFFIX;
1519 * A named preference that holds the color used to render php default text.
1521 * Value is of type <code>String</code>. A RGB color value encoded as a
1522 * string using class <code>PreferenceConverter</code>
1525 * @see org.eclipse.jface.resource.StringConverter
1526 * @see org.eclipse.jface.preference.PreferenceConverter
1528 public final static String EDITOR_JAVA_DEFAULT_COLOR = IPreferenceConstants.PHP_DEFAULT;
1531 * A named preference that controls whether Java default text is rendered in
1534 * Value is of type <code>Boolean</code>.
1537 public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT
1538 + EDITOR_BOLD_SUFFIX;
1541 * A named preference that holds the color used to render task tags.
1543 * Value is of type <code>String</code>. A RGB color value encoded as a
1544 * string using class <code>PreferenceConverter</code>
1547 * @see org.eclipse.jface.resource.StringConverter
1548 * @see org.eclipse.jface.preference.PreferenceConverter
1551 public final static String EDITOR_TASK_TAG_COLOR = IPreferenceConstants.TASK_TAG;
1554 * A named preference that controls whether task tags are rendered in bold.
1556 * Value is of type <code>Boolean</code>.
1561 public final static String EDITOR_TASK_TAG_BOLD = IPreferenceConstants.TASK_TAG
1562 + EDITOR_BOLD_SUFFIX;
1565 * A named preference that holds the color used to render phpdoc keywords.
1567 * Value is of type <code>String</code>. A RGB color value encoded as a
1568 * string using class <code>PreferenceConverter</code>
1571 * @see org.eclipse.jface.resource.StringConverter
1572 * @see org.eclipse.jface.preference.PreferenceConverter
1574 public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IPreferenceConstants.PHPDOC_KEYWORD;
1577 * A named preference that controls whether phpdoc keywords are rendered in
1580 * Value is of type <code>Boolean</code>.
1583 public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD
1584 + EDITOR_BOLD_SUFFIX;
1587 * A named preference that holds the color used to render phpdoc tags.
1589 * Value is of type <code>String</code>. A RGB color value encoded as a
1590 * string using class <code>PreferenceConverter</code>
1593 * @see org.eclipse.jface.resource.StringConverter
1594 * @see org.eclipse.jface.preference.PreferenceConverter
1596 public final static String EDITOR_JAVADOC_TAG_COLOR = IPreferenceConstants.PHPDOC_TAG;
1599 * A named preference that controls whether phpdoc tags are rendered in
1602 * Value is of type <code>Boolean</code>.
1605 public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG
1606 + EDITOR_BOLD_SUFFIX;
1609 * A named preference that holds the color used to render phpdoc links.
1611 * Value is of type <code>String</code>. A RGB color value encoded as a
1612 * string using class <code>PreferenceConverter</code>
1615 * @see org.eclipse.jface.resource.StringConverter
1616 * @see org.eclipse.jface.preference.PreferenceConverter
1618 public final static String EDITOR_JAVADOC_LINKS_COLOR = IPreferenceConstants.PHPDOC_LINK;
1621 * A named preference that controls whether phpdoc links are rendered in
1624 * Value is of type <code>Boolean</code>.
1627 public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK
1628 + EDITOR_BOLD_SUFFIX;
1631 * A named preference that holds the color used to render phpdoc default
1634 * Value is of type <code>String</code>. A RGB color value encoded as a
1635 * string using class <code>PreferenceConverter</code>
1638 * @see org.eclipse.jface.resource.StringConverter
1639 * @see org.eclipse.jface.preference.PreferenceConverter
1641 public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IPreferenceConstants.PHPDOC_DEFAULT;
1644 * A named preference that controls whether phpdoc default text is rendered
1647 * Value is of type <code>Boolean</code>.
1650 public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT
1651 + EDITOR_BOLD_SUFFIX;
1654 * A named preference that holds the color used for 'linked-mode' underline.
1656 * Value is of type <code>String</code>. A RGB color value encoded as a
1657 * string using class <code>PreferenceConverter</code>
1660 * @see org.eclipse.jface.resource.StringConverter
1661 * @see org.eclipse.jface.preference.PreferenceConverter
1664 public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1667 * A named preference that controls whether hover tooltips in the editor are
1670 * Value is of type <code>Boolean</code>.
1673 public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1676 * A named preference that defines the hover shown when no control key is
1679 * Value is of type <code>String</code>: possible values are <code>
1680 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1681 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1682 * hover contributed as <code>phpEditorTextHovers</code>.
1685 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1686 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1690 public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1693 * A named preference that defines the hover shown when the
1694 * <code>CTRL</code> modifier key is pressed.
1696 * Value is of type <code>String</code>: possible values are <code>
1697 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1698 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1699 * hover contributed as <code>phpEditorTextHovers</code>.
1702 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1703 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1707 public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1710 * A named preference that defines the hover shown when the
1711 * <code>SHIFT</code> modifier key is pressed.
1713 * Value is of type <code>String</code>: possible values are <code>
1714 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1715 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1716 * hover contributed as <code>phpEditorTextHovers</code>.
1719 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1720 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1721 * @see JavaUI ID_*_HOVER
1724 public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1727 * A named preference that defines the hover shown when the
1728 * <code>CTRL + ALT</code> modifier keys is pressed.
1730 * Value is of type <code>String</code>: possible values are <code>
1731 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1732 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1733 * hover contributed as <code>phpEditorTextHovers</code>.
1736 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1737 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1738 * @see JavaUI ID_*_HOVER
1741 public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1744 * A named preference that defines the hover shown when the
1745 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1747 * Value is of type <code>String</code>: possible values are <code>
1748 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1749 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1750 * hover contributed as <code>phpEditorTextHovers</code>.
1753 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1754 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1755 * @see JavaUI ID_*_HOVER
1758 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1761 * A named preference that defines the hover shown when the
1762 * <code>CTRL + SHIFT</code> modifier keys is pressed.
1764 * Value is of type <code>String</code>: possible values are <code>
1765 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1766 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1767 * hover contributed as <code>phpEditorTextHovers</code>.
1770 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1771 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1772 * @see JavaUI ID_*_HOVER
1775 public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1778 * A named preference that defines the hover shown when the <code>ALT</code>
1779 * modifier key is pressed.
1781 * Value is of type <code>String</code>: possible values are <code>
1782 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1783 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1784 * hover contributed as <code>phpEditorTextHovers</code>.
1787 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1788 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1789 * @see JavaUI ID_*_HOVER
1792 public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1795 * A string value used by the named preferences for hover configuration to
1796 * descibe that no hover should be shown for the given key modifiers.
1800 public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1803 * A string value used by the named preferences for hover configuration to
1804 * descibe that the default hover should be shown for the given key
1805 * modifiers. The default hover is described by the
1806 * <code>EDITOR_DEFAULT_HOVER</code> property.
1810 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1813 * A named preference that defines the hover named the 'default hover'.
1814 * Value is of type <code>String</code>: possible values are <code>
1815 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1816 * or <code> the hover id of a hover
1817 * contributed as <code>phpEditorTextHovers</code>.
1821 public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1824 * A named preference that controls if segmented view (show selected element
1825 * only) is turned on or off.
1827 * Value is of type <code>Boolean</code>.
1830 public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1833 * A named preference that controls if browser like links are turned on or
1836 * Value is of type <code>Boolean</code>.
1841 public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
1844 * A named preference that controls the key modifier for browser like links.
1846 * Value is of type <code>String</code>.
1851 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
1854 * A named preference that controls whether occurrences are marked in the
1857 * Value is of type <code>Boolean</code>.
1862 public static final String EDITOR_MARK_OCCURRENCES = "markOccurrences"; //$NON-NLS-1$
1865 * A named preference that controls whether occurrences are sticky in the
1868 * Value is of type <code>Boolean</code>.
1873 public static final String EDITOR_STICKY_OCCURRENCES = "stickyOccurrences"; //$NON-NLS-1$
1876 * A named preference that controls disabling of the overwrite mode.
1878 * Value is of type <code>Boolean</code>.
1883 public static final String EDITOR_DISABLE_OVERWRITE_MODE = "disable_overwrite_mode"; //$NON-NLS-1$
1886 * A named preference that controls saving of a file on loss of editor focus.
1888 * Value is of type <code>Boolean</code>.
1893 public static final String EDITOR_SAVE_ON_BLUR = "save_on_blur"; //$NON-NLS-1$
1896 * A named preference that controls the "smart semicolon" smart typing
1899 * Value is of type <code>Boolean</code>.
1904 public static final String EDITOR_SMART_SEMICOLON = "smart_semicolon"; //$NON-NLS-1$
1907 * A named preference that controls the smart backspace behavior.
1909 * Value is of type <code>Boolean</code>.
1913 public static final String EDITOR_SMART_BACKSPACE = "smart_backspace"; //$NON-NLS-1$
1916 * A named preference that controls the "smart opening brace" smart typing
1919 * Value is of type <code>Boolean</code>.
1924 public static final String EDITOR_SMART_OPENING_BRACE = "smart_opening_brace"; //$NON-NLS-1$
1927 * A named preference that controls the smart tab behaviour.
1929 * Value is of type <code>Boolean</code>.
1933 public static final String EDITOR_SMART_TAB = "smart_tab"; //$NON-NLS-1$
1935 public static final String EDITOR_P_RTRIM_ON_SAVE = "editor_p_trim_on_save"; //$NON-NLS-1$
1938 * A named preference that controls whether Java comments should be
1941 * Value is of type <code>Boolean</code>.
1946 public final static String SPELLING_CHECK_SPELLING = ISpellCheckPreferenceKeys.SPELLING_CHECK_SPELLING;
1949 * A named preference that controls whether words containing digits should
1950 * be skipped during spell-checking.
1952 * Value is of type <code>Boolean</code>.
1957 public final static String SPELLING_IGNORE_DIGITS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_DIGITS;
1960 * A named preference that controls whether mixed case words should be
1961 * skipped during spell-checking.
1963 * Value is of type <code>Boolean</code>.
1968 public final static String SPELLING_IGNORE_MIXED = ISpellCheckPreferenceKeys.SPELLING_IGNORE_MIXED;
1971 * A named preference that controls whether sentence capitalization should
1972 * be ignored during spell-checking.
1974 * Value is of type <code>Boolean</code>.
1979 public final static String SPELLING_IGNORE_SENTENCE = ISpellCheckPreferenceKeys.SPELLING_IGNORE_SENTENCE;
1982 * A named preference that controls whether upper case words should be
1983 * skipped during spell-checking.
1985 * Value is of type <code>Boolean</code>.
1990 public final static String SPELLING_IGNORE_UPPER = ISpellCheckPreferenceKeys.SPELLING_IGNORE_UPPER;
1993 * A named preference that controls whether urls should be ignored during
1996 * Value is of type <code>Boolean</code>.
2001 public final static String SPELLING_IGNORE_URLS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_URLS;
2004 * A named preference that controls the locale used for spell-checking.
2006 * Value is of type <code>String</code>.
2011 public final static String SPELLING_LOCALE = ISpellCheckPreferenceKeys.SPELLING_LOCALE;
2014 * A named preference that controls the number of proposals offered during
2017 * Value is of type <code>Integer</code>.
2022 public final static String SPELLING_PROPOSAL_THRESHOLD = ISpellCheckPreferenceKeys.SPELLING_PROPOSAL_THRESHOLD;
2025 * A named preference that specifies the workspace user dictionary.
2027 * Value is of type <code>Integer</code>.
2032 public final static String SPELLING_USER_DICTIONARY = ISpellCheckPreferenceKeys.SPELLING_USER_DICTIONARY;
2035 * A named preference that specifies whether spelling dictionaries are
2036 * available to content assist.
2038 * Value is of type <code>Boolean</code>.
2043 public final static String SPELLING_ENABLE_CONTENTASSIST = ISpellCheckPreferenceKeys.SPELLING_ENABLE_CONTENTASSIST;
2046 * A named preference that controls whether code snippets are formatted in
2049 * Value is of type <code>Boolean</code>.
2054 public final static String FORMATTER_COMMENT_FORMATSOURCE = "comment_format_source_code"; //$NON-NLS-1$
2057 * A named preference that controls whether description of Javadoc
2058 * parameters are indented.
2060 * Value is of type <code>Boolean</code>.
2065 public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION = "comment_indent_parameter_description"; //$NON-NLS-1$
2068 * A named preference that controls whether the header comment of a Java
2069 * source file is formatted.
2071 * Value is of type <code>Boolean</code>.
2076 public final static String FORMATTER_COMMENT_FORMATHEADER = "comment_format_header"; //$NON-NLS-1$
2079 * A named preference that controls whether Javadoc root tags are indented.
2081 * Value is of type <code>Boolean</code>.
2086 public final static String FORMATTER_COMMENT_INDENTROOTTAGS = "comment_indent_root_tags"; //$NON-NLS-1$
2089 * A named preference that controls whether Javadoc comments are formatted
2090 * by the content formatter.
2092 * Value is of type <code>Boolean</code>.
2097 public final static String FORMATTER_COMMENT_FORMAT = "comment_format_comments"; //$NON-NLS-1$
2100 * A named preference that controls whether a new line is inserted after
2101 * Javadoc root tag parameters.
2103 * Value is of type <code>Boolean</code>.
2108 public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER = "comment_new_line_for_parameter"; //$NON-NLS-1$
2111 * A named preference that controls whether an empty line is inserted before
2112 * the Javadoc root tag block.
2114 * Value is of type <code>Boolean</code>.
2119 public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS = "comment_separate_root_tags"; //$NON-NLS-1$
2122 * A named preference that controls whether blank lines are cleared during
2125 * Value is of type <code>Boolean</code>.
2130 public final static String FORMATTER_COMMENT_CLEARBLANKLINES = "comment_clear_blank_lines"; //$NON-NLS-1$
2133 * A named preference that controls the line length of comments.
2135 * Value is of type <code>Integer</code>. The value must be at least 4
2136 * for reasonable formatting.
2141 public final static String FORMATTER_COMMENT_LINELENGTH = "comment_line_length"; //$NON-NLS-1$
2144 * A named preference that controls whether html tags are formatted.
2146 * Value is of type <code>Boolean</code>.
2151 public final static String FORMATTER_COMMENT_FORMATHTML = "comment_format_html"; //$NON-NLS-1$
2154 * A named preference that controls if the Java code assist gets auto
2157 * Value is of type <code>Boolean</code>.
2160 public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
2163 * A name preference that holds the auto activation delay time in milli
2166 * Value is of type <code>Int</code>.
2169 public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
2172 * A named preference that controls if code assist contains only visible
2175 * Value is of type <code>Boolean</code>. if
2176 * <code>true<code> code assist only contains visible members. If
2177 * <code>false</code> all members are included.
2180 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
2183 * A named preference that controls if the Java code assist inserts a
2184 * proposal automatically if only one proposal is available.
2186 * Value is of type <code>Boolean</code>.
2191 public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
2194 * A named preference that controls if the Java code assist adds import
2197 * Value is of type <code>Boolean</code>.
2202 public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
2205 * A named preference that controls if the Java code assist only inserts
2206 * completions. If set to false the proposals can also _replace_ code.
2208 * Value is of type <code>Boolean</code>.
2213 public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
2216 * A named preference that controls whether code assist proposals filtering
2217 * is case sensitive or not.
2219 * Value is of type <code>Boolean</code>.
2222 public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
2225 * A named preference that defines if code assist proposals are sorted in
2226 * alphabetical order.
2228 * Value is of type <code>Boolean</code>. If <code>true</code> that are
2229 * sorted in alphabetical order. If <code>false</code> that are unsorted.
2232 public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
2235 * A named preference that controls if argument names are filled in when a
2236 * method is selected from as list of code assist proposal.
2238 * Value is of type <code>Boolean</code>.
2241 public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
2244 * A named preference that controls if method arguments are guessed when a
2245 * method is selected from as list of code assist proposal.
2247 * Value is of type <code>Boolean</code>.
2252 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
2255 * A named preference that holds the characters that auto activate code
2256 * assist in PHP code.
2258 * Value is of type <code>Sring</code>. All characters that trigger auto
2259 * code assist in PHP code.
2262 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
2265 * A named preference that holds the characters that auto activate code
2268 * Value is of type <code>Sring</code>. All characters that trigger auto
2269 * code assist in PHPDoc.
2272 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
2275 * A named preference that holds the characters that auto activate code
2278 * Value is of type <code>Sring</code>. All characters that trigger auto
2279 * code assist in HTML.
2282 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
2285 * A named preference that holds the background color used in the code
2286 * assist selection dialog.
2288 * Value is of type <code>String</code>. A RGB color value encoded as a
2289 * string using class <code>PreferenceConverter</code>
2292 * @see org.eclipse.jface.resource.StringConverter
2293 * @see org.eclipse.jface.preference.PreferenceConverter
2295 public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
2298 * A named preference that holds the foreground color used in the code
2299 * assist selection dialog.
2301 * Value is of type <code>String</code>. A RGB color value encoded as a
2302 * string using class <code>PreferenceConverter</code>
2305 * @see org.eclipse.jface.resource.StringConverter
2306 * @see org.eclipse.jface.preference.PreferenceConverter
2308 public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
2311 * A named preference that holds the background color used for parameter
2314 * Value is of type <code>String</code>. A RGB color value encoded as a
2315 * string using class <code>PreferenceConverter</code>
2318 * @see org.eclipse.jface.resource.StringConverter
2319 * @see org.eclipse.jface.preference.PreferenceConverter
2321 public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
2324 * A named preference that holds the foreground color used in the code
2325 * assist selection dialog
2327 * Value is of type <code>String</code>. A RGB color value encoded as a
2328 * string using class <code>PreferenceConverter</code>
2331 * @see org.eclipse.jface.resource.StringConverter
2332 * @see org.eclipse.jface.preference.PreferenceConverter
2334 public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
2337 * A named preference that holds the background color used in the code
2338 * assist selection dialog to mark replaced code.
2340 * Value is of type <code>String</code>. A RGB color value encoded as a
2341 * string using class <code>PreferenceConverter</code>
2344 * @see org.eclipse.jface.resource.StringConverter
2345 * @see org.eclipse.jface.preference.PreferenceConverter
2348 public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
2351 * A named preference that holds the foreground color used in the code
2352 * assist selection dialog to mark replaced code.
2354 * Value is of type <code>String</code>. A RGB color value encoded as a
2355 * string using class <code>PreferenceConverter</code>
2358 * @see org.eclipse.jface.resource.StringConverter
2359 * @see org.eclipse.jface.preference.PreferenceConverter
2362 public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
2365 * A named preference that controls the behaviour of the refactoring wizard
2366 * for showing the error page.
2368 * Value is of type <code>String</code>. Valid values are:
2369 * <code>REFACTOR_FATAL_SEVERITY</code>,
2370 * <code>REFACTOR_ERROR_SEVERITY</code>,<code>REFACTOR_WARNING_SEVERITY</code>
2371 * <code>REFACTOR_INFO_SEVERITY</code>,
2372 * <code>REFACTOR_OK_SEVERITY</code>.
2375 * @see #REFACTOR_FATAL_SEVERITY
2376 * @see #REFACTOR_ERROR_SEVERITY
2377 * @see #REFACTOR_WARNING_SEVERITY
2378 * @see #REFACTOR_INFO_SEVERITY
2379 * @see #REFACTOR_OK_SEVERITY
2381 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
2384 * A string value used by the named preference
2385 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2387 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2389 public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
2392 * A string value used by the named preference
2393 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2395 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2397 public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
2400 * A string value used by the named preference
2401 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2403 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2405 public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
2408 * A string value used by the named preference
2409 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2411 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2413 public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
2416 * A string value used by the named preference
2417 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2419 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2421 public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
2424 * A named preference thet controls whether all dirty editors are
2425 * automatically saved before a refactoring is executed.
2427 * Value is of type <code>Boolean</code>.
2430 public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
2433 * A named preference that controls if the Java Browsing views are linked to
2434 * the active editor.
2436 * Value is of type <code>Boolean</code>.
2439 * @see #LINK_PACKAGES_TO_EDITOR
2441 public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
2444 * A named preference that controls the layout of the Java Browsing views
2445 * vertically. Boolean value.
2447 * Value is of type <code>Boolean</code>. If
2448 * <code>true<code> the views are stacked vertical.
2449 * If <code>false</code> they are stacked horizontal.
2452 public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
2455 * A named preference that controls if templates are formatted when applied.
2457 * Value is of type <code>Boolean</code>.
2462 public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
2465 * A named preference that controls whether annotation roll over is used or
2468 * Value is of type <code>Boolean</code>. If
2469 * <code>true<code> the annotation ruler column
2470 * uses a roll over to display multiple annotations
2475 public static final String EDITOR_ANNOTATION_ROLL_OVER = "editor_annotation_roll_over"; //$NON-NLS-1$
2478 * A named preference that controls the key modifier mask for browser like
2479 * links. The value is only used if the value of
2480 * <code>EDITOR_BROWSER_LIKE_LINKS</code> cannot be resolved to valid SWT
2483 * Value is of type <code>String</code>.
2486 * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2489 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2492 * A named preference that defines the key for the hover modifier state
2493 * masks. The value is only used if the value of
2494 * <code>EDITOR_TEXT_HOVER_MODIFIERS</code> cannot be resolved to valid
2495 * SWT modifier bits.
2498 * @see #EDITOR_TEXT_HOVER_MODIFIERS
2501 public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
2504 * A named preference that controls whether folding is enabled in the Java
2507 * Value is of type <code>Boolean</code>.
2512 public static final String EDITOR_FOLDING_ENABLED = "editor_folding_enabled"; //$NON-NLS-1$
2515 * A named preference that stores the configured folding provider.
2517 * Value is of type <code>String</code>.
2522 public static final String EDITOR_FOLDING_PROVIDER = "editor_folding_provider"; //$NON-NLS-1$
2525 * A named preference that stores the value for Javadoc folding for the
2526 * default folding provider.
2528 * Value is of type <code>Boolean</code>.
2533 public static final String EDITOR_FOLDING_JAVADOC = "editor_folding_default_javadoc"; //$NON-NLS-1$
2536 * A named preference that stores the value for inner type folding for the
2537 * default folding provider.
2539 * Value is of type <code>Boolean</code>.
2544 public static final String EDITOR_FOLDING_INNERTYPES = "editor_folding_default_innertypes"; //$NON-NLS-1$
2547 * A named preference that stores the value for method folding for the
2548 * default folding provider.
2550 * Value is of type <code>Boolean</code>.
2555 public static final String EDITOR_FOLDING_METHODS = "editor_folding_default_methods"; //$NON-NLS-1$
2558 * A named preference that stores the value for imports folding for the
2559 * default folding provider.
2561 * Value is of type <code>Boolean</code>.
2566 // public static final String EDITOR_FOLDING_IMPORTS =
2567 // "editor_folding_default_imports"; //$NON-NLS-1$
2569 * A named preference that stores the value for header comment folding for
2570 * the default folding provider.
2572 * Value is of type <code>Boolean</code>.
2577 public static final String EDITOR_FOLDING_HEADERS = "editor_folding_default_headers"; //$NON-NLS-1$
2579 public static void initializeDefaultValues(IPreferenceStore store) {
2580 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
2582 // JavaBasePreferencePage
2583 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
2584 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR,
2587 .setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR,
2589 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY,
2590 PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
2591 store.setDefault(PreferenceConstants.DOUBLE_CLICK,
2592 PreferenceConstants.DOUBLE_CLICK_EXPANDS);
2593 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS,
2594 PreferenceConstants.UPDATE_WHILE_EDITING);
2596 // AppearancePreferencePage
2597 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES,
2599 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE,
2601 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
2602 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR,
2604 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
2606 PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW,
2610 PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER,
2613 // ImportOrganizePreferencePage
2614 // store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER,
2615 // "php;phpx;org;com"); //$NON-NLS-1$
2616 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
2617 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
2619 // ClasspathVariablesPreferencePage
2620 // CodeFormatterPreferencePage
2621 // CompilerPreferencePage
2622 // no initialization needed
2624 // RefactoringPreferencePage
2626 PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD,
2627 PreferenceConstants.REFACTOR_ERROR_SEVERITY);
2628 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
2629 store.setDefault("RefactoringUI", "dialog");
2631 // TemplatePreferencePage
2632 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
2634 // CodeGenerationPreferencePage
2635 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX,
2637 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX,
2639 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX,
2640 "fg, f, _$, _, m_"); //$NON-NLS-1$
2641 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
2643 store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS, false);
2644 store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true);
2645 store.setDefault(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$
2646 store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, true);
2647 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS,
2649 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
2651 // MembersOrderPreferencePage
2652 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER,
2653 "T,SF,SI,SM,I,F,C,M"); //$NON-NLS-1$
2654 store.setDefault(PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER,
2655 "B,V,R,D"); //$NON-NLS-1$
2657 PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER,
2659 // must add here to guarantee that it is the first in the listener list
2660 store.addPropertyChangeListener(WebUI.getDefault()
2661 .getMemberOrderPreferenceCache());
2663 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
2664 PreferenceConverter.setDefault(store,
2665 PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, new RGB(
2668 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
2669 PreferenceConverter.setDefault(store,
2670 PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225,
2673 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
2674 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
2675 PreferenceConverter.setDefault(store,
2676 PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176,
2679 PreferenceConverter.setDefault(store,
2680 PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176,
2683 // store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION,
2685 // PreferenceConverter.setDefault(store,
2686 // PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0,
2688 // store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER,
2691 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION,
2693 // PreferenceConverter.setDefault(store,
2694 // PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244,
2696 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER,
2699 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
2700 // PreferenceConverter.setDefault(store,
2701 // PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128,
2703 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER,
2706 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION,
2708 // PreferenceConverter.setDefault(store,
2709 // PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34,
2711 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER,
2714 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION,
2716 // PreferenceConverter.setDefault(store,
2717 // PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new
2718 // RGB(192, 192, 192));
2719 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER,
2722 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION,
2724 // PreferenceConverter.setDefault(store,
2725 // PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0,
2727 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER,
2731 .setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION,
2734 PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true);
2736 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS,
2739 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
2741 // WorkbenchChainedTextFontFieldEditor.startPropagate(store,
2742 // JFaceResources.TEXT_FONT);
2744 PreferenceConverter.setDefault(store,
2745 PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0,
2747 PreferenceConverter.setDefault(store,
2748 PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
2750 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR,
2753 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR,
2756 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
2757 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
2759 PreferenceConverter.setDefault(store,
2760 PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(
2762 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD,
2765 PreferenceConverter.setDefault(store,
2766 PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(
2768 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD,
2771 PreferenceConverter.setDefault(store,
2772 PreferenceConstants.EDITOR_PHP_TAG_COLOR, new RGB(255, 0, 128));
2773 store.setDefault(PreferenceConstants.EDITOR_PHP_TAG_BOLD, true);
2775 PreferenceConverter.setDefault(store,
2776 PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0,
2778 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
2780 PreferenceConverter.setDefault(store,
2781 PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127,
2783 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD,
2786 PreferenceConverter.setDefault(store,
2787 PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127,
2789 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
2791 PreferenceConverter.setDefault(store,
2792 PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_COLOR, new RGB(
2794 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_BOLD,
2797 PreferenceConverter.setDefault(store,
2798 PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0,
2800 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
2802 PreferenceConverter.setDefault(store,
2803 PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
2804 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
2806 PreferenceConverter.setDefault(store,
2807 PreferenceConstants.EDITOR_STRING_COLOR_DQ,
2808 PHPColorProvider.STRING_DQ);
2809 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_DQ, false);
2811 PreferenceConverter.setDefault(store,
2812 PreferenceConstants.EDITOR_STRING_COLOR_SQ,
2813 PHPColorProvider.STRING_SQ);
2814 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_SQ, true);
2818 PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(
2820 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
2822 PreferenceConverter.setDefault(store,
2823 PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127,
2825 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
2827 PreferenceConverter.setDefault(store,
2828 PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127,
2830 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
2832 PreferenceConverter.setDefault(store,
2833 PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63,
2835 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
2837 PreferenceConverter.setDefault(store,
2838 PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63,
2841 .setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD,
2844 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
2845 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY,
2848 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
2849 PreferenceConverter.setDefault(store,
2850 PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(
2852 PreferenceConverter.setDefault(store,
2853 PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0,
2855 PreferenceConverter.setDefault(store,
2856 PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(
2858 PreferenceConverter.setDefault(store,
2859 PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(
2861 PreferenceConverter.setDefault(store,
2862 PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(
2864 PreferenceConverter.setDefault(store,
2865 PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(
2868 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA,
2869 "$>"); //$NON-NLS-1$
2871 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC,
2874 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML,
2875 "<&#"); //$NON-NLS-1$
2876 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS,
2879 .setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY,
2881 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
2882 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
2884 .setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION,
2886 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES,
2888 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS,
2890 store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION,
2893 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
2894 store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
2895 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
2896 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_DQ_PHP, true);
2897 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_SQ_PHP, true);
2898 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
2899 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
2900 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
2901 store.setDefault(PreferenceConstants.EDITOR_WRAP_WORDS, false);
2902 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_DQ, true);
2903 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_DQ, false);
2904 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_SQ, true);
2905 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_SQ, false);
2906 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
2907 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, false);
2908 store.setDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE,
2911 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
2912 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
2914 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER,
2915 // JavaPlugin.ID_BESTMATCH_HOVER);
2916 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER,
2917 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2918 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER,
2919 // JavaPlugin.ID_SOURCE_HOVER);
2920 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER,
2921 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2922 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER,
2923 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2924 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER,
2925 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2926 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER,
2927 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2928 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER,
2929 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2931 int modifier = SWT.CTRL;
2932 if (Platform.getOS().equals(Platform.OS_MACOSX))
2933 modifier = SWT.COMMAND;
2934 String ctrl = Action.findModifierString(modifier);
2937 PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS,
2938 "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$
2941 PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS,
2942 "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + modifier); //$NON-NLS-1$
2943 store.setDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE,
2946 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true);
2948 PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER,
2952 PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK,
2956 store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true);
2957 store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true);
2958 // store.setDefault(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES,
2960 // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES,
2962 // store.setDefault(PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES,
2964 // store.setDefault(PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES,
2966 // store.setDefault(PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES,
2968 // store.setDefault(PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES,
2970 // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS,
2972 // store.setDefault(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, true);
2975 store.setDefault(PreferenceConstants.SPELLING_CHECK_SPELLING, false);
2976 store.setDefault(PreferenceConstants.SPELLING_LOCALE, SpellCheckEngine
2977 .getDefaultLocale().toString());
2978 store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS, true);
2979 store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED, true);
2980 store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE, true);
2981 store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER, true);
2982 store.setDefault(PreferenceConstants.SPELLING_IGNORE_URLS, true);
2983 store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$
2984 store.setDefault(PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20);
2985 store.setDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST,
2989 store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
2990 store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER,
2991 "net.sourceforge.phpdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
2992 store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, true);
2993 store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, true);
2994 store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false);
2995 // store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, false);
2996 store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS, true);
2998 store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE, true);
2999 store.setDefault(PreferenceConstants.EDITOR_P_RTRIM_ON_SAVE, false);
3000 // do more complicated stuff
3001 // NewJavaProjectPreferencePage.initDefaults(store);
3005 * Returns the JDT-UI preference store.
3007 * @return the JDT-UI preference store
3009 public static IPreferenceStore getPreferenceStore() {
3010 return WebUI.getDefault().getPreferenceStore();
3014 // * Encodes a JRE library to be used in the named preference
3015 // <code>NEWPROJECT_JRELIBRARY_LIST</code>.
3017 // * @param description a string value describing the JRE library. The
3018 // description is used
3019 // * to indentify the JDR library in the UI
3020 // * @param entries an array of classpath entries to be encoded
3022 // * @return the encoded string.
3024 // public static String encodeJRELibrary(String description,
3025 // IClasspathEntry[] entries) {
3026 // return NewJavaProjectPreferencePage.encodeJRELibrary(description,
3031 // * Decodes an encoded JRE library and returns its description string.
3033 // * @return the description of an encoded JRE library
3035 // * @see #encodeJRELibrary(String, IClasspathEntry[])
3037 // public static String decodeJRELibraryDescription(String encodedLibrary) {
3039 // NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
3043 // * Decodes an encoded JRE library and returns its classpath entries.
3045 // * @return the array of classpath entries of an encoded JRE library.
3047 // * @see #encodeJRELibrary(String, IClasspathEntry[])
3049 // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String
3050 // encodedLibrary) {
3052 // NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
3056 // * Returns the current configuration for the JRE to be used as default in
3057 // new Java projects.
3058 // * This is a convenience method to access the named preference
3059 // <code>NEWPROJECT_JRELIBRARY_LIST
3060 // * </code> with the index defined by <code>
3061 // NEWPROJECT_JRELIBRARY_INDEX</code>.
3063 // * @return the current default set of classpath entries
3065 // * @see #NEWPROJECT_JRELIBRARY_LIST
3066 // * @see #NEWPROJECT_JRELIBRARY_INDEX
3068 // public static IClasspathEntry[] getDefaultJRELibrary() {
3069 // return NewJavaProjectPreferencePage.getDefaultJRELibrary();