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;
20 import org.eclipse.core.runtime.Platform;
21 import org.eclipse.jface.action.Action;
22 import org.eclipse.jface.preference.IPreferenceStore;
23 import org.eclipse.jface.preference.PreferenceConverter;
24 import org.eclipse.swt.SWT;
25 import org.eclipse.swt.graphics.RGB;
26 import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
27 import org.eclipse.ui.texteditor.AbstractTextEditor;
30 // import org.phpeclipse.phpdt.internal.ui.JavaPlugin;
32 // org.phpeclipse.phpdt.internal.ui.preferences.NewJavaProjectPreferencePage;
35 * Preference constants used in the JDT-UI preference store. Clients should only
36 * read the JDT-UI preference store using these values. Clients are not allowed
37 * to modify the preference store programmatically.
41 public class PreferenceConstants {
43 private PreferenceConstants() {
47 * A named preference that controls return type rendering of methods in the
50 * Value is of type <code>Boolean</code>: if <code>true</code> return
54 public static final String APPEARANCE_METHOD_RETURNTYPE = "net.sourceforge.phpdt.ui.methodreturntype"; //$NON-NLS-1$
57 * A named preference that controls if override indicators are rendered in
60 * Value is of type <code>Boolean</code>: if <code>true</code> override
61 * indicators are rendered
64 public static final String APPEARANCE_OVERRIDE_INDICATOR = "net.sourceforge.phpdt.ui.overrideindicator"; //$NON-NLS-1$
67 * A named preference that defines the pattern used for package name
70 * Value is of type <code>String</code>. For example foe the given
71 * package name 'net.sourceforge.phpdt' pattern '.' will compress it to
72 * '..jdt', '1~' to 'o~.e~.jdt'.
75 public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW = "PackagesView.pkgNamePatternForPackagesView"; //$NON-NLS-1$
78 * A named preference that controls if package name compression is turned on
81 * Value is of type <code>Boolean</code>.
84 * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
86 public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "net.sourceforge.phpdt.ui.compresspackagenames"; //$NON-NLS-1$
89 * A named preference that controls if empty inner packages are folded in
90 * the hierarchical mode of the package explorer.
92 * Value is of type <code>Boolean</code>: if <code>true</code> empty
93 * inner packages are folded.
98 public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "net.sourceforge.phpdt.ui.flatPackagesInPackageExplorer"; //$NON-NLS-1$
101 * A named preference that defines how member elements are ordered by the
102 * Java views using the <code>JavaElementSorter</code>.
104 * Value is of type <code>String</code>: A comma separated list of the
105 * following entries. Each entry must be in the list, no duplication. List
106 * order defines the sort order.
108 * <li><b>T </b>: Types</li>
109 * <li><b>C </b>: Constructors</li>
110 * <li><b>I </b>: Initializers</li>
111 * <li><b>M </b>: Methods</li>
112 * <li><b>F </b>: Fields</li>
113 * <li><b>SI </b>: Static Initializers</li>
114 * <li><b>SM </b>: Static Methods</li>
115 * <li><b>SF </b>: Static Fields</li>
121 public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$
124 * A named preference that defines how member elements are ordered by
125 * visibility in the Java views using the <code>JavaElementSorter</code>.
127 * Value is of type <code>String</code>: A comma separated list of the
128 * following entries. Each entry must be in the list, no duplication. List
129 * order defines the sort order.
131 * <li><b>B </b>: Public</li>
132 * <li><b>V </b>: Private</li>
133 * <li><b>R </b>: Protected</li>
134 * <li><b>D </b>: Default</li>
140 public static final String APPEARANCE_VISIBILITY_SORT_ORDER = "net.sourceforge.phpdt.ui.visibility.order"; //$NON-NLS-1$
143 * A named preferences that controls if Java elements are also sorted by
146 * Value is of type <code>Boolean</code>.
151 public static final String APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER = "net.sourceforge.phpdt.ui.enable.visibility.order"; //$NON-NLS-1$
154 * A named preference that controls if prefix removal during setter/getter
155 * generation is turned on or off.
157 * Value is of type <code>Boolean</code>.
160 public static final String CODEGEN_USE_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.enable"; //$NON-NLS-1$
163 * A named preference that holds a list of prefixes to be removed from a
164 * local variable to compute setter and gettter names.
166 * Value is of type <code>String</code>: comma separated list of prefixed
169 * @see #CODEGEN_USE_GETTERSETTER_PREFIX
171 public static final String CODEGEN_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.list"; //$NON-NLS-1$
174 * A named preference that controls if suffix removal during setter/getter
175 * generation is turned on or off.
177 * Value is of type <code>Boolean</code>.
180 public static final String CODEGEN_USE_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.enable"; //$NON-NLS-1$
183 * A named preference that holds a list of suffixes to be removed from a
184 * local variable to compute setter and getter names.
186 * Value is of type <code>String</code>: comma separated list of suffixes
189 * @see #CODEGEN_USE_GETTERSETTER_SUFFIX
191 public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
194 * A named preference that controls whether the keyword "this" will be added
195 * automatically to field accesses in generated methods.
197 * Value is of type <code>Boolean</code>.
202 public static final String CODEGEN_KEYWORD_THIS = "org.eclipse.jdt.ui.keywordthis"; //$NON-NLS-1$
205 * A named preference that controls whether to use the prefix "is" or the
206 * prefix "get" for automatically created getters which return a boolean
209 * Value is of type <code>Boolean</code>.
214 public static final String CODEGEN_IS_FOR_GETTERS = "org.eclipse.jdt.ui.gettersetter.use.is"; //$NON-NLS-1$
217 * A named preference that defines the preferred variable names for
218 * exceptions in catch clauses.
220 * Value is of type <code>String</code>.
225 public static final String CODEGEN_EXCEPTION_VAR_NAME = "org.eclipse.jdt.ui.exception.name"; //$NON-NLS-1$
228 * A named preference that controls if comment stubs will be added
229 * automatically to newly created types and methods.
231 * Value is of type <code>Boolean</code>.
236 public static final String CODEGEN_ADD_COMMENTS = "net.sourceforge.phpdt.ui.phpdoc"; //$NON-NLS-1$
239 * A name preference that controls if a JavaDoc stub gets added to newly
240 * created types and methods.
242 * Value is of type <code>Boolean</code>.
245 * @deprecated Use CODEGEN_ADD_COMMENTS instead (Name is more precise).
247 // public static final String CODEGEN__JAVADOC_STUBS = CODEGEN_ADD_COMMENTS;
250 * A named preference that controls if a non-phpdoc comment gets added to
251 * methods generated via the "Override Methods" operation.
253 * Value is of type <code>Boolean</code>.
256 public static final String CODEGEN__NON_JAVADOC_COMMENTS = "net.sourceforge.phpdt.ui.seecomments"; //$NON-NLS-1$
259 * A named preference that controls if a file comment gets added to newly
262 * Value is of type <code>Boolean</code>.
265 public static final String CODEGEN__FILE_COMMENTS = "net.sourceforge.phpdt.ui.filecomments"; //$NON-NLS-1$
268 * A named preference that holds a list of comma separated package names.
269 * The list specifies the import order used by the "Organize Imports"
272 * Value is of type <code>String</code>: semicolon separated list of
276 // public static final String ORGIMPORTS_IMPORTORDER =
277 // "net.sourceforge.phpdt.ui.importorder"; //$NON-NLS-1$
279 * A named preference that specifies the number of imports added before a
280 * star-import declaration is used.
282 * Value is of type <code>Int</code>: positive value specifing the number
283 * of non star-import is used
286 public static final String ORGIMPORTS_ONDEMANDTHRESHOLD = "net.sourceforge.phpdt.ui.ondemandthreshold"; //$NON-NLS-1$
289 * A named preferences that controls if types that start with a lower case
290 * letters get added by the "Organize Import" operation.
292 * Value is of type <code>Boolean</code>.
295 public static final String ORGIMPORTS_IGNORELOWERCASE = "net.sourceforge.phpdt.ui.ignorelowercasenames"; //$NON-NLS-1$
298 * A named preference that speficies whether children of a compilation unit
299 * are shown in the package explorer.
301 * Value is of type <code>Boolean</code>.
304 public static final String SHOW_CU_CHILDREN = "net.sourceforge.phpdt.ui.packages.cuchildren"; //$NON-NLS-1$
307 * A named preference that controls whether the package explorer's selection
308 * is linked to the active editor.
310 * Value is of type <code>Boolean</code>.
313 public static final String LINK_PACKAGES_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktoeditor"; //$NON-NLS-1$
316 * A named preference that controls whether the hierarchy view's selection
317 * is linked to the active editor.
319 * Value is of type <code>Boolean</code>.
322 public static final String LINK_TYPEHIERARCHY_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
325 * A named preference that controls whether the browsing view's selection is
326 * linked to the active editor.
328 * Value is of type <code>Boolean</code>.
333 public static final String LINK_BROWSING_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
336 * A named preference that controls whether new projects are generated using
337 * source and output folder.
339 * Value is of type <code>Boolean</code>. if <code>true</code> new
340 * projects are created with a source and output folder. If
341 * <code>false</code> source and output folder equals to the project.
344 public static final String SRCBIN_FOLDERS_IN_NEWPROJ = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
347 * A named preference that specifies the source folder name used when
348 * creating a new Java project. Value is inactive if
349 * <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
351 * Value is of type <code>String</code>.
354 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
356 public static final String SRCBIN_SRCNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
359 * A named preference that specifies the output folder name used when
360 * creating a new Java project. Value is inactive if
361 * <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
363 * Value is of type <code>String</code>.
366 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
368 public static final String SRCBIN_BINNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
371 * A named preference that holds a list of possible JRE libraries used by
372 * the New Java Project wizard. An library consists of a description and an
373 * arbitrary number of <code>IClasspathEntry</code>s, that will represent
374 * the JRE on the new project's classpath.
376 * Value is of type <code>String</code>: a semicolon separated list of
377 * encoded JRE libraries. <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines
378 * the currently used library. Clients should use the method
379 * <code>encodeJRELibrary</code> to encode a JRE library into a string and
380 * the methods <code>decodeJRELibraryDescription(String)</code> and <code>
381 * decodeJRELibraryClasspathEntries(String)</code>
382 * to decode the description and the array of classpath entries from an
386 * @see #NEWPROJECT_JRELIBRARY_INDEX
387 * @see #encodeJRELibrary(String, IClasspathEntry[])
388 * @see #decodeJRELibraryDescription(String)
389 * @see #decodeJRELibraryClasspathEntries(String)
391 public static final String NEWPROJECT_JRELIBRARY_LIST = "net.sourceforge.phpdt.ui.wizards.jre.list"; //$NON-NLS-1$
394 * A named preferences that specifies the current active JRE library.
396 * Value is of type <code>Int</code>: an index into the list of possible
400 * @see #NEWPROJECT_JRELIBRARY_LIST
402 public static final String NEWPROJECT_JRELIBRARY_INDEX = "net.sourceforge.phpdt.ui.wizards.jre.index"; //$NON-NLS-1$
405 * A named preference that controls if a new type hierarchy gets opened in a
406 * new type hierarchy perspective or inside the type hierarchy view part.
408 * Value is of type <code>String</code>: possible values are <code>
409 * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code>
411 * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
414 * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
415 * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
417 public static final String OPEN_TYPE_HIERARCHY = "net.sourceforge.phpdt.ui.openTypeHierarchy"; //$NON-NLS-1$
420 * A string value used by the named preference
421 * <code>OPEN_TYPE_HIERARCHY</code>.
423 * @see #OPEN_TYPE_HIERARCHY
425 public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$
428 * A string value used by the named preference
429 * <code>OPEN_TYPE_HIERARCHY</code>.
431 * @see #OPEN_TYPE_HIERARCHY
433 public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$
436 * A named preference that controls the behaviour when double clicking on a
437 * container in the packages view.
439 * Value is of type <code>String</code>: possible values are <code>
440 * DOUBLE_CLICK_GOES_INTO</code>
442 * DOUBLE_CLICK_EXPANDS</code>.
445 * @see #DOUBLE_CLICK_EXPANDS
446 * @see #DOUBLE_CLICK_GOES_INTO
448 public static final String DOUBLE_CLICK = "packageview.doubleclick"; //$NON-NLS-1$
451 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
455 public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$
458 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
462 public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$
465 * A named preference that controls whether Java views update their
466 * presentation while editing or when saving the content of an editor.
468 * Value is of type <code>String</code>: possible values are <code>
469 * UPDATE_ON_SAVE</code>
471 * UPDATE_WHILE_EDITING</code>.
474 * @see #UPDATE_ON_SAVE
475 * @see #UPDATE_WHILE_EDITING
477 public static final String UPDATE_JAVA_VIEWS = "JavaUI.update"; //$NON-NLS-1$
480 * A string value used by the named preference
481 * <code>UPDATE_JAVA_VIEWS</code>
483 * @see #UPDATE_JAVA_VIEWS
485 public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$
488 * A string value used by the named preference
489 * <code>UPDATE_JAVA_VIEWS</code>
491 * @see #UPDATE_JAVA_VIEWS
493 public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$
496 * A named preference that holds the path of the Javadoc command used by the
497 * Javadoc creation wizard.
499 * Value is of type <code>String</code>.
502 public static final String JAVADOC_COMMAND = "command"; //$NON-NLS-1$
505 * A named preference that defines whether hint to make hover sticky should
511 public static final String EDITOR_SHOW_TEXT_HOVER_AFFORDANCE = "PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE"; //$NON-NLS-1$
514 * A named preference that defines the key for the hover modifiers.
519 public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$
522 * The id of the best match hover contributed for extension point
523 * <code>javaEditorTextHovers</code>.
527 public static String ID_BESTMATCH_HOVER = "net.sourceforge.phpdt.ui.BestMatchHover"; //$NON-NLS-1$
530 * The id of the source code hover contributed for extension point
531 * <code>javaEditorTextHovers</code>.
535 public static String ID_SOURCE_HOVER = "net.sourceforge.phpdt.ui.JavaSourceHover"; //$NON-NLS-1$
538 * The id of the problem hover contributed for extension point
539 * <code>javaEditorTextHovers</code>.
543 public static String ID_PROBLEM_HOVER = "net.sourceforge.phpdt.ui.ProblemHover"; //$NON-NLS-1$
546 * A named preference that controls whether bracket matching highlighting is
549 * Value is of type <code>Boolean</code>.
552 public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
555 * A named preference that holds the color used to highlight matching
558 * Value is of type <code>String</code>. A RGB color value encoded as a
559 * string using class <code>PreferenceConverter</code>
562 * @see org.eclipse.jface.resource.StringConverter
563 * @see org.eclipse.jface.preference.PreferenceConverter
565 public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
568 * A named preference that controls whether the current line highlighting is
571 * Value is of type <code>Boolean</code>.
574 public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
577 * A named preference that holds the color used to highlight the current
580 * Value is of type <code>String</code>. A RGB color value encoded as a
581 * string using class <code>PreferenceConverter</code>
584 * @see org.eclipse.jface.resource.StringConverter
585 * @see org.eclipse.jface.preference.PreferenceConverter
587 public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
590 * A named preference that controls whether the print margin is turned on or
593 * Value is of type <code>Boolean</code>.
596 public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
599 * A named preference that holds the color used to render the print margin.
601 * Value is of type <code>String</code>. A RGB color value encoded as a
602 * string using class <code>PreferenceConverter</code>
605 * @see org.eclipse.jface.resource.StringConverter
606 * @see org.eclipse.jface.preference.PreferenceConverter
608 public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
611 * Print margin column. Int value.
613 public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
616 * A named preference that holds the color used for the find/replace scope.
618 * Value is of type <code>String</code>. A RGB color value encoded as a
619 * string using class <code>PreferenceConverter</code>
622 * @see org.eclipse.jface.resource.StringConverter
623 * @see org.eclipse.jface.preference.PreferenceConverter
625 public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
628 * A named preference that specifies if the editor uses spaces for tabs.
630 * Value is of type <code>Boolean</code>. If <code>true</code> spaces
631 * instead of tabs are used in the editor. If <code>false</code> the
632 * editor inserts a tab character when pressing the tab key.
635 public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
638 * A named preference that holds the number of spaces used per tab in the
641 * Value is of type <code>Int</code>: positive int value specifying the
642 * number of spaces per tab.
645 public final static String EDITOR_TAB_WIDTH = AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH; // "net.sourceforge.phpdt.ui.editor.tab.width";
650 * A named preference that controls whether the outline view selection
651 * should stay in sync with with the element at the current cursor position.
653 * Value is of type <code>Boolean</code>.
658 public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
661 * A named preference that controls if correction indicators are shown in
664 * Value is of type <code>Boolean</code>.
667 public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
670 * A named preference that controls whether the editor shows problem
671 * indicators in text (squiggly lines).
673 * Value is of type <code>Boolean</code>.
676 // public final static String EDITOR_PROBLEM_INDICATION =
677 // "problemIndication"; //$NON-NLS-1$
679 * A named preference that holds the color used to render problem
682 * Value is of type <code>String</code>. A RGB color value encoded as a
683 * string using class <code>PreferenceConverter</code>
686 * @see #EDITOR_PROBLEM_INDICATION
687 * @see org.eclipse.jface.resource.StringConverter
688 * @see org.eclipse.jface.preference.PreferenceConverter
690 // public final static String EDITOR_PROBLEM_INDICATION_COLOR =
691 // "problemIndicationColor"; //$NON-NLS-1$
693 * PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR; A named preference
694 * that controls whether the editor shows warning indicators in text
697 * Value is of type <code>Boolean</code>.
700 // public final static String EDITOR_WARNING_INDICATION =
701 // "warningIndication"; //$NON-NLS-1$
703 * A named preference that holds the color used to render warning
706 * Value is of type <code>String</code>. A RGB color value encoded as a
707 * string using class <code>PreferenceConverter</code>
710 * @see #EDITOR_WARNING_INDICATION
711 * @see org.eclipse.jface.resource.StringConverter
712 * @see org.eclipse.jface.preference.PreferenceConverter
714 // public final static String EDITOR_WARNING_INDICATION_COLOR =
715 // "warningIndicationColor"; //$NON-NLS-1$
717 * A named preference that controls whether the editor shows task indicators
718 * in text (squiggly lines).
720 * Value is of type <code>Boolean</code>.
723 public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
726 * A named preference that holds the color used to render task indicators.
728 * Value is of type <code>String</code>. A RGB color value encoded as a
729 * string using class <code>PreferenceConverter</code>
732 * @see #EDITOR_TASK_INDICATION
733 * @see org.eclipse.jface.resource.StringConverter
734 * @see org.eclipse.jface.preference.PreferenceConverter
736 public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
739 * A named preference that controls whether the editor shows bookmark
740 * indicators in text (squiggly lines).
742 * Value is of type <code>Boolean</code>.
747 public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
750 * A named preference that holds the color used to render bookmark
753 * Value is of type <code>String</code>. A RGB color value encoded as a
754 * string using class <code>PreferenceConverter</code>
757 * @see #EDITOR_BOOKMARK_INDICATION
758 * @see org.eclipse.jface.resource.StringConverter
759 * @see org.eclipse.jface.preference.PreferenceConverter
762 public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
765 * A named preference that controls whether the editor shows search
766 * indicators in text (squiggly lines).
768 * Value is of type <code>Boolean</code>.
773 public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
776 * A named preference that holds the color used to render search indicators.
778 * Value is of type <code>String</code>. A RGB color value encoded as a
779 * string using class <code>PreferenceConverter</code>
782 * @see #EDITOR_SEARCH_RESULT_INDICATION
783 * @see org.eclipse.jface.resource.StringConverter
784 * @see org.eclipse.jface.preference.PreferenceConverter
787 public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
790 * A named preference that controls whether the editor shows unknown
791 * indicators in text (squiggly lines).
793 * Value is of type <code>Boolean</code>.
798 public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
801 * A named preference that holds the color used to render unknown
804 * Value is of type <code>String</code>. A RGB color value encoded as a
805 * string using class <code>PreferenceConverter</code>
808 * @see #EDITOR_UNKNOWN_INDICATION
809 * @see org.eclipse.jface.resource.StringConverter
810 * @see org.eclipse.jface.preference.PreferenceConverter
813 public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
816 * A named preference that controls whether the overview ruler shows error
819 * Value is of type <code>Boolean</code>.
824 public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
827 * A named preference that controls whether the overview ruler shows warning
830 * Value is of type <code>Boolean</code>.
835 public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
838 * A named preference that controls whether the overview ruler shows task
841 * Value is of type <code>Boolean</code>.
846 public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
849 * A named preference that controls whether the overview ruler shows
850 * bookmark indicators.
852 * Value is of type <code>Boolean</code>.
857 public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
860 * A named preference that controls whether the overview ruler shows search
863 * Value is of type <code>Boolean</code>.
868 public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
871 * A named preference that controls whether the overview ruler shows unknown
874 * Value is of type <code>Boolean</code>.
879 public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
882 * A named preference that controls whether the 'close strings' feature is
883 * enabled in PHP mode
885 * Value is of type <code>Boolean</code>.
888 public final static String EDITOR_CLOSE_STRINGS_DQ_PHP = "closeStringsPHPDQ"; //$NON-NLS-1$
891 * A named preference that controls whether the 'close strings' feature is
892 * enabled in PHP mode
894 * Value is of type <code>Boolean</code>.
897 public final static String EDITOR_CLOSE_STRINGS_SQ_PHP = "closeStringsPHPSQ"; //$NON-NLS-1$
900 * A named preference that controls whether the 'close brackets' feature is
901 * enabled in PHP mode
903 * Value is of type <code>Boolean</code>.
908 public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$
911 * A named preference that controls whether the 'wrap words' feature is
914 * Value is of type <code>Boolean</code>.
919 public final static String EDITOR_WRAP_WORDS = "wrapWords"; //$NON-NLS-1$
922 * A named preference that controls whether the 'wrap strings' feature is
925 * Value is of type <code>Boolean</code>.
930 public final static String EDITOR_WRAP_STRINGS_DQ = "wrapStringsDQ"; //$NON-NLS-1$
933 * A named preference that controls whether the 'escape strings' feature is
936 * Value is of type <code>Boolean</code>.
941 public final static String EDITOR_ESCAPE_STRINGS_DQ = "escapeStringsDQ"; //$NON-NLS-1$
944 * A named preference that controls whether the 'wrap strings' feature is
947 * Value is of type <code>Boolean</code>.
952 public final static String EDITOR_WRAP_STRINGS_SQ = "wrapStringsSQ"; //$NON-NLS-1$
955 * A named preference that controls whether the 'escape strings' feature is
958 * Value is of type <code>Boolean</code>.
963 public final static String EDITOR_ESCAPE_STRINGS_SQ = "escapeStringsSQ"; //$NON-NLS-1$
966 * A named preference that controls if content assist inserts the common
967 * prefix of all proposals before presenting choices.
969 * Value is of type <code>Boolean</code>.
974 public final static String CODEASSIST_PREFIX_COMPLETION = "content_assist_prefix_completion"; //$NON-NLS-1$
977 * A named preference that controls whether the 'close braces' feature is
980 * Value is of type <code>Boolean</code>.
985 public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
988 * A named preference that controls whether the 'close php docs' feature is
991 * Value is of type <code>Boolean</code>.
996 public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
999 * A named preference that controls whether the 'add JavaDoc tags' feature
1002 * Value is of type <code>Boolean</code>.
1007 public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
1010 * A named preference that controls whether the 'format Javadoc tags'
1011 * feature is enabled.
1013 * Value is of type <code>Boolean</code>.
1018 public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$
1021 * A named preference that controls whether the 'smart paste' feature is
1024 * Value is of type <code>Boolean</code>.
1029 public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
1032 * A named preference that controls whether the 'close strings' feature is
1033 * enabled in HTML mode
1035 * Value is of type <code>Boolean</code>.
1040 public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$
1043 * A named preference that controls whether the 'close brackets' feature is
1044 * enabled in HTML mode
1046 * Value is of type <code>Boolean</code>.
1051 public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$
1054 * A named preference that controls whether the 'smart home-end' feature is
1057 * Value is of type <code>Boolean</code>.
1062 public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
1065 * A named preference that controls whether the 'sub-word navigation'
1066 * feature is enabled.
1068 * Value is of type <code>Boolean</code>.
1073 public final static String EDITOR_SUB_WORD_NAVIGATION = "subWordNavigation"; //$NON-NLS-1$
1076 * A named preference that controls if temporary problems are evaluated and
1079 * Value is of type <code>Boolean</code>.
1082 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
1085 * A named preference that controls if the overview ruler is shown in the
1088 * Value is of type <code>Boolean</code>.
1091 public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
1094 * A named preference that holds the color used to render linked positions
1095 * inside code templates.
1097 * Value is of type <code>String</code>. A RGB color value encoded as a
1098 * string using class <code>PreferenceConverter</code>
1101 * @see org.eclipse.jface.resource.StringConverter
1102 * @see org.eclipse.jface.preference.PreferenceConverter
1104 public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
1107 * A named preference that holds the color used as the text foreground.
1109 * Value is of type <code>String</code>. A RGB color value encoded as a
1110 * string using class <code>PreferenceConverter</code>
1113 * @see org.eclipse.jface.resource.StringConverter
1114 * @see org.eclipse.jface.preference.PreferenceConverter
1116 public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
1119 * A named preference that describes if the system default foreground color
1120 * is used as the text foreground.
1122 * Value is of type <code>Boolean</code>.
1125 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
1128 * A named preference that holds the color used as the text background.
1130 * Value is of type <code>String</code>. A RGB color value encoded as a
1131 * string using class <code>PreferenceConverter</code>
1134 * @see org.eclipse.jface.resource.StringConverter
1135 * @see org.eclipse.jface.preference.PreferenceConverter
1137 public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
1140 * A named preference that describes if the system default background color
1141 * is used as the text foreground.
1143 * Value is of type <code>Boolean</code>.
1146 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
1149 * Preference key suffix for bold text style preference keys.
1151 public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
1154 * Preference key suffix for bold text style preference keys.
1156 public static final String EDITOR_ITALIC_SUFFIX = "_italic"; //$NON-NLS-1$
1159 * A named preference that holds the color used to render multi line
1162 * Value is of type <code>String</code>. A RGB color value encoded as a
1163 * string using class <code>PreferenceConverter</code>
1166 * @see org.eclipse.jface.resource.StringConverter
1167 * @see org.eclipse.jface.preference.PreferenceConverter
1169 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT;
1172 * The symbolic font name for the Java editor text font (value
1173 * <code>"net.sourceforge.phpdt.ui.editors.textfont"</code>).
1177 public final static String EDITOR_TEXT_FONT = "net.sourceforge.phpdt.ui.editors.textfont"; //$NON-NLS-1$
1180 * A named preference that controls whether multi line comments are rendered
1183 * Value is of type <code>Boolean</code>. If <code>true</code> multi
1184 * line comments are rendered in bold. If <code>false</code> the are
1185 * rendered using no font style attribute.
1188 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT
1189 + EDITOR_BOLD_SUFFIX;
1192 * A named preference that holds the color used to render single line
1195 * Value is of type <code>String</code>. A RGB color value encoded as a
1196 * string using class <code>PreferenceConverter</code>
1199 * @see org.eclipse.jface.resource.StringConverter
1200 * @see org.eclipse.jface.preference.PreferenceConverter
1202 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT;
1205 * A named preference that controls whether sinle line comments are rendered
1208 * Value is of type <code>Boolean</code>. If <code>true</code> single
1209 * line comments are rendered in bold. If <code>false</code> the are
1210 * rendered using no font style attribute.
1213 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT
1214 + EDITOR_BOLD_SUFFIX;
1217 * A named preference that holds the color used to render operators and
1220 * Value is of type <code>String</code>. A RGB color value encoded as a
1221 * string using class <code>PreferenceConverter</code>
1224 * @see org.eclipse.jface.resource.StringConverter
1225 * @see org.eclipse.jface.preference.PreferenceConverter
1228 public final static String EDITOR_PHP_OPERATOR_COLOR = IPreferenceConstants.PHP_OPERATOR;
1231 * A named preference that controls whether operators and brackets are
1234 * Value is of type <code>Boolean</code>.
1239 public final static String EDITOR_PHP_OPERATOR_BOLD = IPreferenceConstants.PHP_OPERATOR
1240 + EDITOR_BOLD_SUFFIX;
1243 * A named preference that controls whether operators and brackets are
1244 * rendered in italic.
1246 * Value is of type <code>Boolean</code>.
1251 public final static String EDITOR_PHP_OPERATOR_ITALIC = IPreferenceConstants.PHP_OPERATOR
1252 + EDITOR_ITALIC_SUFFIX;
1255 * A named preference that holds the color used to render operators and
1258 * Value is of type <code>String</code>. A RGB color value encoded as a
1259 * string using class <code>PreferenceConverter</code>
1262 * @see org.eclipse.jface.resource.StringConverter
1263 * @see org.eclipse.jface.preference.PreferenceConverter
1266 public final static String EDITOR_PHP_BRACE_OPERATOR_COLOR = IPreferenceConstants.PHP_BRACE_OPERATOR;
1269 * A named preference that controls whether operators and brackets are
1272 * Value is of type <code>Boolean</code>.
1277 public final static String EDITOR_PHP_BRACE_OPERATOR_BOLD = IPreferenceConstants.PHP_BRACE_OPERATOR
1278 + EDITOR_BOLD_SUFFIX;
1281 * A named preference that controls whether operators and brackets are
1282 * rendered in italic.
1284 * Value is of type <code>Boolean</code>.
1289 public final static String EDITOR_PHP_BRACE_OPERATOR_ITALIC = IPreferenceConstants.PHP_BRACE_OPERATOR
1290 + EDITOR_ITALIC_SUFFIX;
1293 * A named preference that holds the color used to render the 'return'
1296 * Value is of type <code>String</code>. A RGB color value encoded as a
1297 * string using class <code>PreferenceConverter</code>
1300 * @see org.eclipse.jface.resource.StringConverter
1301 * @see org.eclipse.jface.preference.PreferenceConverter
1304 public final static String EDITOR_PHP_KEYWORD_RETURN_COLOR = IPreferenceConstants.PHP_KEYWORD_RETURN;
1307 * A named preference that controls whether 'return' keyword is rendered in
1310 * Value is of type <code>Boolean</code>.
1315 public final static String EDITOR_PHP_KEYWORD_RETURN_BOLD = IPreferenceConstants.PHP_KEYWORD_RETURN
1316 + EDITOR_BOLD_SUFFIX;
1319 * A named preference that controls whether 'return' keyword is rendered in
1322 * Value is of type <code>Boolean</code>.
1327 public final static String EDITOR_PHP_KEYWORD_RETURN_ITALIC = IPreferenceConstants.PHP_KEYWORD_RETURN
1328 + EDITOR_ITALIC_SUFFIX;
1331 * A named preference that holds the color used to render php start and stop
1334 * Value is of type <code>String</code>. A RGB color value encoded as a
1335 * string using class <code>PreferenceConverter</code>
1338 * @see org.eclipse.jface.resource.StringConverter
1339 * @see org.eclipse.jface.preference.PreferenceConverter
1341 public final static String EDITOR_PHP_TAG_COLOR = IPreferenceConstants.PHP_TAG;
1344 * A named preference that controls whether php start and stop tags are
1347 * Value is of type <code>Boolean</code>.
1350 public final static String EDITOR_PHP_TAG_BOLD = IPreferenceConstants.PHP_TAG
1351 + EDITOR_BOLD_SUFFIX;
1354 * A named preference that holds the color used to render php keywords.
1356 * Value is of type <code>String</code>. A RGB color value encoded as a
1357 * string using class <code>PreferenceConverter</code>
1360 * @see org.eclipse.jface.resource.StringConverter
1361 * @see org.eclipse.jface.preference.PreferenceConverter
1363 public final static String EDITOR_JAVA_KEYWORD_COLOR = IPreferenceConstants.PHP_KEYWORD;
1366 * A named preference that controls whether keywords are rendered in bold.
1368 * Value is of type <code>Boolean</code>.
1371 public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD
1372 + EDITOR_BOLD_SUFFIX;
1375 * A named preference that holds the color used to render predefined php
1378 * Value is of type <code>String</code>. A RGB color value encoded as a
1379 * string using class <code>PreferenceConverter</code>
1382 * @see org.eclipse.jface.resource.StringConverter
1383 * @see org.eclipse.jface.preference.PreferenceConverter
1385 public final static String EDITOR_PHP_FUNCTIONNAME_COLOR = IPreferenceConstants.PHP_FUNCTIONNAME;
1388 * A named preference that controls whether function names are rendered in
1391 * Value is of type <code>Boolean</code>.
1394 public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME
1395 + EDITOR_BOLD_SUFFIX;
1398 * A named preference that holds the color used to render php variables with
1401 * Value is of type <code>String</code>. A RGB color value encoded as a
1402 * string using class <code>PreferenceConverter</code>
1405 * @see org.eclipse.jface.resource.StringConverter
1406 * @see org.eclipse.jface.preference.PreferenceConverter
1408 public final static String EDITOR_PHP_VARIABLE_DOLLAR_COLOR = IPreferenceConstants.PHP_VARIABLE_DOLLAR;
1411 * A named preference that controls whether variables with prefix '$_' are
1414 * Value is of type <code>Boolean</code>.
1417 public final static String EDITOR_PHP_VARIABLE_DOLLAR_BOLD = IPreferenceConstants.PHP_VARIABLE_DOLLAR
1418 + EDITOR_BOLD_SUFFIX;
1421 * A named preference that holds the color used to render php variables.
1423 * Value is of type <code>String</code>. A RGB color value encoded as a
1424 * string using class <code>PreferenceConverter</code>
1427 * @see org.eclipse.jface.resource.StringConverter
1428 * @see org.eclipse.jface.preference.PreferenceConverter
1430 public final static String EDITOR_PHP_VARIABLE_COLOR = IPreferenceConstants.PHP_VARIABLE;
1433 * A named preference that controls whether variables are rendered in bold.
1435 * Value is of type <code>Boolean</code>.
1438 public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE
1439 + EDITOR_BOLD_SUFFIX;
1442 * A named preference that holds the color used to render php constants.
1444 * Value is of type <code>String</code>. A RGB color value encoded as a
1445 * string using class <code>PreferenceConverter</code>
1448 * @see org.eclipse.jface.resource.StringConverter
1449 * @see org.eclipse.jface.preference.PreferenceConverter
1451 public final static String EDITOR_PHP_CONSTANT_COLOR = IPreferenceConstants.PHP_CONSTANT;
1454 * A named preference that controls whether constants are rendered in bold.
1456 * Value is of type <code>Boolean</code>.
1459 public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT
1460 + EDITOR_BOLD_SUFFIX;
1463 * A named preference that holds the color used to render php types.
1465 * Value is of type <code>String</code>. A RGB color value encoded as a
1466 * string using class <code>PreferenceConverter</code>
1469 * @see org.eclipse.jface.resource.StringConverter
1470 * @see org.eclipse.jface.preference.PreferenceConverter
1472 public final static String EDITOR_PHP_TYPE_COLOR = IPreferenceConstants.PHP_TYPE;
1475 * A named preference that controls whether types are rendered in bold.
1477 * Value is of type <code>Boolean</code>.
1480 public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE
1481 + EDITOR_BOLD_SUFFIX;
1484 * A named preference that holds the color used to render string constants.
1486 * Value is of type <code>String</code>. A RGB color value encoded as a
1487 * string using class <code>PreferenceConverter</code>
1490 * @see org.eclipse.jface.resource.StringConverter
1491 * @see org.eclipse.jface.preference.PreferenceConverter
1493 public final static String EDITOR_STRING_COLOR_DQ = IPreferenceConstants.PHP_STRING_DQ;
1496 * A named preference that controls whether string constants are rendered in
1499 * Value is of type <code>Boolean</code>.
1502 public final static String EDITOR_STRING_BOLD_DQ = IPreferenceConstants.PHP_STRING_DQ
1503 + EDITOR_BOLD_SUFFIX;
1505 public final static String EDITOR_STRING_COLOR_SQ = IPreferenceConstants.PHP_STRING_SQ;
1508 * A named preference that controls whether string constants are rendered in
1511 * Value is of type <code>Boolean</code>.
1514 public final static String EDITOR_STRING_BOLD_SQ = IPreferenceConstants.PHP_STRING_SQ
1515 + EDITOR_BOLD_SUFFIX;
1518 * A named preference that holds the color used to render php default text.
1520 * Value is of type <code>String</code>. A RGB color value encoded as a
1521 * string using class <code>PreferenceConverter</code>
1524 * @see org.eclipse.jface.resource.StringConverter
1525 * @see org.eclipse.jface.preference.PreferenceConverter
1527 public final static String EDITOR_JAVA_DEFAULT_COLOR = IPreferenceConstants.PHP_DEFAULT;
1530 * A named preference that controls whether Java default text is rendered in
1533 * Value is of type <code>Boolean</code>.
1536 public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT
1537 + EDITOR_BOLD_SUFFIX;
1540 * A named preference that holds the color used to render task tags.
1542 * Value is of type <code>String</code>. A RGB color value encoded as a
1543 * string using class <code>PreferenceConverter</code>
1546 * @see org.eclipse.jface.resource.StringConverter
1547 * @see org.eclipse.jface.preference.PreferenceConverter
1550 public final static String EDITOR_TASK_TAG_COLOR = IPreferenceConstants.TASK_TAG;
1553 * A named preference that controls whether task tags are rendered in bold.
1555 * Value is of type <code>Boolean</code>.
1560 public final static String EDITOR_TASK_TAG_BOLD = IPreferenceConstants.TASK_TAG
1561 + EDITOR_BOLD_SUFFIX;
1564 * A named preference that holds the color used to render phpdoc keywords.
1566 * Value is of type <code>String</code>. A RGB color value encoded as a
1567 * string using class <code>PreferenceConverter</code>
1570 * @see org.eclipse.jface.resource.StringConverter
1571 * @see org.eclipse.jface.preference.PreferenceConverter
1573 public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IPreferenceConstants.PHPDOC_KEYWORD;
1576 * A named preference that controls whether phpdoc keywords are rendered in
1579 * Value is of type <code>Boolean</code>.
1582 public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD
1583 + EDITOR_BOLD_SUFFIX;
1586 * A named preference that holds the color used to render phpdoc tags.
1588 * Value is of type <code>String</code>. A RGB color value encoded as a
1589 * string using class <code>PreferenceConverter</code>
1592 * @see org.eclipse.jface.resource.StringConverter
1593 * @see org.eclipse.jface.preference.PreferenceConverter
1595 public final static String EDITOR_JAVADOC_TAG_COLOR = IPreferenceConstants.PHPDOC_TAG;
1598 * A named preference that controls whether phpdoc tags are rendered in
1601 * Value is of type <code>Boolean</code>.
1604 public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG
1605 + EDITOR_BOLD_SUFFIX;
1608 * A named preference that holds the color used to render phpdoc links.
1610 * Value is of type <code>String</code>. A RGB color value encoded as a
1611 * string using class <code>PreferenceConverter</code>
1614 * @see org.eclipse.jface.resource.StringConverter
1615 * @see org.eclipse.jface.preference.PreferenceConverter
1617 public final static String EDITOR_JAVADOC_LINKS_COLOR = IPreferenceConstants.PHPDOC_LINK;
1620 * A named preference that controls whether phpdoc links are rendered in
1623 * Value is of type <code>Boolean</code>.
1626 public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK
1627 + EDITOR_BOLD_SUFFIX;
1630 * A named preference that holds the color used to render phpdoc default
1633 * Value is of type <code>String</code>. A RGB color value encoded as a
1634 * string using class <code>PreferenceConverter</code>
1637 * @see org.eclipse.jface.resource.StringConverter
1638 * @see org.eclipse.jface.preference.PreferenceConverter
1640 public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IPreferenceConstants.PHPDOC_DEFAULT;
1643 * A named preference that controls whether phpdoc default text is rendered
1646 * Value is of type <code>Boolean</code>.
1649 public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT
1650 + EDITOR_BOLD_SUFFIX;
1653 * A named preference that holds the color used for 'linked-mode' underline.
1655 * Value is of type <code>String</code>. A RGB color value encoded as a
1656 * string using class <code>PreferenceConverter</code>
1659 * @see org.eclipse.jface.resource.StringConverter
1660 * @see org.eclipse.jface.preference.PreferenceConverter
1663 public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1666 * A named preference that controls whether hover tooltips in the editor are
1669 * Value is of type <code>Boolean</code>.
1672 public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1675 * A named preference that defines the hover shown when no control key is
1678 * Value is of type <code>String</code>: possible values are <code>
1679 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1680 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1681 * hover contributed as <code>phpEditorTextHovers</code>.
1684 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1685 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1689 public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1692 * A named preference that defines the hover shown when the
1693 * <code>CTRL</code> modifier key is pressed.
1695 * Value is of type <code>String</code>: possible values are <code>
1696 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1697 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1698 * hover contributed as <code>phpEditorTextHovers</code>.
1701 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1702 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1706 public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1709 * A named preference that defines the hover shown when the
1710 * <code>SHIFT</code> modifier key is pressed.
1712 * Value is of type <code>String</code>: possible values are <code>
1713 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1714 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1715 * hover contributed as <code>phpEditorTextHovers</code>.
1718 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1719 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1720 * @see JavaUI ID_*_HOVER
1723 public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1726 * A named preference that defines the hover shown when the
1727 * <code>CTRL + ALT</code> modifier keys is pressed.
1729 * Value is of type <code>String</code>: possible values are <code>
1730 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1731 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1732 * hover contributed as <code>phpEditorTextHovers</code>.
1735 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1736 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1737 * @see JavaUI ID_*_HOVER
1740 public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1743 * A named preference that defines the hover shown when the
1744 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1746 * Value is of type <code>String</code>: possible values are <code>
1747 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1748 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1749 * hover contributed as <code>phpEditorTextHovers</code>.
1752 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1753 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1754 * @see JavaUI ID_*_HOVER
1757 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1760 * A named preference that defines the hover shown when the
1761 * <code>CTRL + SHIFT</code> modifier keys is pressed.
1763 * Value is of type <code>String</code>: possible values are <code>
1764 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1765 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1766 * hover contributed as <code>phpEditorTextHovers</code>.
1769 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1770 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1771 * @see JavaUI ID_*_HOVER
1774 public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1777 * A named preference that defines the hover shown when the <code>ALT</code>
1778 * modifier key is pressed.
1780 * Value is of type <code>String</code>: possible values are <code>
1781 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1782 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1783 * hover contributed as <code>phpEditorTextHovers</code>.
1786 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1787 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1788 * @see JavaUI ID_*_HOVER
1791 public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1794 * A string value used by the named preferences for hover configuration to
1795 * descibe that no hover should be shown for the given key modifiers.
1799 public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1802 * A string value used by the named preferences for hover configuration to
1803 * descibe that the default hover should be shown for the given key
1804 * modifiers. The default hover is described by the
1805 * <code>EDITOR_DEFAULT_HOVER</code> property.
1809 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1812 * A named preference that defines the hover named the 'default hover'.
1813 * Value is of type <code>String</code>: possible values are <code>
1814 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1815 * or <code> the hover id of a hover
1816 * contributed as <code>phpEditorTextHovers</code>.
1820 public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1823 * A named preference that controls if segmented view (show selected element
1824 * only) is turned on or off.
1826 * Value is of type <code>Boolean</code>.
1829 public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1832 * A named preference that controls if browser like links are turned on or
1835 * Value is of type <code>Boolean</code>.
1840 public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
1843 * A named preference that controls the key modifier for browser like links.
1845 * Value is of type <code>String</code>.
1850 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
1853 * A named preference that controls whether occurrences are marked in the
1856 * Value is of type <code>Boolean</code>.
1861 public static final String EDITOR_MARK_OCCURRENCES = "markOccurrences"; //$NON-NLS-1$
1864 * A named preference that controls whether occurrences are sticky in the
1867 * Value is of type <code>Boolean</code>.
1872 public static final String EDITOR_STICKY_OCCURRENCES = "stickyOccurrences"; //$NON-NLS-1$
1875 * A named preference that controls disabling of the overwrite mode.
1877 * Value is of type <code>Boolean</code>.
1882 public static final String EDITOR_DISABLE_OVERWRITE_MODE = "disable_overwrite_mode"; //$NON-NLS-1$
1885 * A named preference that controls saving of a file on loss of editor focus.
1887 * Value is of type <code>Boolean</code>.
1892 public static final String EDITOR_SAVE_ON_BLUR = "save_on_blur"; //$NON-NLS-1$
1895 * A named preference that controls the "smart semicolon" smart typing
1898 * Value is of type <code>Boolean</code>.
1903 public static final String EDITOR_SMART_SEMICOLON = "smart_semicolon"; //$NON-NLS-1$
1906 * A named preference that controls the smart backspace behavior.
1908 * Value is of type <code>Boolean</code>.
1912 public static final String EDITOR_SMART_BACKSPACE = "smart_backspace"; //$NON-NLS-1$
1915 * A named preference that controls the "smart opening brace" smart typing
1918 * Value is of type <code>Boolean</code>.
1923 public static final String EDITOR_SMART_OPENING_BRACE = "smart_opening_brace"; //$NON-NLS-1$
1926 * A named preference that controls the smart tab behaviour.
1928 * Value is of type <code>Boolean</code>.
1932 public static final String EDITOR_SMART_TAB = "smart_tab"; //$NON-NLS-1$
1934 public static final String EDITOR_P_RTRIM_ON_SAVE = "editor_p_trim_on_save"; //$NON-NLS-1$
1937 * A named preference that controls whether Java comments should be
1940 * Value is of type <code>Boolean</code>.
1945 public final static String SPELLING_CHECK_SPELLING = ISpellCheckPreferenceKeys.SPELLING_CHECK_SPELLING;
1948 * A named preference that controls whether words containing digits should
1949 * be skipped during spell-checking.
1951 * Value is of type <code>Boolean</code>.
1956 public final static String SPELLING_IGNORE_DIGITS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_DIGITS;
1959 * A named preference that controls whether mixed case words should be
1960 * skipped during spell-checking.
1962 * Value is of type <code>Boolean</code>.
1967 public final static String SPELLING_IGNORE_MIXED = ISpellCheckPreferenceKeys.SPELLING_IGNORE_MIXED;
1970 * A named preference that controls whether sentence capitalization should
1971 * be ignored during spell-checking.
1973 * Value is of type <code>Boolean</code>.
1978 public final static String SPELLING_IGNORE_SENTENCE = ISpellCheckPreferenceKeys.SPELLING_IGNORE_SENTENCE;
1981 * A named preference that controls whether upper case words should be
1982 * skipped during spell-checking.
1984 * Value is of type <code>Boolean</code>.
1989 public final static String SPELLING_IGNORE_UPPER = ISpellCheckPreferenceKeys.SPELLING_IGNORE_UPPER;
1992 * A named preference that controls whether urls should be ignored during
1995 * Value is of type <code>Boolean</code>.
2000 public final static String SPELLING_IGNORE_URLS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_URLS;
2003 * A named preference that controls the locale used for spell-checking.
2005 * Value is of type <code>String</code>.
2010 public final static String SPELLING_LOCALE = ISpellCheckPreferenceKeys.SPELLING_LOCALE;
2013 * A named preference that controls the number of proposals offered during
2016 * Value is of type <code>Integer</code>.
2021 public final static String SPELLING_PROPOSAL_THRESHOLD = ISpellCheckPreferenceKeys.SPELLING_PROPOSAL_THRESHOLD;
2024 * A named preference that specifies the workspace user dictionary.
2026 * Value is of type <code>Integer</code>.
2031 public final static String SPELLING_USER_DICTIONARY = ISpellCheckPreferenceKeys.SPELLING_USER_DICTIONARY;
2034 * A named preference that specifies whether spelling dictionaries are
2035 * available to content assist.
2037 * Value is of type <code>Boolean</code>.
2042 public final static String SPELLING_ENABLE_CONTENTASSIST = ISpellCheckPreferenceKeys.SPELLING_ENABLE_CONTENTASSIST;
2045 * A named preference that controls whether code snippets are formatted in
2048 * Value is of type <code>Boolean</code>.
2053 public final static String FORMATTER_COMMENT_FORMATSOURCE = "comment_format_source_code"; //$NON-NLS-1$
2056 * A named preference that controls whether description of Javadoc
2057 * parameters are indented.
2059 * Value is of type <code>Boolean</code>.
2064 public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION = "comment_indent_parameter_description"; //$NON-NLS-1$
2067 * A named preference that controls whether the header comment of a Java
2068 * source file is formatted.
2070 * Value is of type <code>Boolean</code>.
2075 public final static String FORMATTER_COMMENT_FORMATHEADER = "comment_format_header"; //$NON-NLS-1$
2078 * A named preference that controls whether Javadoc root tags are indented.
2080 * Value is of type <code>Boolean</code>.
2085 public final static String FORMATTER_COMMENT_INDENTROOTTAGS = "comment_indent_root_tags"; //$NON-NLS-1$
2088 * A named preference that controls whether Javadoc comments are formatted
2089 * by the content formatter.
2091 * Value is of type <code>Boolean</code>.
2096 public final static String FORMATTER_COMMENT_FORMAT = "comment_format_comments"; //$NON-NLS-1$
2099 * A named preference that controls whether a new line is inserted after
2100 * Javadoc root tag parameters.
2102 * Value is of type <code>Boolean</code>.
2107 public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER = "comment_new_line_for_parameter"; //$NON-NLS-1$
2110 * A named preference that controls whether an empty line is inserted before
2111 * the Javadoc root tag block.
2113 * Value is of type <code>Boolean</code>.
2118 public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS = "comment_separate_root_tags"; //$NON-NLS-1$
2121 * A named preference that controls whether blank lines are cleared during
2124 * Value is of type <code>Boolean</code>.
2129 public final static String FORMATTER_COMMENT_CLEARBLANKLINES = "comment_clear_blank_lines"; //$NON-NLS-1$
2132 * A named preference that controls the line length of comments.
2134 * Value is of type <code>Integer</code>. The value must be at least 4
2135 * for reasonable formatting.
2140 public final static String FORMATTER_COMMENT_LINELENGTH = "comment_line_length"; //$NON-NLS-1$
2143 * A named preference that controls whether html tags are formatted.
2145 * Value is of type <code>Boolean</code>.
2150 public final static String FORMATTER_COMMENT_FORMATHTML = "comment_format_html"; //$NON-NLS-1$
2153 * A named preference that controls if the Java code assist gets auto
2156 * Value is of type <code>Boolean</code>.
2159 public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
2162 * A name preference that holds the auto activation delay time in milli
2165 * Value is of type <code>Int</code>.
2168 public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
2171 * A named preference that controls if code assist contains only visible
2174 * Value is of type <code>Boolean</code>. if
2175 * <code>true<code> code assist only contains visible members. If
2176 * <code>false</code> all members are included.
2179 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
2182 * A named preference that controls if the Java code assist inserts a
2183 * proposal automatically if only one proposal is available.
2185 * Value is of type <code>Boolean</code>.
2190 public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
2193 * A named preference that controls if the Java code assist adds import
2196 * Value is of type <code>Boolean</code>.
2201 public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
2204 * A named preference that controls if the Java code assist only inserts
2205 * completions. If set to false the proposals can also _replace_ code.
2207 * Value is of type <code>Boolean</code>.
2212 public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
2215 * A named preference that controls whether code assist proposals filtering
2216 * is case sensitive or not.
2218 * Value is of type <code>Boolean</code>.
2221 public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
2224 * A named preference that defines if code assist proposals are sorted in
2225 * alphabetical order.
2227 * Value is of type <code>Boolean</code>. If <code>true</code> that are
2228 * sorted in alphabetical order. If <code>false</code> that are unsorted.
2231 public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
2234 * A named preference that controls if argument names are filled in when a
2235 * method is selected from as list of code assist proposal.
2237 * Value is of type <code>Boolean</code>.
2240 public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
2243 * A named preference that controls if method arguments are guessed when a
2244 * method is selected from as list of code assist proposal.
2246 * Value is of type <code>Boolean</code>.
2251 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
2254 * A named preference that holds the characters that auto activate code
2255 * assist in PHP code.
2257 * Value is of type <code>Sring</code>. All characters that trigger auto
2258 * code assist in PHP code.
2261 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
2264 * A named preference that holds the characters that auto activate code
2267 * Value is of type <code>Sring</code>. All characters that trigger auto
2268 * code assist in PHPDoc.
2271 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
2274 * A named preference that holds the characters that auto activate code
2277 * Value is of type <code>Sring</code>. All characters that trigger auto
2278 * code assist in HTML.
2281 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
2284 * A named preference that holds the background color used in the code
2285 * assist selection dialog.
2287 * Value is of type <code>String</code>. A RGB color value encoded as a
2288 * string using class <code>PreferenceConverter</code>
2291 * @see org.eclipse.jface.resource.StringConverter
2292 * @see org.eclipse.jface.preference.PreferenceConverter
2294 public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
2297 * A named preference that holds the foreground color used in the code
2298 * assist selection dialog.
2300 * Value is of type <code>String</code>. A RGB color value encoded as a
2301 * string using class <code>PreferenceConverter</code>
2304 * @see org.eclipse.jface.resource.StringConverter
2305 * @see org.eclipse.jface.preference.PreferenceConverter
2307 public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
2310 * A named preference that holds the background color used for parameter
2313 * Value is of type <code>String</code>. A RGB color value encoded as a
2314 * string using class <code>PreferenceConverter</code>
2317 * @see org.eclipse.jface.resource.StringConverter
2318 * @see org.eclipse.jface.preference.PreferenceConverter
2320 public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
2323 * A named preference that holds the foreground color used in the code
2324 * assist selection dialog
2326 * Value is of type <code>String</code>. A RGB color value encoded as a
2327 * string using class <code>PreferenceConverter</code>
2330 * @see org.eclipse.jface.resource.StringConverter
2331 * @see org.eclipse.jface.preference.PreferenceConverter
2333 public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
2336 * A named preference that holds the background color used in the code
2337 * assist selection dialog to mark replaced code.
2339 * Value is of type <code>String</code>. A RGB color value encoded as a
2340 * string using class <code>PreferenceConverter</code>
2343 * @see org.eclipse.jface.resource.StringConverter
2344 * @see org.eclipse.jface.preference.PreferenceConverter
2347 public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
2350 * A named preference that holds the foreground color used in the code
2351 * assist selection dialog to mark replaced code.
2353 * Value is of type <code>String</code>. A RGB color value encoded as a
2354 * string using class <code>PreferenceConverter</code>
2357 * @see org.eclipse.jface.resource.StringConverter
2358 * @see org.eclipse.jface.preference.PreferenceConverter
2361 public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
2364 * A named preference that controls the behaviour of the refactoring wizard
2365 * for showing the error page.
2367 * Value is of type <code>String</code>. Valid values are:
2368 * <code>REFACTOR_FATAL_SEVERITY</code>,
2369 * <code>REFACTOR_ERROR_SEVERITY</code>,<code>REFACTOR_WARNING_SEVERITY</code>
2370 * <code>REFACTOR_INFO_SEVERITY</code>,
2371 * <code>REFACTOR_OK_SEVERITY</code>.
2374 * @see #REFACTOR_FATAL_SEVERITY
2375 * @see #REFACTOR_ERROR_SEVERITY
2376 * @see #REFACTOR_WARNING_SEVERITY
2377 * @see #REFACTOR_INFO_SEVERITY
2378 * @see #REFACTOR_OK_SEVERITY
2380 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
2383 * A string value used by the named preference
2384 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2386 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2388 public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
2391 * A string value used by the named preference
2392 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2394 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2396 public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
2399 * A string value used by the named preference
2400 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2402 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2404 public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
2407 * A string value used by the named preference
2408 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2410 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2412 public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
2415 * A string value used by the named preference
2416 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2418 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2420 public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
2423 * A named preference thet controls whether all dirty editors are
2424 * automatically saved before a refactoring is executed.
2426 * Value is of type <code>Boolean</code>.
2429 public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
2432 * A named preference that controls if the Java Browsing views are linked to
2433 * the active editor.
2435 * Value is of type <code>Boolean</code>.
2438 * @see #LINK_PACKAGES_TO_EDITOR
2440 public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
2443 * A named preference that controls the layout of the Java Browsing views
2444 * vertically. Boolean value.
2446 * Value is of type <code>Boolean</code>. If
2447 * <code>true<code> the views are stacked vertical.
2448 * If <code>false</code> they are stacked horizontal.
2451 public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
2454 * A named preference that controls if templates are formatted when applied.
2456 * Value is of type <code>Boolean</code>.
2461 public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
2464 * A named preference that controls whether annotation roll over is used or
2467 * Value is of type <code>Boolean</code>. If
2468 * <code>true<code> the annotation ruler column
2469 * uses a roll over to display multiple annotations
2474 public static final String EDITOR_ANNOTATION_ROLL_OVER = "editor_annotation_roll_over"; //$NON-NLS-1$
2477 * A named preference that controls the key modifier mask for browser like
2478 * links. The value is only used if the value of
2479 * <code>EDITOR_BROWSER_LIKE_LINKS</code> cannot be resolved to valid SWT
2482 * Value is of type <code>String</code>.
2485 * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2488 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2491 * A named preference that defines the key for the hover modifier state
2492 * masks. The value is only used if the value of
2493 * <code>EDITOR_TEXT_HOVER_MODIFIERS</code> cannot be resolved to valid
2494 * SWT modifier bits.
2497 * @see #EDITOR_TEXT_HOVER_MODIFIERS
2500 public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
2503 * A named preference that controls whether folding is enabled in the Java
2506 * Value is of type <code>Boolean</code>.
2511 public static final String EDITOR_FOLDING_ENABLED = "editor_folding_enabled"; //$NON-NLS-1$
2514 * A named preference that stores the configured folding provider.
2516 * Value is of type <code>String</code>.
2521 public static final String EDITOR_FOLDING_PROVIDER = "editor_folding_provider"; //$NON-NLS-1$
2524 * A named preference that stores the value for Javadoc folding for the
2525 * default folding provider.
2527 * Value is of type <code>Boolean</code>.
2532 public static final String EDITOR_FOLDING_JAVADOC = "editor_folding_default_javadoc"; //$NON-NLS-1$
2535 * A named preference that stores the value for inner type folding for the
2536 * default folding provider.
2538 * Value is of type <code>Boolean</code>.
2543 public static final String EDITOR_FOLDING_INNERTYPES = "editor_folding_default_innertypes"; //$NON-NLS-1$
2546 * A named preference that stores the value for method folding for the
2547 * default folding provider.
2549 * Value is of type <code>Boolean</code>.
2554 public static final String EDITOR_FOLDING_METHODS = "editor_folding_default_methods"; //$NON-NLS-1$
2557 * A named preference that stores the value for imports folding for the
2558 * default folding provider.
2560 * Value is of type <code>Boolean</code>.
2565 // public static final String EDITOR_FOLDING_IMPORTS =
2566 // "editor_folding_default_imports"; //$NON-NLS-1$
2568 * A named preference that stores the value for header comment folding for
2569 * the default folding provider.
2571 * Value is of type <code>Boolean</code>.
2576 public static final String EDITOR_FOLDING_HEADERS = "editor_folding_default_headers"; //$NON-NLS-1$
2578 public static void initializeDefaultValues(IPreferenceStore store) {
2579 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
2581 // JavaBasePreferencePage
2582 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
2583 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR,
2586 .setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR,
2588 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY,
2589 PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
2590 store.setDefault(PreferenceConstants.DOUBLE_CLICK,
2591 PreferenceConstants.DOUBLE_CLICK_EXPANDS);
2592 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS,
2593 PreferenceConstants.UPDATE_WHILE_EDITING);
2595 // AppearancePreferencePage
2596 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES,
2598 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE,
2600 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
2601 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR,
2603 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
2605 PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW,
2609 PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER,
2612 // ImportOrganizePreferencePage
2613 // store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER,
2614 // "php;phpx;org;com"); //$NON-NLS-1$
2615 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
2616 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
2618 // ClasspathVariablesPreferencePage
2619 // CodeFormatterPreferencePage
2620 // CompilerPreferencePage
2621 // no initialization needed
2623 // RefactoringPreferencePage
2625 PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD,
2626 PreferenceConstants.REFACTOR_ERROR_SEVERITY);
2627 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
2628 store.setDefault("RefactoringUI", "dialog");
2630 // TemplatePreferencePage
2631 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
2633 // CodeGenerationPreferencePage
2634 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX,
2636 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX,
2638 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX,
2639 "fg, f, _$, _, m_"); //$NON-NLS-1$
2640 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
2642 store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS, false);
2643 store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true);
2644 store.setDefault(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$
2645 store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, true);
2646 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS,
2648 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
2650 // MembersOrderPreferencePage
2651 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER,
2652 "T,SF,SI,SM,I,F,C,M"); //$NON-NLS-1$
2653 store.setDefault(PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER,
2654 "B,V,R,D"); //$NON-NLS-1$
2656 PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER,
2658 // must add here to guarantee that it is the first in the listener list
2659 store.addPropertyChangeListener(PHPeclipsePlugin.getDefault()
2660 .getMemberOrderPreferenceCache());
2662 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
2663 PreferenceConverter.setDefault(store,
2664 PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, new RGB(
2667 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
2668 PreferenceConverter.setDefault(store,
2669 PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225,
2672 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
2673 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
2674 PreferenceConverter.setDefault(store,
2675 PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176,
2678 PreferenceConverter.setDefault(store,
2679 PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176,
2682 // store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION,
2684 // PreferenceConverter.setDefault(store,
2685 // PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0,
2687 // store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER,
2690 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION,
2692 // PreferenceConverter.setDefault(store,
2693 // PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244,
2695 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER,
2698 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
2699 // PreferenceConverter.setDefault(store,
2700 // PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128,
2702 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER,
2705 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION,
2707 // PreferenceConverter.setDefault(store,
2708 // PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34,
2710 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER,
2713 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION,
2715 // PreferenceConverter.setDefault(store,
2716 // PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new
2717 // RGB(192, 192, 192));
2718 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER,
2721 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION,
2723 // PreferenceConverter.setDefault(store,
2724 // PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0,
2726 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER,
2730 .setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION,
2733 PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true);
2735 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS,
2738 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
2740 // WorkbenchChainedTextFontFieldEditor.startPropagate(store,
2741 // JFaceResources.TEXT_FONT);
2743 PreferenceConverter.setDefault(store,
2744 PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0,
2746 PreferenceConverter.setDefault(store,
2747 PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
2749 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR,
2752 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR,
2755 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
2756 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
2758 PreferenceConverter.setDefault(store,
2759 PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(
2761 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD,
2764 PreferenceConverter.setDefault(store,
2765 PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(
2767 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD,
2770 PreferenceConverter.setDefault(store,
2771 PreferenceConstants.EDITOR_PHP_TAG_COLOR, new RGB(255, 0, 128));
2772 store.setDefault(PreferenceConstants.EDITOR_PHP_TAG_BOLD, true);
2774 PreferenceConverter.setDefault(store,
2775 PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0,
2777 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
2779 PreferenceConverter.setDefault(store,
2780 PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127,
2782 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD,
2785 PreferenceConverter.setDefault(store,
2786 PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127,
2788 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
2790 PreferenceConverter.setDefault(store,
2791 PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_COLOR, new RGB(
2793 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_BOLD,
2796 PreferenceConverter.setDefault(store,
2797 PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0,
2799 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
2801 PreferenceConverter.setDefault(store,
2802 PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
2803 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
2805 PreferenceConverter.setDefault(store,
2806 PreferenceConstants.EDITOR_STRING_COLOR_DQ,
2807 PHPColorProvider.STRING_DQ);
2808 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_DQ, false);
2810 PreferenceConverter.setDefault(store,
2811 PreferenceConstants.EDITOR_STRING_COLOR_SQ,
2812 PHPColorProvider.STRING_SQ);
2813 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_SQ, true);
2817 PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(
2819 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
2821 PreferenceConverter.setDefault(store,
2822 PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127,
2824 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
2826 PreferenceConverter.setDefault(store,
2827 PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127,
2829 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
2831 PreferenceConverter.setDefault(store,
2832 PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63,
2834 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
2836 PreferenceConverter.setDefault(store,
2837 PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63,
2840 .setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD,
2843 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
2844 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY,
2847 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
2848 PreferenceConverter.setDefault(store,
2849 PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(
2851 PreferenceConverter.setDefault(store,
2852 PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0,
2854 PreferenceConverter.setDefault(store,
2855 PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(
2857 PreferenceConverter.setDefault(store,
2858 PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(
2860 PreferenceConverter.setDefault(store,
2861 PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(
2863 PreferenceConverter.setDefault(store,
2864 PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(
2867 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA,
2868 "$>"); //$NON-NLS-1$
2870 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC,
2873 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML,
2874 "<&#"); //$NON-NLS-1$
2875 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS,
2878 .setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY,
2880 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
2881 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
2883 .setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION,
2885 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES,
2887 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS,
2889 store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION,
2892 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
2893 store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
2894 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
2895 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_DQ_PHP, true);
2896 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_SQ_PHP, true);
2897 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
2898 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
2899 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
2900 store.setDefault(PreferenceConstants.EDITOR_WRAP_WORDS, false);
2901 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_DQ, true);
2902 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_DQ, false);
2903 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_SQ, true);
2904 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_SQ, false);
2905 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
2906 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, false);
2907 store.setDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE,
2910 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
2911 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
2913 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER,
2914 // JavaPlugin.ID_BESTMATCH_HOVER);
2915 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER,
2916 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2917 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER,
2918 // JavaPlugin.ID_SOURCE_HOVER);
2919 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER,
2920 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2921 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER,
2922 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2923 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER,
2924 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2925 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER,
2926 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2927 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER,
2928 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2930 int modifier = SWT.CTRL;
2931 if (Platform.getOS().equals(Platform.OS_MACOSX))
2932 modifier = SWT.COMMAND;
2933 String ctrl = Action.findModifierString(modifier);
2936 PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS,
2937 "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$
2940 PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS,
2941 "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + modifier); //$NON-NLS-1$
2942 store.setDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE,
2945 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true);
2947 PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER,
2951 PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK,
2955 store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true);
2956 store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true);
2957 // store.setDefault(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES,
2959 // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES,
2961 // store.setDefault(PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES,
2963 // store.setDefault(PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES,
2965 // store.setDefault(PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES,
2967 // store.setDefault(PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES,
2969 // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS,
2971 // store.setDefault(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, true);
2974 store.setDefault(PreferenceConstants.SPELLING_CHECK_SPELLING, false);
2975 store.setDefault(PreferenceConstants.SPELLING_LOCALE, SpellCheckEngine
2976 .getDefaultLocale().toString());
2977 store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS, true);
2978 store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED, true);
2979 store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE, true);
2980 store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER, true);
2981 store.setDefault(PreferenceConstants.SPELLING_IGNORE_URLS, true);
2982 store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$
2983 store.setDefault(PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20);
2984 store.setDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST,
2988 store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
2989 store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER,
2990 "net.sourceforge.phpdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
2991 store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, true);
2992 store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, true);
2993 store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false);
2994 // store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, false);
2995 store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS, true);
2997 store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE, true);
2998 store.setDefault(PreferenceConstants.EDITOR_P_RTRIM_ON_SAVE, false);
2999 // do more complicated stuff
3000 // NewJavaProjectPreferencePage.initDefaults(store);
3004 * Returns the JDT-UI preference store.
3006 * @return the JDT-UI preference store
3008 public static IPreferenceStore getPreferenceStore() {
3009 return PHPeclipsePlugin.getDefault().getPreferenceStore();
3013 // * Encodes a JRE library to be used in the named preference
3014 // <code>NEWPROJECT_JRELIBRARY_LIST</code>.
3016 // * @param description a string value describing the JRE library. The
3017 // description is used
3018 // * to indentify the JDR library in the UI
3019 // * @param entries an array of classpath entries to be encoded
3021 // * @return the encoded string.
3023 // public static String encodeJRELibrary(String description,
3024 // IClasspathEntry[] entries) {
3025 // return NewJavaProjectPreferencePage.encodeJRELibrary(description,
3030 // * Decodes an encoded JRE library and returns its description string.
3032 // * @return the description of an encoded JRE library
3034 // * @see #encodeJRELibrary(String, IClasspathEntry[])
3036 // public static String decodeJRELibraryDescription(String encodedLibrary) {
3038 // NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
3042 // * Decodes an encoded JRE library and returns its classpath entries.
3044 // * @return the array of classpath entries of an encoded JRE library.
3046 // * @see #encodeJRELibrary(String, IClasspathEntry[])
3048 // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String
3049 // encodedLibrary) {
3051 // NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
3055 // * Returns the current configuration for the JRE to be used as default in
3056 // new Java projects.
3057 // * This is a convenience method to access the named preference
3058 // <code>NEWPROJECT_JRELIBRARY_LIST
3059 // * </code> with the index defined by <code>
3060 // NEWPROJECT_JRELIBRARY_INDEX</code>.
3062 // * @return the current default set of classpath entries
3064 // * @see #NEWPROJECT_JRELIBRARY_LIST
3065 // * @see #NEWPROJECT_JRELIBRARY_INDEX
3067 // public static IClasspathEntry[] getDefaultJRELibrary() {
3068 // return NewJavaProjectPreferencePage.getDefaultJRELibrary();