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 controls if the line number ruler is shown in the
1097 * Value is of type <code>Boolean</code>.
1100 public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$
1103 * A named preference that holds the color used to render line numbers
1104 * inside the line number ruler.
1106 * Value is of type <code>String</code>. A RGB color value encoded as a
1107 * string using class <code>PreferenceConverter</code>
1110 * @see org.eclipse.jface.resource.StringConverter
1111 * @see org.eclipse.jface.preference.PreferenceConverter
1112 * @see #EDITOR_LINE_NUMBER_RULER
1114 public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$
1117 * A named preference that holds the color used to render linked positions
1118 * inside code templates.
1120 * Value is of type <code>String</code>. A RGB color value encoded as a
1121 * string using class <code>PreferenceConverter</code>
1124 * @see org.eclipse.jface.resource.StringConverter
1125 * @see org.eclipse.jface.preference.PreferenceConverter
1127 public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
1130 * A named preference that holds the color used as the text foreground.
1132 * Value is of type <code>String</code>. A RGB color value encoded as a
1133 * string using class <code>PreferenceConverter</code>
1136 * @see org.eclipse.jface.resource.StringConverter
1137 * @see org.eclipse.jface.preference.PreferenceConverter
1139 public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
1142 * A named preference that describes if the system default foreground color
1143 * is used as the text foreground.
1145 * Value is of type <code>Boolean</code>.
1148 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
1151 * A named preference that holds the color used as the text background.
1153 * Value is of type <code>String</code>. A RGB color value encoded as a
1154 * string using class <code>PreferenceConverter</code>
1157 * @see org.eclipse.jface.resource.StringConverter
1158 * @see org.eclipse.jface.preference.PreferenceConverter
1160 public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
1163 * A named preference that describes if the system default background color
1164 * is used as the text foreground.
1166 * Value is of type <code>Boolean</code>.
1169 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
1172 * Preference key suffix for bold text style preference keys.
1174 public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
1177 * Preference key suffix for bold text style preference keys.
1179 public static final String EDITOR_ITALIC_SUFFIX = "_italic"; //$NON-NLS-1$
1182 * A named preference that holds the color used to render multi line
1185 * Value is of type <code>String</code>. A RGB color value encoded as a
1186 * string using class <code>PreferenceConverter</code>
1189 * @see org.eclipse.jface.resource.StringConverter
1190 * @see org.eclipse.jface.preference.PreferenceConverter
1192 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT;
1195 * The symbolic font name for the Java editor text font (value
1196 * <code>"net.sourceforge.phpdt.ui.editors.textfont"</code>).
1200 public final static String EDITOR_TEXT_FONT = "net.sourceforge.phpdt.ui.editors.textfont"; //$NON-NLS-1$
1203 * A named preference that controls whether multi line comments are rendered
1206 * Value is of type <code>Boolean</code>. If <code>true</code> multi
1207 * line comments are rendered in bold. If <code>false</code> the are
1208 * rendered using no font style attribute.
1211 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT
1212 + EDITOR_BOLD_SUFFIX;
1215 * A named preference that holds the color used to render single line
1218 * Value is of type <code>String</code>. A RGB color value encoded as a
1219 * string using class <code>PreferenceConverter</code>
1222 * @see org.eclipse.jface.resource.StringConverter
1223 * @see org.eclipse.jface.preference.PreferenceConverter
1225 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT;
1228 * A named preference that controls whether sinle line comments are rendered
1231 * Value is of type <code>Boolean</code>. If <code>true</code> single
1232 * line comments are rendered in bold. If <code>false</code> the are
1233 * rendered using no font style attribute.
1236 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT
1237 + EDITOR_BOLD_SUFFIX;
1240 * A named preference that holds the color used to render operators and
1243 * Value is of type <code>String</code>. A RGB color value encoded as a
1244 * string using class <code>PreferenceConverter</code>
1247 * @see org.eclipse.jface.resource.StringConverter
1248 * @see org.eclipse.jface.preference.PreferenceConverter
1251 public final static String EDITOR_PHP_OPERATOR_COLOR = IPreferenceConstants.PHP_OPERATOR;
1254 * A named preference that controls whether operators and brackets are
1257 * Value is of type <code>Boolean</code>.
1262 public final static String EDITOR_PHP_OPERATOR_BOLD = IPreferenceConstants.PHP_OPERATOR
1263 + EDITOR_BOLD_SUFFIX;
1266 * A named preference that controls whether operators and brackets are
1267 * rendered in italic.
1269 * Value is of type <code>Boolean</code>.
1274 public final static String EDITOR_PHP_OPERATOR_ITALIC = IPreferenceConstants.PHP_OPERATOR
1275 + EDITOR_ITALIC_SUFFIX;
1278 * A named preference that holds the color used to render operators and
1281 * Value is of type <code>String</code>. A RGB color value encoded as a
1282 * string using class <code>PreferenceConverter</code>
1285 * @see org.eclipse.jface.resource.StringConverter
1286 * @see org.eclipse.jface.preference.PreferenceConverter
1289 public final static String EDITOR_PHP_BRACE_OPERATOR_COLOR = IPreferenceConstants.PHP_BRACE_OPERATOR;
1292 * A named preference that controls whether operators and brackets are
1295 * Value is of type <code>Boolean</code>.
1300 public final static String EDITOR_PHP_BRACE_OPERATOR_BOLD = IPreferenceConstants.PHP_BRACE_OPERATOR
1301 + EDITOR_BOLD_SUFFIX;
1304 * A named preference that controls whether operators and brackets are
1305 * rendered in italic.
1307 * Value is of type <code>Boolean</code>.
1312 public final static String EDITOR_PHP_BRACE_OPERATOR_ITALIC = IPreferenceConstants.PHP_BRACE_OPERATOR
1313 + EDITOR_ITALIC_SUFFIX;
1316 * A named preference that holds the color used to render the 'return'
1319 * Value is of type <code>String</code>. A RGB color value encoded as a
1320 * string using class <code>PreferenceConverter</code>
1323 * @see org.eclipse.jface.resource.StringConverter
1324 * @see org.eclipse.jface.preference.PreferenceConverter
1327 public final static String EDITOR_PHP_KEYWORD_RETURN_COLOR = IPreferenceConstants.PHP_KEYWORD_RETURN;
1330 * A named preference that controls whether 'return' keyword is rendered in
1333 * Value is of type <code>Boolean</code>.
1338 public final static String EDITOR_PHP_KEYWORD_RETURN_BOLD = IPreferenceConstants.PHP_KEYWORD_RETURN
1339 + EDITOR_BOLD_SUFFIX;
1342 * A named preference that controls whether 'return' keyword is rendered in
1345 * Value is of type <code>Boolean</code>.
1350 public final static String EDITOR_PHP_KEYWORD_RETURN_ITALIC = IPreferenceConstants.PHP_KEYWORD_RETURN
1351 + EDITOR_ITALIC_SUFFIX;
1354 * A named preference that holds the color used to render php start and stop
1357 * Value is of type <code>String</code>. A RGB color value encoded as a
1358 * string using class <code>PreferenceConverter</code>
1361 * @see org.eclipse.jface.resource.StringConverter
1362 * @see org.eclipse.jface.preference.PreferenceConverter
1364 public final static String EDITOR_PHP_TAG_COLOR = IPreferenceConstants.PHP_TAG;
1367 * A named preference that controls whether php start and stop tags are
1370 * Value is of type <code>Boolean</code>.
1373 public final static String EDITOR_PHP_TAG_BOLD = IPreferenceConstants.PHP_TAG
1374 + EDITOR_BOLD_SUFFIX;
1377 * A named preference that holds the color used to render php keywords.
1379 * Value is of type <code>String</code>. A RGB color value encoded as a
1380 * string using class <code>PreferenceConverter</code>
1383 * @see org.eclipse.jface.resource.StringConverter
1384 * @see org.eclipse.jface.preference.PreferenceConverter
1386 public final static String EDITOR_JAVA_KEYWORD_COLOR = IPreferenceConstants.PHP_KEYWORD;
1389 * A named preference that controls whether keywords are rendered in bold.
1391 * Value is of type <code>Boolean</code>.
1394 public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD
1395 + EDITOR_BOLD_SUFFIX;
1398 * A named preference that holds the color used to render predefined php
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_FUNCTIONNAME_COLOR = IPreferenceConstants.PHP_FUNCTIONNAME;
1411 * A named preference that controls whether function names are rendered in
1414 * Value is of type <code>Boolean</code>.
1417 public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME
1418 + EDITOR_BOLD_SUFFIX;
1421 * A named preference that holds the color used to render php variables with
1424 * Value is of type <code>String</code>. A RGB color value encoded as a
1425 * string using class <code>PreferenceConverter</code>
1428 * @see org.eclipse.jface.resource.StringConverter
1429 * @see org.eclipse.jface.preference.PreferenceConverter
1431 public final static String EDITOR_PHP_VARIABLE_DOLLAR_COLOR = IPreferenceConstants.PHP_VARIABLE_DOLLAR;
1434 * A named preference that controls whether variables with prefix '$_' are
1437 * Value is of type <code>Boolean</code>.
1440 public final static String EDITOR_PHP_VARIABLE_DOLLAR_BOLD = IPreferenceConstants.PHP_VARIABLE_DOLLAR
1441 + EDITOR_BOLD_SUFFIX;
1444 * A named preference that holds the color used to render php variables.
1446 * Value is of type <code>String</code>. A RGB color value encoded as a
1447 * string using class <code>PreferenceConverter</code>
1450 * @see org.eclipse.jface.resource.StringConverter
1451 * @see org.eclipse.jface.preference.PreferenceConverter
1453 public final static String EDITOR_PHP_VARIABLE_COLOR = IPreferenceConstants.PHP_VARIABLE;
1456 * A named preference that controls whether variables are rendered in bold.
1458 * Value is of type <code>Boolean</code>.
1461 public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE
1462 + EDITOR_BOLD_SUFFIX;
1465 * A named preference that holds the color used to render php constants.
1467 * Value is of type <code>String</code>. A RGB color value encoded as a
1468 * string using class <code>PreferenceConverter</code>
1471 * @see org.eclipse.jface.resource.StringConverter
1472 * @see org.eclipse.jface.preference.PreferenceConverter
1474 public final static String EDITOR_PHP_CONSTANT_COLOR = IPreferenceConstants.PHP_CONSTANT;
1477 * A named preference that controls whether constants are rendered in bold.
1479 * Value is of type <code>Boolean</code>.
1482 public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT
1483 + EDITOR_BOLD_SUFFIX;
1486 * A named preference that holds the color used to render php types.
1488 * Value is of type <code>String</code>. A RGB color value encoded as a
1489 * string using class <code>PreferenceConverter</code>
1492 * @see org.eclipse.jface.resource.StringConverter
1493 * @see org.eclipse.jface.preference.PreferenceConverter
1495 public final static String EDITOR_PHP_TYPE_COLOR = IPreferenceConstants.PHP_TYPE;
1498 * A named preference that controls whether types are rendered in bold.
1500 * Value is of type <code>Boolean</code>.
1503 public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE
1504 + EDITOR_BOLD_SUFFIX;
1507 * A named preference that holds the color used to render string constants.
1509 * Value is of type <code>String</code>. A RGB color value encoded as a
1510 * string using class <code>PreferenceConverter</code>
1513 * @see org.eclipse.jface.resource.StringConverter
1514 * @see org.eclipse.jface.preference.PreferenceConverter
1516 public final static String EDITOR_STRING_COLOR_DQ = IPreferenceConstants.PHP_STRING_DQ;
1519 * A named preference that controls whether string constants are rendered in
1522 * Value is of type <code>Boolean</code>.
1525 public final static String EDITOR_STRING_BOLD_DQ = IPreferenceConstants.PHP_STRING_DQ
1526 + EDITOR_BOLD_SUFFIX;
1528 public final static String EDITOR_STRING_COLOR_SQ = IPreferenceConstants.PHP_STRING_SQ;
1531 * A named preference that controls whether string constants are rendered in
1534 * Value is of type <code>Boolean</code>.
1537 public final static String EDITOR_STRING_BOLD_SQ = IPreferenceConstants.PHP_STRING_SQ
1538 + EDITOR_BOLD_SUFFIX;
1541 * A named preference that holds the color used to render php default text.
1543 * Value is of type <code>String</code>. A RGB color value encoded as a
1544 * string using class <code>PreferenceConverter</code>
1547 * @see org.eclipse.jface.resource.StringConverter
1548 * @see org.eclipse.jface.preference.PreferenceConverter
1550 public final static String EDITOR_JAVA_DEFAULT_COLOR = IPreferenceConstants.PHP_DEFAULT;
1553 * A named preference that controls whether Java default text is rendered in
1556 * Value is of type <code>Boolean</code>.
1559 public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT
1560 + EDITOR_BOLD_SUFFIX;
1563 * A named preference that holds the color used to render task tags.
1565 * Value is of type <code>String</code>. A RGB color value encoded as a
1566 * string using class <code>PreferenceConverter</code>
1569 * @see org.eclipse.jface.resource.StringConverter
1570 * @see org.eclipse.jface.preference.PreferenceConverter
1573 public final static String EDITOR_TASK_TAG_COLOR = IPreferenceConstants.TASK_TAG;
1576 * A named preference that controls whether task tags are rendered in bold.
1578 * Value is of type <code>Boolean</code>.
1583 public final static String EDITOR_TASK_TAG_BOLD = IPreferenceConstants.TASK_TAG
1584 + EDITOR_BOLD_SUFFIX;
1587 * A named preference that holds the color used to render phpdoc keywords.
1589 * Value is of type <code>String</code>. A RGB color value encoded as a
1590 * string using class <code>PreferenceConverter</code>
1593 * @see org.eclipse.jface.resource.StringConverter
1594 * @see org.eclipse.jface.preference.PreferenceConverter
1596 public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IPreferenceConstants.PHPDOC_KEYWORD;
1599 * A named preference that controls whether phpdoc keywords are rendered in
1602 * Value is of type <code>Boolean</code>.
1605 public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD
1606 + EDITOR_BOLD_SUFFIX;
1609 * A named preference that holds the color used to render phpdoc tags.
1611 * Value is of type <code>String</code>. A RGB color value encoded as a
1612 * string using class <code>PreferenceConverter</code>
1615 * @see org.eclipse.jface.resource.StringConverter
1616 * @see org.eclipse.jface.preference.PreferenceConverter
1618 public final static String EDITOR_JAVADOC_TAG_COLOR = IPreferenceConstants.PHPDOC_TAG;
1621 * A named preference that controls whether phpdoc tags are rendered in
1624 * Value is of type <code>Boolean</code>.
1627 public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG
1628 + EDITOR_BOLD_SUFFIX;
1631 * A named preference that holds the color used to render phpdoc links.
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_LINKS_COLOR = IPreferenceConstants.PHPDOC_LINK;
1643 * A named preference that controls whether phpdoc links are rendered in
1646 * Value is of type <code>Boolean</code>.
1649 public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK
1650 + EDITOR_BOLD_SUFFIX;
1653 * A named preference that holds the color used to render phpdoc default
1656 * Value is of type <code>String</code>. A RGB color value encoded as a
1657 * string using class <code>PreferenceConverter</code>
1660 * @see org.eclipse.jface.resource.StringConverter
1661 * @see org.eclipse.jface.preference.PreferenceConverter
1663 public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IPreferenceConstants.PHPDOC_DEFAULT;
1666 * A named preference that controls whether phpdoc default text is rendered
1669 * Value is of type <code>Boolean</code>.
1672 public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT
1673 + EDITOR_BOLD_SUFFIX;
1676 * A named preference that holds the color used for 'linked-mode' underline.
1678 * Value is of type <code>String</code>. A RGB color value encoded as a
1679 * string using class <code>PreferenceConverter</code>
1682 * @see org.eclipse.jface.resource.StringConverter
1683 * @see org.eclipse.jface.preference.PreferenceConverter
1686 public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1689 * A named preference that controls whether hover tooltips in the editor are
1692 * Value is of type <code>Boolean</code>.
1695 public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1698 * A named preference that defines the hover shown when no control key is
1701 * Value is of type <code>String</code>: possible values are <code>
1702 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1703 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1704 * hover contributed as <code>phpEditorTextHovers</code>.
1707 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1708 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1712 public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1715 * A named preference that defines the hover shown when the
1716 * <code>CTRL</code> modifier key is pressed.
1718 * Value is of type <code>String</code>: possible values are <code>
1719 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1720 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1721 * hover contributed as <code>phpEditorTextHovers</code>.
1724 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1725 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1729 public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1732 * A named preference that defines the hover shown when the
1733 * <code>SHIFT</code> modifier key is pressed.
1735 * Value is of type <code>String</code>: possible values are <code>
1736 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1737 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1738 * hover contributed as <code>phpEditorTextHovers</code>.
1741 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1742 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1743 * @see JavaUI ID_*_HOVER
1746 public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1749 * A named preference that defines the hover shown when the
1750 * <code>CTRL + ALT</code> modifier keys is pressed.
1752 * Value is of type <code>String</code>: possible values are <code>
1753 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1754 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1755 * hover contributed as <code>phpEditorTextHovers</code>.
1758 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1759 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1760 * @see JavaUI ID_*_HOVER
1763 public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1766 * A named preference that defines the hover shown when the
1767 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1769 * Value is of type <code>String</code>: possible values are <code>
1770 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1771 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1772 * hover contributed as <code>phpEditorTextHovers</code>.
1775 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1776 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1777 * @see JavaUI ID_*_HOVER
1780 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1783 * A named preference that defines the hover shown when the
1784 * <code>CTRL + SHIFT</code> modifier keys is pressed.
1786 * Value is of type <code>String</code>: possible values are <code>
1787 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1788 * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1789 * hover contributed as <code>phpEditorTextHovers</code>.
1792 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1793 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1794 * @see JavaUI ID_*_HOVER
1797 public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1800 * A named preference that defines the hover shown when the <code>ALT</code>
1801 * modifier key is pressed.
1803 * Value is of type <code>String</code>: possible values are <code>
1804 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1805 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1806 * hover contributed as <code>phpEditorTextHovers</code>.
1809 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1810 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1811 * @see JavaUI ID_*_HOVER
1814 public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1817 * A string value used by the named preferences for hover configuration to
1818 * descibe that no hover should be shown for the given key modifiers.
1822 public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1825 * A string value used by the named preferences for hover configuration to
1826 * descibe that the default hover should be shown for the given key
1827 * modifiers. The default hover is described by the
1828 * <code>EDITOR_DEFAULT_HOVER</code> property.
1832 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1835 * A named preference that defines the hover named the 'default hover'.
1836 * Value is of type <code>String</code>: possible values are <code>
1837 * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1838 * or <code> the hover id of a hover
1839 * contributed as <code>phpEditorTextHovers</code>.
1843 public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1846 * A named preference that controls if segmented view (show selected element
1847 * only) is turned on or off.
1849 * Value is of type <code>Boolean</code>.
1852 public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1855 * A named preference that controls if browser like links are turned on or
1858 * Value is of type <code>Boolean</code>.
1863 public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
1866 * A named preference that controls the key modifier for browser like links.
1868 * Value is of type <code>String</code>.
1873 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
1876 * A named preference that controls whether occurrences are marked in the
1879 * Value is of type <code>Boolean</code>.
1884 public static final String EDITOR_MARK_OCCURRENCES = "markOccurrences"; //$NON-NLS-1$
1887 * A named preference that controls whether occurrences are sticky in the
1890 * Value is of type <code>Boolean</code>.
1895 public static final String EDITOR_STICKY_OCCURRENCES = "stickyOccurrences"; //$NON-NLS-1$
1898 * A named preference that controls disabling of the overwrite mode.
1900 * Value is of type <code>Boolean</code>.
1905 public static final String EDITOR_DISABLE_OVERWRITE_MODE = "disable_overwrite_mode"; //$NON-NLS-1$
1908 * A named preference that controls saving of a file on loss of editor focus.
1910 * Value is of type <code>Boolean</code>.
1915 public static final String EDITOR_SAVE_ON_BLUR = "save_on_blur"; //$NON-NLS-1$
1918 * A named preference that controls the "smart semicolon" smart typing
1921 * Value is of type <code>Boolean</code>.
1926 public static final String EDITOR_SMART_SEMICOLON = "smart_semicolon"; //$NON-NLS-1$
1929 * A named preference that controls the smart backspace behavior.
1931 * Value is of type <code>Boolean</code>.
1935 public static final String EDITOR_SMART_BACKSPACE = "smart_backspace"; //$NON-NLS-1$
1938 * A named preference that controls the "smart opening brace" smart typing
1941 * Value is of type <code>Boolean</code>.
1946 public static final String EDITOR_SMART_OPENING_BRACE = "smart_opening_brace"; //$NON-NLS-1$
1949 * A named preference that controls the smart tab behaviour.
1951 * Value is of type <code>Boolean</code>.
1955 public static final String EDITOR_SMART_TAB = "smart_tab"; //$NON-NLS-1$
1957 public static final String EDITOR_P_RTRIM_ON_SAVE = "editor_p_trim_on_save"; //$NON-NLS-1$
1960 * A named preference that controls whether Java comments should be
1963 * Value is of type <code>Boolean</code>.
1968 public final static String SPELLING_CHECK_SPELLING = ISpellCheckPreferenceKeys.SPELLING_CHECK_SPELLING;
1971 * A named preference that controls whether words containing digits should
1972 * be skipped during spell-checking.
1974 * Value is of type <code>Boolean</code>.
1979 public final static String SPELLING_IGNORE_DIGITS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_DIGITS;
1982 * A named preference that controls whether mixed case words should be
1983 * skipped during spell-checking.
1985 * Value is of type <code>Boolean</code>.
1990 public final static String SPELLING_IGNORE_MIXED = ISpellCheckPreferenceKeys.SPELLING_IGNORE_MIXED;
1993 * A named preference that controls whether sentence capitalization should
1994 * be ignored during spell-checking.
1996 * Value is of type <code>Boolean</code>.
2001 public final static String SPELLING_IGNORE_SENTENCE = ISpellCheckPreferenceKeys.SPELLING_IGNORE_SENTENCE;
2004 * A named preference that controls whether upper case words should be
2005 * skipped during spell-checking.
2007 * Value is of type <code>Boolean</code>.
2012 public final static String SPELLING_IGNORE_UPPER = ISpellCheckPreferenceKeys.SPELLING_IGNORE_UPPER;
2015 * A named preference that controls whether urls should be ignored during
2018 * Value is of type <code>Boolean</code>.
2023 public final static String SPELLING_IGNORE_URLS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_URLS;
2026 * A named preference that controls the locale used for spell-checking.
2028 * Value is of type <code>String</code>.
2033 public final static String SPELLING_LOCALE = ISpellCheckPreferenceKeys.SPELLING_LOCALE;
2036 * A named preference that controls the number of proposals offered during
2039 * Value is of type <code>Integer</code>.
2044 public final static String SPELLING_PROPOSAL_THRESHOLD = ISpellCheckPreferenceKeys.SPELLING_PROPOSAL_THRESHOLD;
2047 * A named preference that specifies the workspace user dictionary.
2049 * Value is of type <code>Integer</code>.
2054 public final static String SPELLING_USER_DICTIONARY = ISpellCheckPreferenceKeys.SPELLING_USER_DICTIONARY;
2057 * A named preference that specifies whether spelling dictionaries are
2058 * available to content assist.
2060 * Value is of type <code>Boolean</code>.
2065 public final static String SPELLING_ENABLE_CONTENTASSIST = ISpellCheckPreferenceKeys.SPELLING_ENABLE_CONTENTASSIST;
2068 * A named preference that controls whether code snippets are formatted in
2071 * Value is of type <code>Boolean</code>.
2076 public final static String FORMATTER_COMMENT_FORMATSOURCE = "comment_format_source_code"; //$NON-NLS-1$
2079 * A named preference that controls whether description of Javadoc
2080 * parameters are indented.
2082 * Value is of type <code>Boolean</code>.
2087 public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION = "comment_indent_parameter_description"; //$NON-NLS-1$
2090 * A named preference that controls whether the header comment of a Java
2091 * source file is formatted.
2093 * Value is of type <code>Boolean</code>.
2098 public final static String FORMATTER_COMMENT_FORMATHEADER = "comment_format_header"; //$NON-NLS-1$
2101 * A named preference that controls whether Javadoc root tags are indented.
2103 * Value is of type <code>Boolean</code>.
2108 public final static String FORMATTER_COMMENT_INDENTROOTTAGS = "comment_indent_root_tags"; //$NON-NLS-1$
2111 * A named preference that controls whether Javadoc comments are formatted
2112 * by the content formatter.
2114 * Value is of type <code>Boolean</code>.
2119 public final static String FORMATTER_COMMENT_FORMAT = "comment_format_comments"; //$NON-NLS-1$
2122 * A named preference that controls whether a new line is inserted after
2123 * Javadoc root tag parameters.
2125 * Value is of type <code>Boolean</code>.
2130 public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER = "comment_new_line_for_parameter"; //$NON-NLS-1$
2133 * A named preference that controls whether an empty line is inserted before
2134 * the Javadoc root tag block.
2136 * Value is of type <code>Boolean</code>.
2141 public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS = "comment_separate_root_tags"; //$NON-NLS-1$
2144 * A named preference that controls whether blank lines are cleared during
2147 * Value is of type <code>Boolean</code>.
2152 public final static String FORMATTER_COMMENT_CLEARBLANKLINES = "comment_clear_blank_lines"; //$NON-NLS-1$
2155 * A named preference that controls the line length of comments.
2157 * Value is of type <code>Integer</code>. The value must be at least 4
2158 * for reasonable formatting.
2163 public final static String FORMATTER_COMMENT_LINELENGTH = "comment_line_length"; //$NON-NLS-1$
2166 * A named preference that controls whether html tags are formatted.
2168 * Value is of type <code>Boolean</code>.
2173 public final static String FORMATTER_COMMENT_FORMATHTML = "comment_format_html"; //$NON-NLS-1$
2176 * A named preference that controls if the Java code assist gets auto
2179 * Value is of type <code>Boolean</code>.
2182 public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
2185 * A name preference that holds the auto activation delay time in milli
2188 * Value is of type <code>Int</code>.
2191 public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
2194 * A named preference that controls if code assist contains only visible
2197 * Value is of type <code>Boolean</code>. if
2198 * <code>true<code> code assist only contains visible members. If
2199 * <code>false</code> all members are included.
2202 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
2205 * A named preference that controls if the Java code assist inserts a
2206 * proposal automatically if only one proposal is available.
2208 * Value is of type <code>Boolean</code>.
2213 public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
2216 * A named preference that controls if the Java code assist adds import
2219 * Value is of type <code>Boolean</code>.
2224 public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
2227 * A named preference that controls if the Java code assist only inserts
2228 * completions. If set to false the proposals can also _replace_ code.
2230 * Value is of type <code>Boolean</code>.
2235 public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
2238 * A named preference that controls whether code assist proposals filtering
2239 * is case sensitive or not.
2241 * Value is of type <code>Boolean</code>.
2244 public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
2247 * A named preference that defines if code assist proposals are sorted in
2248 * alphabetical order.
2250 * Value is of type <code>Boolean</code>. If <code>true</code> that are
2251 * sorted in alphabetical order. If <code>false</code> that are unsorted.
2254 public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
2257 * A named preference that controls if argument names are filled in when a
2258 * method is selected from as list of code assist proposal.
2260 * Value is of type <code>Boolean</code>.
2263 public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
2266 * A named preference that controls if method arguments are guessed when a
2267 * method is selected from as list of code assist proposal.
2269 * Value is of type <code>Boolean</code>.
2274 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
2277 * A named preference that holds the characters that auto activate code
2278 * assist in PHP code.
2280 * Value is of type <code>Sring</code>. All characters that trigger auto
2281 * code assist in PHP code.
2284 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
2287 * A named preference that holds the characters that auto activate code
2290 * Value is of type <code>Sring</code>. All characters that trigger auto
2291 * code assist in PHPDoc.
2294 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
2297 * A named preference that holds the characters that auto activate code
2300 * Value is of type <code>Sring</code>. All characters that trigger auto
2301 * code assist in HTML.
2304 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
2307 * A named preference that holds the background color used in the code
2308 * assist selection dialog.
2310 * Value is of type <code>String</code>. A RGB color value encoded as a
2311 * string using class <code>PreferenceConverter</code>
2314 * @see org.eclipse.jface.resource.StringConverter
2315 * @see org.eclipse.jface.preference.PreferenceConverter
2317 public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
2320 * A named preference that holds the foreground color used in the code
2321 * assist selection dialog.
2323 * Value is of type <code>String</code>. A RGB color value encoded as a
2324 * string using class <code>PreferenceConverter</code>
2327 * @see org.eclipse.jface.resource.StringConverter
2328 * @see org.eclipse.jface.preference.PreferenceConverter
2330 public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
2333 * A named preference that holds the background color used for parameter
2336 * Value is of type <code>String</code>. A RGB color value encoded as a
2337 * string using class <code>PreferenceConverter</code>
2340 * @see org.eclipse.jface.resource.StringConverter
2341 * @see org.eclipse.jface.preference.PreferenceConverter
2343 public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
2346 * A named preference that holds the foreground color used in the code
2347 * assist selection dialog
2349 * Value is of type <code>String</code>. A RGB color value encoded as a
2350 * string using class <code>PreferenceConverter</code>
2353 * @see org.eclipse.jface.resource.StringConverter
2354 * @see org.eclipse.jface.preference.PreferenceConverter
2356 public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
2359 * A named preference that holds the background color used in the code
2360 * assist selection dialog to mark replaced code.
2362 * Value is of type <code>String</code>. A RGB color value encoded as a
2363 * string using class <code>PreferenceConverter</code>
2366 * @see org.eclipse.jface.resource.StringConverter
2367 * @see org.eclipse.jface.preference.PreferenceConverter
2370 public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
2373 * A named preference that holds the foreground color used in the code
2374 * assist selection dialog to mark replaced code.
2376 * Value is of type <code>String</code>. A RGB color value encoded as a
2377 * string using class <code>PreferenceConverter</code>
2380 * @see org.eclipse.jface.resource.StringConverter
2381 * @see org.eclipse.jface.preference.PreferenceConverter
2384 public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
2387 * A named preference that controls the behaviour of the refactoring wizard
2388 * for showing the error page.
2390 * Value is of type <code>String</code>. Valid values are:
2391 * <code>REFACTOR_FATAL_SEVERITY</code>,
2392 * <code>REFACTOR_ERROR_SEVERITY</code>,<code>REFACTOR_WARNING_SEVERITY</code>
2393 * <code>REFACTOR_INFO_SEVERITY</code>,
2394 * <code>REFACTOR_OK_SEVERITY</code>.
2397 * @see #REFACTOR_FATAL_SEVERITY
2398 * @see #REFACTOR_ERROR_SEVERITY
2399 * @see #REFACTOR_WARNING_SEVERITY
2400 * @see #REFACTOR_INFO_SEVERITY
2401 * @see #REFACTOR_OK_SEVERITY
2403 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
2406 * A string value used by the named preference
2407 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2409 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2411 public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
2414 * A string value used by the named preference
2415 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2417 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2419 public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
2422 * A string value used by the named preference
2423 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2425 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2427 public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
2430 * A string value used by the named preference
2431 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2433 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2435 public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
2438 * A string value used by the named preference
2439 * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2441 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2443 public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
2446 * A named preference thet controls whether all dirty editors are
2447 * automatically saved before a refactoring is executed.
2449 * Value is of type <code>Boolean</code>.
2452 public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
2455 * A named preference that controls if the Java Browsing views are linked to
2456 * the active editor.
2458 * Value is of type <code>Boolean</code>.
2461 * @see #LINK_PACKAGES_TO_EDITOR
2463 public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
2466 * A named preference that controls the layout of the Java Browsing views
2467 * vertically. Boolean value.
2469 * Value is of type <code>Boolean</code>. If
2470 * <code>true<code> the views are stacked vertical.
2471 * If <code>false</code> they are stacked horizontal.
2474 public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
2477 * A named preference that controls if templates are formatted when applied.
2479 * Value is of type <code>Boolean</code>.
2484 public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
2487 * A named preference that controls whether annotation roll over is used or
2490 * Value is of type <code>Boolean</code>. If
2491 * <code>true<code> the annotation ruler column
2492 * uses a roll over to display multiple annotations
2497 public static final String EDITOR_ANNOTATION_ROLL_OVER = "editor_annotation_roll_over"; //$NON-NLS-1$
2500 * A named preference that controls the key modifier mask for browser like
2501 * links. The value is only used if the value of
2502 * <code>EDITOR_BROWSER_LIKE_LINKS</code> cannot be resolved to valid SWT
2505 * Value is of type <code>String</code>.
2508 * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2511 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2514 * A named preference that defines the key for the hover modifier state
2515 * masks. The value is only used if the value of
2516 * <code>EDITOR_TEXT_HOVER_MODIFIERS</code> cannot be resolved to valid
2517 * SWT modifier bits.
2520 * @see #EDITOR_TEXT_HOVER_MODIFIERS
2523 public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
2526 * A named preference that controls whether folding is enabled in the Java
2529 * Value is of type <code>Boolean</code>.
2534 public static final String EDITOR_FOLDING_ENABLED = "editor_folding_enabled"; //$NON-NLS-1$
2537 * A named preference that stores the configured folding provider.
2539 * Value is of type <code>String</code>.
2544 public static final String EDITOR_FOLDING_PROVIDER = "editor_folding_provider"; //$NON-NLS-1$
2547 * A named preference that stores the value for Javadoc folding for the
2548 * default folding provider.
2550 * Value is of type <code>Boolean</code>.
2555 public static final String EDITOR_FOLDING_JAVADOC = "editor_folding_default_javadoc"; //$NON-NLS-1$
2558 * A named preference that stores the value for inner type folding for the
2559 * default folding provider.
2561 * Value is of type <code>Boolean</code>.
2566 public static final String EDITOR_FOLDING_INNERTYPES = "editor_folding_default_innertypes"; //$NON-NLS-1$
2569 * A named preference that stores the value for method folding for the
2570 * default folding provider.
2572 * Value is of type <code>Boolean</code>.
2577 public static final String EDITOR_FOLDING_METHODS = "editor_folding_default_methods"; //$NON-NLS-1$
2580 * A named preference that stores the value for imports folding for the
2581 * default folding provider.
2583 * Value is of type <code>Boolean</code>.
2588 // public static final String EDITOR_FOLDING_IMPORTS =
2589 // "editor_folding_default_imports"; //$NON-NLS-1$
2591 * A named preference that stores the value for header comment folding for
2592 * the default folding provider.
2594 * Value is of type <code>Boolean</code>.
2599 public static final String EDITOR_FOLDING_HEADERS = "editor_folding_default_headers"; //$NON-NLS-1$
2601 public static void initializeDefaultValues(IPreferenceStore store) {
2602 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
2604 // JavaBasePreferencePage
2605 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
2606 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR,
2609 .setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR,
2611 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY,
2612 PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
2613 store.setDefault(PreferenceConstants.DOUBLE_CLICK,
2614 PreferenceConstants.DOUBLE_CLICK_EXPANDS);
2615 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS,
2616 PreferenceConstants.UPDATE_WHILE_EDITING);
2618 // AppearancePreferencePage
2619 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES,
2621 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE,
2623 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
2624 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR,
2626 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
2628 PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW,
2632 PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER,
2635 // ImportOrganizePreferencePage
2636 // store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER,
2637 // "php;phpx;org;com"); //$NON-NLS-1$
2638 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
2639 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
2641 // ClasspathVariablesPreferencePage
2642 // CodeFormatterPreferencePage
2643 // CompilerPreferencePage
2644 // no initialization needed
2646 // RefactoringPreferencePage
2648 PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD,
2649 PreferenceConstants.REFACTOR_ERROR_SEVERITY);
2650 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
2651 store.setDefault("RefactoringUI", "dialog");
2653 // TemplatePreferencePage
2654 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
2656 // CodeGenerationPreferencePage
2657 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX,
2659 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX,
2661 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX,
2662 "fg, f, _$, _, m_"); //$NON-NLS-1$
2663 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
2665 store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS, false);
2666 store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true);
2667 store.setDefault(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$
2668 store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, true);
2669 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS,
2671 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
2673 // MembersOrderPreferencePage
2674 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER,
2675 "T,SF,SI,SM,I,F,C,M"); //$NON-NLS-1$
2676 store.setDefault(PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER,
2677 "B,V,R,D"); //$NON-NLS-1$
2679 PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER,
2681 // must add here to guarantee that it is the first in the listener list
2682 store.addPropertyChangeListener(PHPeclipsePlugin.getDefault()
2683 .getMemberOrderPreferenceCache());
2685 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
2686 PreferenceConverter.setDefault(store,
2687 PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, new RGB(
2690 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
2691 PreferenceConverter.setDefault(store,
2692 PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225,
2695 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
2696 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
2697 PreferenceConverter.setDefault(store,
2698 PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176,
2701 PreferenceConverter.setDefault(store,
2702 PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176,
2705 // store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION,
2707 // PreferenceConverter.setDefault(store,
2708 // PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0,
2710 // store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER,
2713 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION,
2715 // PreferenceConverter.setDefault(store,
2716 // PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244,
2718 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER,
2721 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
2722 // PreferenceConverter.setDefault(store,
2723 // PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128,
2725 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER,
2728 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION,
2730 // PreferenceConverter.setDefault(store,
2731 // PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34,
2733 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER,
2736 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION,
2738 // PreferenceConverter.setDefault(store,
2739 // PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new
2740 // RGB(192, 192, 192));
2741 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER,
2744 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION,
2746 // PreferenceConverter.setDefault(store,
2747 // PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0,
2749 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER,
2753 .setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION,
2756 PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true);
2758 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS,
2761 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
2763 store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false);
2764 PreferenceConverter.setDefault(store,
2765 PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0,
2768 // WorkbenchChainedTextFontFieldEditor.startPropagate(store,
2769 // JFaceResources.TEXT_FONT);
2771 PreferenceConverter.setDefault(store,
2772 PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0,
2774 PreferenceConverter.setDefault(store,
2775 PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
2777 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR,
2780 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR,
2783 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
2784 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
2786 PreferenceConverter.setDefault(store,
2787 PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(
2789 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD,
2792 PreferenceConverter.setDefault(store,
2793 PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(
2795 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD,
2798 PreferenceConverter.setDefault(store,
2799 PreferenceConstants.EDITOR_PHP_TAG_COLOR, new RGB(255, 0, 128));
2800 store.setDefault(PreferenceConstants.EDITOR_PHP_TAG_BOLD, true);
2802 PreferenceConverter.setDefault(store,
2803 PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0,
2805 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
2807 PreferenceConverter.setDefault(store,
2808 PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127,
2810 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD,
2813 PreferenceConverter.setDefault(store,
2814 PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127,
2816 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
2818 PreferenceConverter.setDefault(store,
2819 PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_COLOR, new RGB(
2821 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_BOLD,
2824 PreferenceConverter.setDefault(store,
2825 PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0,
2827 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
2829 PreferenceConverter.setDefault(store,
2830 PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
2831 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
2833 PreferenceConverter.setDefault(store,
2834 PreferenceConstants.EDITOR_STRING_COLOR_DQ,
2835 PHPColorProvider.STRING_DQ);
2836 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_DQ, false);
2838 PreferenceConverter.setDefault(store,
2839 PreferenceConstants.EDITOR_STRING_COLOR_SQ,
2840 PHPColorProvider.STRING_SQ);
2841 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_SQ, true);
2845 PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(
2847 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
2849 PreferenceConverter.setDefault(store,
2850 PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127,
2852 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
2854 PreferenceConverter.setDefault(store,
2855 PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127,
2857 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
2859 PreferenceConverter.setDefault(store,
2860 PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63,
2862 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
2864 PreferenceConverter.setDefault(store,
2865 PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63,
2868 .setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD,
2871 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
2872 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY,
2875 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
2876 PreferenceConverter.setDefault(store,
2877 PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(
2879 PreferenceConverter.setDefault(store,
2880 PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0,
2882 PreferenceConverter.setDefault(store,
2883 PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(
2885 PreferenceConverter.setDefault(store,
2886 PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(
2888 PreferenceConverter.setDefault(store,
2889 PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(
2891 PreferenceConverter.setDefault(store,
2892 PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(
2895 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA,
2896 "$>"); //$NON-NLS-1$
2898 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC,
2901 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML,
2902 "<&#"); //$NON-NLS-1$
2903 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS,
2906 .setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY,
2908 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
2909 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
2911 .setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION,
2913 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES,
2915 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS,
2917 store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION,
2920 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
2921 store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
2922 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
2923 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_DQ_PHP, true);
2924 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_SQ_PHP, true);
2925 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
2926 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
2927 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
2928 store.setDefault(PreferenceConstants.EDITOR_WRAP_WORDS, false);
2929 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_DQ, true);
2930 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_DQ, false);
2931 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_SQ, true);
2932 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_SQ, false);
2933 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
2934 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, false);
2935 store.setDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE,
2938 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
2939 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
2941 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER,
2942 // JavaPlugin.ID_BESTMATCH_HOVER);
2943 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER,
2944 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2945 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER,
2946 // JavaPlugin.ID_SOURCE_HOVER);
2947 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER,
2948 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2949 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER,
2950 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2951 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER,
2952 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2953 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER,
2954 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2955 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER,
2956 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2958 int modifier = SWT.CTRL;
2959 if (Platform.getOS().equals(Platform.OS_MACOSX))
2960 modifier = SWT.COMMAND;
2961 String ctrl = Action.findModifierString(modifier);
2964 PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS,
2965 "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$
2968 PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS,
2969 "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + modifier); //$NON-NLS-1$
2970 store.setDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE,
2973 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true);
2975 PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER,
2979 PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK,
2983 store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true);
2984 store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true);
2985 // store.setDefault(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES,
2987 // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES,
2989 // store.setDefault(PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES,
2991 // store.setDefault(PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES,
2993 // store.setDefault(PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES,
2995 // store.setDefault(PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES,
2997 // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS,
2999 // store.setDefault(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, true);
3002 store.setDefault(PreferenceConstants.SPELLING_CHECK_SPELLING, false);
3003 store.setDefault(PreferenceConstants.SPELLING_LOCALE, SpellCheckEngine
3004 .getDefaultLocale().toString());
3005 store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS, true);
3006 store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED, true);
3007 store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE, true);
3008 store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER, true);
3009 store.setDefault(PreferenceConstants.SPELLING_IGNORE_URLS, true);
3010 store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$
3011 store.setDefault(PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20);
3012 store.setDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST,
3016 store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
3017 store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER,
3018 "net.sourceforge.phpdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
3019 store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, true);
3020 store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, true);
3021 store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false);
3022 // store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, false);
3023 store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS, true);
3025 store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE, true);
3026 store.setDefault(PreferenceConstants.EDITOR_P_RTRIM_ON_SAVE, false);
3027 // do more complicated stuff
3028 // NewJavaProjectPreferencePage.initDefaults(store);
3032 * Returns the JDT-UI preference store.
3034 * @return the JDT-UI preference store
3036 public static IPreferenceStore getPreferenceStore() {
3037 return PHPeclipsePlugin.getDefault().getPreferenceStore();
3041 // * Encodes a JRE library to be used in the named preference
3042 // <code>NEWPROJECT_JRELIBRARY_LIST</code>.
3044 // * @param description a string value describing the JRE library. The
3045 // description is used
3046 // * to indentify the JDR library in the UI
3047 // * @param entries an array of classpath entries to be encoded
3049 // * @return the encoded string.
3051 // public static String encodeJRELibrary(String description,
3052 // IClasspathEntry[] entries) {
3053 // return NewJavaProjectPreferencePage.encodeJRELibrary(description,
3058 // * Decodes an encoded JRE library and returns its description string.
3060 // * @return the description of an encoded JRE library
3062 // * @see #encodeJRELibrary(String, IClasspathEntry[])
3064 // public static String decodeJRELibraryDescription(String encodedLibrary) {
3066 // NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
3070 // * Decodes an encoded JRE library and returns its classpath entries.
3072 // * @return the array of classpath entries of an encoded JRE library.
3074 // * @see #encodeJRELibrary(String, IClasspathEntry[])
3076 // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String
3077 // encodedLibrary) {
3079 // NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
3083 // * Returns the current configuration for the JRE to be used as default in
3084 // new Java projects.
3085 // * This is a convenience method to access the named preference
3086 // <code>NEWPROJECT_JRELIBRARY_LIST
3087 // * </code> with the index defined by <code>
3088 // NEWPROJECT_JRELIBRARY_INDEX</code>.
3090 // * @return the current default set of classpath entries
3092 // * @see #NEWPROJECT_JRELIBRARY_LIST
3093 // * @see #NEWPROJECT_JRELIBRARY_INDEX
3095 // public static IClasspathEntry[] getDefaultJRELibrary() {
3096 // return NewJavaProjectPreferencePage.getDefaultJRELibrary();