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.phpeclipse.IPreferenceConstants;
15 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
17 import org.eclipse.jface.action.Action;
18 import org.eclipse.jface.preference.IPreferenceStore;
19 import org.eclipse.jface.preference.PreferenceConverter;
20 import org.eclipse.swt.SWT;
21 import org.eclipse.swt.graphics.Color;
22 import org.eclipse.swt.graphics.RGB;
23 import org.eclipse.swt.widgets.Display;
24 import org.eclipse.ui.texteditor.AbstractTextEditor;
26 //import org.phpeclipse.phpdt.internal.ui.JavaPlugin;
27 //import org.phpeclipse.phpdt.internal.ui.preferences.NewJavaProjectPreferencePage;
30 * Preference constants used in the JDT-UI preference store. Clients should only read the
31 * JDT-UI preference store using these values. Clients are not allowed to modify the
32 * preference store programmatically.
36 public class PreferenceConstants {
38 private PreferenceConstants() {
42 * A named preference that controls return type rendering of methods in the UI.
44 * Value is of type <code>Boolean</code>: if <code>true</code> return types
48 public static final String APPEARANCE_METHOD_RETURNTYPE = "net.sourceforge.phpdt.ui.methodreturntype"; //$NON-NLS-1$
51 * A named preference that controls if override indicators are rendered in the UI.
53 * Value is of type <code>Boolean</code>: if <code>true</code> override
54 * indicators are rendered
57 public static final String APPEARANCE_OVERRIDE_INDICATOR = "net.sourceforge.phpdt.ui.overrideindicator"; //$NON-NLS-1$
60 * A named preference that defines the pattern used for package name compression.
62 * Value is of type <code>String</code>. For example foe the given package name 'org.eclipse.jdt' pattern
63 * '.' will compress it to '..jdt', '1~' to 'o~.e~.jdt'.
66 public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW = "PackagesView.pkgNamePatternForPackagesView"; //$NON-NLS-1$
69 * A named preference that controls if package name compression is turned on or off.
71 * Value is of type <code>Boolean</code>.
74 * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
76 public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "net.sourceforge.phpdt.ui.compresspackagenames"; //$NON-NLS-1$
79 * A named preference that controls if empty inner packages are folded in
80 * the hierarchical mode of the package explorer.
82 * Value is of type <code>Boolean</code>: if <code>true</code> empty
83 * inner packages are folded.
87 public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "net.sourceforge.phpdt.ui.flatPackagesInPackageExplorer"; //$NON-NLS-1$
90 * A named preference that defines how member elements are ordered by the
91 * Java views using the <code>JavaElementSorter</code>.
93 * Value is of type <code>String</code>: A comma separated list of the
94 * following entries. Each entry must be in the list, no duplication. List
95 * order defines the sort order.
97 * <li><b>T</b>: Types</li>
98 * <li><b>C</b>: Constructors</li>
99 * <li><b>I</b>: Initializers</li>
100 * <li><b>M</b>: Methods</li>
101 * <li><b>F</b>: Fields</li>
102 * <li><b>SI</b>: Static Initializers</li>
103 * <li><b>SM</b>: Static Methods</li>
104 * <li><b>SF</b>: Static Fields</li>
109 public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$
112 * A named preference that controls if prefix removal during setter/getter generation is turned on or off.
114 * Value is of type <code>Boolean</code>.
117 public static final String CODEGEN_USE_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.enable"; //$NON-NLS-1$
120 * A named preference that holds a list of prefixes to be removed from a local variable to compute setter
123 * Value is of type <code>String</code>: comma separated list of prefixed
126 * @see #CODEGEN_USE_GETTERSETTER_PREFIX
128 public static final String CODEGEN_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.list"; //$NON-NLS-1$
131 * A named preference that controls if suffix removal during setter/getter generation is turned on or off.
133 * Value is of type <code>Boolean</code>.
136 public static final String CODEGEN_USE_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.enable"; //$NON-NLS-1$
139 * A named preference that holds a list of suffixes to be removed from a local variable to compute setter
142 * Value is of type <code>String</code>: comma separated list of suffixes
145 * @see #CODEGEN_USE_GETTERSETTER_SUFFIX
147 public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
150 * A name preference that controls if a JavaDoc stub gets added to newly created types and methods.
152 * Value is of type <code>Boolean</code>.
155 public static final String CODEGEN__JAVADOC_STUBS = "net.sourceforge.phpdt.ui.phpdoc"; //$NON-NLS-1$
158 * A named preference that controls if a non-phpdoc comment gets added to methods generated via the
159 * "Override Methods" operation.
161 * Value is of type <code>Boolean</code>.
164 public static final String CODEGEN__NON_JAVADOC_COMMENTS = "net.sourceforge.phpdt.ui.seecomments"; //$NON-NLS-1$
167 * A named preference that controls if a file comment gets added to newly created files.
169 * Value is of type <code>Boolean</code>.
172 public static final String CODEGEN__FILE_COMMENTS = "net.sourceforge.phpdt.ui.filecomments"; //$NON-NLS-1$
175 * A named preference that holds a list of comma separated package names. The list specifies the import order used by
176 * the "Organize Imports" opeation.
178 * Value is of type <code>String</code>: semicolon separated list of package
182 public static final String ORGIMPORTS_IMPORTORDER = "net.sourceforge.phpdt.ui.importorder"; //$NON-NLS-1$
185 * A named preference that specifies the number of imports added before a star-import declaration is used.
187 * Value is of type <code>Int</code>: positive value specifing the number of non star-import is used
190 public static final String ORGIMPORTS_ONDEMANDTHRESHOLD = "net.sourceforge.phpdt.ui.ondemandthreshold"; //$NON-NLS-1$
193 * A named preferences that controls if types that start with a lower case letters get added by the
194 * "Organize Import" operation.
196 * Value is of type <code>Boolean</code>.
199 public static final String ORGIMPORTS_IGNORELOWERCASE = "net.sourceforge.phpdt.ui.ignorelowercasenames"; //$NON-NLS-1$
202 * A named preference that speficies whether children of a compilation unit are shown in the package explorer.
204 * Value is of type <code>Boolean</code>.
207 public static final String SHOW_CU_CHILDREN = "net.sourceforge.phpdt.ui.packages.cuchildren"; //$NON-NLS-1$
210 * A named preference that controls whether the package explorer's selection is linked to the active editor.
212 * Value is of type <code>Boolean</code>.
215 public static final String LINK_PACKAGES_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktoeditor"; //$NON-NLS-1$
218 * A named preference that controls whether the hierarchy view's selection is linked to the active editor.
220 * Value is of type <code>Boolean</code>.
223 public static final String LINK_TYPEHIERARCHY_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
226 * A named preference that controls whether the browsing view's selection is
227 * linked to the active editor.
229 * Value is of type <code>Boolean</code>.
233 public static final String LINK_BROWSING_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
236 * A named preference that controls whether new projects are generated using source and output folder.
238 * Value is of type <code>Boolean</code>. if <code>true</code> new projects are created with a source and
239 * output folder. If <code>false</code> source and output folder equals to the project.
242 public static final String SRCBIN_FOLDERS_IN_NEWPROJ = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
245 * A named preference that specifies the source folder name used when creating a new Java project. Value is inactive
246 * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
248 * Value is of type <code>String</code>.
251 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
253 public static final String SRCBIN_SRCNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
256 * A named preference that specifies the output folder name used when creating a new Java project. Value is inactive
257 * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
259 * Value is of type <code>String</code>.
262 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
264 public static final String SRCBIN_BINNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
267 * A named preference that holds a list of possible JRE libraries used by the New Java Project wizard. An library
268 * consists of a description and an arbitrary number of <code>IClasspathEntry</code>s, that will represent the
269 * JRE on the new project's classpath.
271 * Value is of type <code>String</code>: a semicolon separated list of encoded JRE libraries.
272 * <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines the currently used library. Clients
273 * should use the method <code>encodeJRELibrary</code> to encode a JRE library into a string
274 * and the methods <code>decodeJRELibraryDescription(String)</code> and <code>
275 * decodeJRELibraryClasspathEntries(String)</code> to decode the description and the array
276 * of classpath entries from an encoded string.
279 * @see #NEWPROJECT_JRELIBRARY_INDEX
280 * @see #encodeJRELibrary(String, IClasspathEntry[])
281 * @see #decodeJRELibraryDescription(String)
282 * @see #decodeJRELibraryClasspathEntries(String)
284 public static final String NEWPROJECT_JRELIBRARY_LIST = "net.sourceforge.phpdt.ui.wizards.jre.list"; //$NON-NLS-1$
287 * A named preferences that specifies the current active JRE library.
289 * Value is of type <code>Int</code>: an index into the list of possible JRE libraries.
292 * @see #NEWPROJECT_JRELIBRARY_LIST
294 public static final String NEWPROJECT_JRELIBRARY_INDEX = "net.sourceforge.phpdt.ui.wizards.jre.index"; //$NON-NLS-1$
297 * A named preference that controls if a new type hierarchy gets opened in a
298 * new type hierarchy perspective or inside the type hierarchy view part.
300 * Value is of type <code>String</code>: possible values are <code>
301 * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code> or <code>
302 * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
305 * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
306 * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
308 public static final String OPEN_TYPE_HIERARCHY = "net.sourceforge.phpdt.ui.openTypeHierarchy"; //$NON-NLS-1$
311 * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
313 * @see #OPEN_TYPE_HIERARCHY
315 public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$
318 * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
320 * @see #OPEN_TYPE_HIERARCHY
322 public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$
325 * A named preference that controls the behaviour when double clicking on a container in the packages view.
327 * Value is of type <code>String</code>: possible values are <code>
328 * DOUBLE_CLICK_GOES_INTO</code> or <code>
329 * DOUBLE_CLICK_EXPANDS</code>.
332 * @see #DOUBLE_CLICK_EXPANDS
333 * @see #DOUBLE_CLICK_GOES_INTO
335 public static final String DOUBLE_CLICK = "packageview.doubleclick"; //$NON-NLS-1$
338 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
342 public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$
345 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
349 public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$
352 * A named preference that controls whether Java views update their presentation while editing or when saving the
353 * content of an editor.
355 * Value is of type <code>String</code>: possible values are <code>
356 * UPDATE_ON_SAVE</code> or <code>
357 * UPDATE_WHILE_EDITING</code>.
360 * @see #UPDATE_ON_SAVE
361 * @see #UPDATE_WHILE_EDITING
363 public static final String UPDATE_JAVA_VIEWS = "JavaUI.update"; //$NON-NLS-1$
366 * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
368 * @see #UPDATE_JAVA_VIEWS
370 public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$
373 * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
375 * @see #UPDATE_JAVA_VIEWS
377 public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$
380 * A named preference that holds the path of the Javadoc command used by the Javadoc creation wizard.
382 * Value is of type <code>String</code>.
385 public static final String JAVADOC_COMMAND = "command"; //$NON-NLS-1$
387 * A named preference that defines the key for the hover modifiers.
392 public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$
394 * The id of the best match hover contributed for extension point
395 * <code>javaEditorTextHovers</code>.
399 public static String ID_BESTMATCH_HOVER= "net.sourceforge.phpdt.ui.BestMatchHover"; //$NON-NLS-1$
402 * The id of the source code hover contributed for extension point
403 * <code>javaEditorTextHovers</code>.
407 public static String ID_SOURCE_HOVER= "net.sourceforge.phpdt.ui.JavaSourceHover"; //$NON-NLS-1$
410 * The id of the problem hover contributed for extension point
411 * <code>javaEditorTextHovers</code>.
415 public static String ID_PROBLEM_HOVER = "net.sourceforge.phpdt.ui.ProblemHover"; //$NON-NLS-1$
418 * A named preference that controls whether bracket matching highlighting is turned on or off.
420 * Value is of type <code>Boolean</code>.
423 public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
426 * A named preference that holds the color used to highlight matching brackets.
428 * Value is of type <code>String</code>. A RGB color value encoded as a string
429 * using class <code>PreferenceConverter</code>
432 * @see org.eclipse.jface.resource.StringConverter
433 * @see org.eclipse.jface.preference.PreferenceConverter
435 public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
438 * A named preference that controls whether the current line highlighting is turned on or off.
440 * Value is of type <code>Boolean</code>.
443 public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
446 * A named preference that holds the color used to highlight the current line.
448 * Value is of type <code>String</code>. A RGB color value encoded as a string
449 * using class <code>PreferenceConverter</code>
452 * @see org.eclipse.jface.resource.StringConverter
453 * @see org.eclipse.jface.preference.PreferenceConverter
455 public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
458 * A named preference that controls whether the print margin is turned on or off.
460 * Value is of type <code>Boolean</code>.
463 public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
466 * A named preference that holds the color used to render the print margin.
468 * Value is of type <code>String</code>. A RGB color value encoded as a string
469 * using class <code>PreferenceConverter</code>
472 * @see org.eclipse.jface.resource.StringConverter
473 * @see org.eclipse.jface.preference.PreferenceConverter
475 public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
478 * Print margin column. Int value.
480 public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
483 * A named preference that holds the color used for the find/replace scope.
485 * Value is of type <code>String</code>. A RGB color value encoded as a string
486 * using class <code>PreferenceConverter</code>
489 * @see org.eclipse.jface.resource.StringConverter
490 * @see org.eclipse.jface.preference.PreferenceConverter
492 public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
495 * A named preference that specifies if the editor uses spaces for tabs.
497 * Value is of type <code>Boolean</code>. If <code>true</code>spaces instead of tabs are used
498 * in the editor. If <code>false</code> the editor inserts a tab character when pressing the tab
502 public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
505 * A named preference that holds the number of spaces used per tab in the editor.
507 * Value is of type <code>Int</code>: positive int value specifying the number of
511 public final static String EDITOR_TAB_WIDTH = "net.sourceforge.phpdt.ui.editor.tab.width"; //$NON-NLS-1$
514 * A named preference that controls whether the outline view selection
515 * should stay in sync with with the element at the current cursor position.
517 * Value is of type <code>Boolean</code>.
521 public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
524 * A named preference that controls if correction indicators are shown in the UI.
526 * Value is of type <code>Boolean</code>.
529 public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
532 * A named preference that controls whether the editor shows problem indicators in text (squiggly lines).
534 * Value is of type <code>Boolean</code>.
537 // public final static String EDITOR_PROBLEM_INDICATION = "problemIndication"; //$NON-NLS-1$
540 * A named preference that holds the color used to render problem indicators.
542 * Value is of type <code>String</code>. A RGB color value encoded as a string
543 * using class <code>PreferenceConverter</code>
546 * @see #EDITOR_PROBLEM_INDICATION
547 * @see org.eclipse.jface.resource.StringConverter
548 * @see org.eclipse.jface.preference.PreferenceConverter
550 // public final static String EDITOR_PROBLEM_INDICATION_COLOR = "problemIndicationColor"; //$NON-NLS-1$
552 /**PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR;
553 * A named preference that controls whether the editor shows warning indicators in text (squiggly lines).
555 * Value is of type <code>Boolean</code>.
558 // public final static String EDITOR_WARNING_INDICATION = "warningIndication"; //$NON-NLS-1$
561 * A named preference that holds the color used to render warning indicators.
563 * Value is of type <code>String</code>. A RGB color value encoded as a string
564 * using class <code>PreferenceConverter</code>
567 * @see #EDITOR_WARNING_INDICATION
568 * @see org.eclipse.jface.resource.StringConverter
569 * @see org.eclipse.jface.preference.PreferenceConverter
571 // public final static String EDITOR_WARNING_INDICATION_COLOR = "warningIndicationColor"; //$NON-NLS-1$
574 * A named preference that controls whether the editor shows task indicators in text (squiggly lines).
576 * Value is of type <code>Boolean</code>.
579 public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
582 * A named preference that holds the color used to render task indicators.
584 * Value is of type <code>String</code>. A RGB color value encoded as a string
585 * using class <code>PreferenceConverter</code>
588 * @see #EDITOR_TASK_INDICATION
589 * @see org.eclipse.jface.resource.StringConverter
590 * @see org.eclipse.jface.preference.PreferenceConverter
592 public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
595 * A named preference that controls whether the editor shows bookmark
596 * indicators in text (squiggly lines).
598 * Value is of type <code>Boolean</code>.
602 public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
605 * A named preference that holds the color used to render bookmark indicators.
607 * Value is of type <code>String</code>. A RGB color value encoded as a string
608 * using class <code>PreferenceConverter</code>
611 * @see #EDITOR_BOOKMARK_INDICATION
612 * @see org.eclipse.jface.resource.StringConverter
613 * @see org.eclipse.jface.preference.PreferenceConverter
616 public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
619 * A named preference that controls whether the editor shows search
620 * indicators in text (squiggly lines).
622 * Value is of type <code>Boolean</code>.
626 public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
629 * A named preference that holds the color used to render search indicators.
631 * Value is of type <code>String</code>. A RGB color value encoded as a string
632 * using class <code>PreferenceConverter</code>
635 * @see #EDITOR_SEARCH_RESULT_INDICATION
636 * @see org.eclipse.jface.resource.StringConverter
637 * @see org.eclipse.jface.preference.PreferenceConverter
640 public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
643 * A named preference that controls whether the editor shows unknown
644 * indicators in text (squiggly lines).
646 * Value is of type <code>Boolean</code>.
650 public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
653 * A named preference that holds the color used to render unknown
656 * Value is of type <code>String</code>. A RGB color value encoded as a string
657 * using class <code>PreferenceConverter</code>
660 * @see #EDITOR_UNKNOWN_INDICATION
661 * @see org.eclipse.jface.resource.StringConverter
662 * @see org.eclipse.jface.preference.PreferenceConverter
665 public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
668 * A named preference that controls whether the overview ruler shows error
671 * Value is of type <code>Boolean</code>.
675 public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
678 * A named preference that controls whether the overview ruler shows warning
681 * Value is of type <code>Boolean</code>.
685 public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
688 * A named preference that controls whether the overview ruler shows task
691 * Value is of type <code>Boolean</code>.
695 public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
698 * A named preference that controls whether the overview ruler shows
699 * bookmark indicators.
701 * Value is of type <code>Boolean</code>.
705 public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
708 * A named preference that controls whether the overview ruler shows
709 * search result indicators.
711 * Value is of type <code>Boolean</code>.
715 public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
718 * A named preference that controls whether the overview ruler shows
719 * unknown indicators.
721 * Value is of type <code>Boolean</code>.
725 public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
728 * A named preference that controls whether the 'close strings' feature
729 * is enabled in PHP mode
731 * Value is of type <code>Boolean</code>.
735 public final static String EDITOR_CLOSE_STRINGS_PHP = "closeStringsPHP"; //$NON-NLS-1$
738 * A named preference that controls whether the 'close brackets' feature is
739 * enabled in PHP mode
741 * Value is of type <code>Boolean</code>.
745 public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$
748 * A named preference that controls whether the 'wrap strings' feature is
751 * Value is of type <code>Boolean</code>.
755 public final static String EDITOR_WRAP_STRINGS= "wrapStrings"; //$NON-NLS-1$
758 * A named preference that controls whether the 'escape strings' feature is
761 * Value is of type <code>Boolean</code>.
765 public final static String EDITOR_ESCAPE_STRINGS= "escapeStrings"; //$NON-NLS-1$
768 * A named preference that controls whether the 'close braces' feature is
771 * Value is of type <code>Boolean</code>.
775 public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
778 * A named preference that controls whether the 'close php docs' feature is
781 * Value is of type <code>Boolean</code>.
785 public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
788 * A named preference that controls whether the 'add JavaDoc tags' feature
791 * Value is of type <code>Boolean</code>.
795 public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
798 * A named preference that controls whether the 'format Javadoc tags'
799 * feature is enabled.
801 * Value is of type <code>Boolean</code>.
805 public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$
808 * A named preference that controls whether the 'smart paste' feature is
811 * Value is of type <code>Boolean</code>.
815 public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
818 * A named preference that controls whether the 'close strings' feature
819 * is enabled in HTML mode
821 * Value is of type <code>Boolean</code>.
825 public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$
828 * A named preference that controls whether the 'close brackets' feature is
829 * enabled in HTML mode
831 * Value is of type <code>Boolean</code>.
835 public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$
838 * A named preference that controls whether the 'smart home-end' feature is
841 * Value is of type <code>Boolean</code>.
845 public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
848 * A named preference that controls whether the 'sub-word navigation' feature is
851 * Value is of type <code>Boolean</code>.
855 public final static String EDITOR_SUB_WORD_NAVIGATION= "subWordNavigation"; //$NON-NLS-1$
857 * A named preference that controls if temporary problems are evaluated and shown in the UI.
859 * Value is of type <code>Boolean</code>.
862 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
865 * A named preference that controls if the overview ruler is shown in the UI.
867 * Value is of type <code>Boolean</code>.
870 public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
873 * A named preference that controls if the line number ruler is shown in the UI.
875 * Value is of type <code>Boolean</code>.
878 public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$
881 * A named preference that holds the color used to render line numbers inside the line number ruler.
883 * Value is of type <code>String</code>. A RGB color value encoded as a string
884 * using class <code>PreferenceConverter</code>
887 * @see org.eclipse.jface.resource.StringConverter
888 * @see org.eclipse.jface.preference.PreferenceConverter
889 * @see #EDITOR_LINE_NUMBER_RULER
891 public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$
894 * A named preference that holds the color used to render linked positions inside code templates.
896 * Value is of type <code>String</code>. A RGB color value encoded as a string
897 * using class <code>PreferenceConverter</code>
900 * @see org.eclipse.jface.resource.StringConverter
901 * @see org.eclipse.jface.preference.PreferenceConverter
903 public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
906 * A named preference that holds the color used as the text foreground.
908 * Value is of type <code>String</code>. A RGB color value encoded as a string
909 * using class <code>PreferenceConverter</code>
912 * @see org.eclipse.jface.resource.StringConverter
913 * @see org.eclipse.jface.preference.PreferenceConverter
915 public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
918 * A named preference that describes if the system default foreground color
919 * is used as the text foreground.
921 * Value is of type <code>Boolean</code>.
924 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
927 * A named preference that holds the color used as the text background.
929 * Value is of type <code>String</code>. A RGB color value encoded as a string
930 * using class <code>PreferenceConverter</code>
933 * @see org.eclipse.jface.resource.StringConverter
934 * @see org.eclipse.jface.preference.PreferenceConverter
936 public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
939 * A named preference that describes if the system default background color
940 * is used as the text foreground.
942 * Value is of type <code>Boolean</code>.
945 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
948 * Preference key suffix for bold text style preference keys.
950 public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
953 * A named preference that holds the color used to render multi line comments.
955 * Value is of type <code>String</code>. A RGB color value encoded as a string
956 * using class <code>PreferenceConverter</code>
959 * @see org.eclipse.jface.resource.StringConverter
960 * @see org.eclipse.jface.preference.PreferenceConverter
962 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT;
965 * The symbolic font name for the Java editor text font
966 * (value <code>"org.eclipse.jdt.ui.editors.textfont"</code>).
970 public final static String EDITOR_TEXT_FONT= "net.sourceforge.phpdt.ui.editors.textfont"; //$NON-NLS-1$
973 * A named preference that controls whether multi line comments are rendered in bold.
975 * Value is of type <code>Boolean</code>. If <code>true</code> multi line comments are rendered
976 * in bold. If <code>false</code> the are rendered using no font style attribute.
979 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT + EDITOR_BOLD_SUFFIX;
982 * A named preference that holds the color used to render single line comments.
984 * Value is of type <code>String</code>. A RGB color value encoded as a string
985 * using class <code>PreferenceConverter</code>
988 * @see org.eclipse.jface.resource.StringConverter
989 * @see org.eclipse.jface.preference.PreferenceConverter
991 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT;
994 * A named preference that controls whether sinle line comments are rendered in bold.
996 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
997 * in bold. If <code>false</code> the are rendered using no font style attribute.
1000 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT + EDITOR_BOLD_SUFFIX;
1003 * A named preference that holds the color used to render php start and stop tags.
1005 * Value is of type <code>String</code>. A RGB color value encoded as a string
1006 * using class <code>PreferenceConverter</code>
1009 * @see org.eclipse.jface.resource.StringConverter
1010 * @see org.eclipse.jface.preference.PreferenceConverter
1012 public final static String EDITOR_JAVA_TAG_COLOR = IPreferenceConstants.PHP_TAG;
1015 * A named preference that controls whether php start and stop tags are rendered in bold.
1017 * Value is of type <code>Boolean</code>.
1020 public final static String EDITOR_JAVA_TAG_BOLD = IPreferenceConstants.PHP_TAG + EDITOR_BOLD_SUFFIX;
1023 * A named preference that holds the color used to render php keywords.
1025 * Value is of type <code>String</code>. A RGB color value encoded as a string
1026 * using class <code>PreferenceConverter</code>
1029 * @see org.eclipse.jface.resource.StringConverter
1030 * @see org.eclipse.jface.preference.PreferenceConverter
1032 public final static String EDITOR_JAVA_KEYWORD_COLOR = IPreferenceConstants.PHP_KEYWORD;
1035 * A named preference that controls whether keywords are rendered in bold.
1037 * Value is of type <code>Boolean</code>.
1040 public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD + EDITOR_BOLD_SUFFIX;
1043 * A named preference that holds the color used to render predefined php
1046 * Value is of type <code>String</code>. A RGB color value encoded as a string
1047 * using class <code>PreferenceConverter</code>
1050 * @see org.eclipse.jface.resource.StringConverter
1051 * @see org.eclipse.jface.preference.PreferenceConverter
1053 public final static String EDITOR_PHP_FUNCTIONNAME_COLOR = IPreferenceConstants.PHP_FUNCTIONNAME;
1056 * A named preference that controls whether function names are rendered in
1059 * Value is of type <code>Boolean</code>.
1062 public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_BOLD_SUFFIX;
1065 * A named preference that holds the color used to render php
1068 * Value is of type <code>String</code>. A RGB color value encoded as a string
1069 * using class <code>PreferenceConverter</code>
1072 * @see org.eclipse.jface.resource.StringConverter
1073 * @see org.eclipse.jface.preference.PreferenceConverter
1075 public final static String EDITOR_PHP_VARIABLE_COLOR = IPreferenceConstants.PHP_VARIABLE;
1078 * A named preference that controls whether variables are rendered in bold.
1080 * Value is of type <code>Boolean</code>.
1083 public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE + EDITOR_BOLD_SUFFIX;
1086 * A named preference that holds the color used to render php constants.
1088 * Value is of type <code>String</code>. A RGB color value encoded as a string
1089 * using class <code>PreferenceConverter</code>
1092 * @see org.eclipse.jface.resource.StringConverter
1093 * @see org.eclipse.jface.preference.PreferenceConverter
1095 public final static String EDITOR_PHP_CONSTANT_COLOR = IPreferenceConstants.PHP_CONSTANT;
1098 * A named preference that controls whether constants are rendered in bold.
1100 * Value is of type <code>Boolean</code>.
1103 public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT + EDITOR_BOLD_SUFFIX;
1106 * A named preference that holds the color used to render php types.
1108 * Value is of type <code>String</code>. A RGB color value encoded as a string
1109 * using class <code>PreferenceConverter</code>
1112 * @see org.eclipse.jface.resource.StringConverter
1113 * @see org.eclipse.jface.preference.PreferenceConverter
1115 public final static String EDITOR_PHP_TYPE_COLOR = IPreferenceConstants.PHP_TYPE;
1118 * A named preference that controls whether types are rendered in bold.
1120 * Value is of type <code>Boolean</code>.
1123 public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE + EDITOR_BOLD_SUFFIX;
1126 * A named preference that holds the color used to render string constants.
1128 * Value is of type <code>String</code>. A RGB color value encoded as a string
1129 * using class <code>PreferenceConverter</code>
1132 * @see org.eclipse.jface.resource.StringConverter
1133 * @see org.eclipse.jface.preference.PreferenceConverter
1135 public final static String EDITOR_STRING_COLOR = IPreferenceConstants.PHP_STRING;
1138 * A named preference that controls whether string constants are rendered in bold.
1140 * Value is of type <code>Boolean</code>.
1143 public final static String EDITOR_STRING_BOLD = IPreferenceConstants.PHP_STRING + EDITOR_BOLD_SUFFIX;
1146 * A named preference that holds the color used to render php default text.
1148 * Value is of type <code>String</code>. A RGB color value encoded as a string
1149 * using class <code>PreferenceConverter</code>
1152 * @see org.eclipse.jface.resource.StringConverter
1153 * @see org.eclipse.jface.preference.PreferenceConverter
1155 public final static String EDITOR_JAVA_DEFAULT_COLOR = IPreferenceConstants.PHP_DEFAULT;
1158 * A named preference that controls whether Java default text is rendered in bold.
1160 * Value is of type <code>Boolean</code>.
1163 public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT + EDITOR_BOLD_SUFFIX;
1166 * A named preference that holds the color used to render task tags.
1168 * Value is of type <code>String</code>. A RGB color value encoded as a string
1169 * using class <code>PreferenceConverter</code>
1172 * @see org.eclipse.jface.resource.StringConverter
1173 * @see org.eclipse.jface.preference.PreferenceConverter
1176 public final static String EDITOR_TASK_TAG_COLOR= IPreferenceConstants.TASK_TAG;
1179 * A named preference that controls whether task tags are rendered in bold.
1181 * Value is of type <code>Boolean</code>.
1185 public final static String EDITOR_TASK_TAG_BOLD= IPreferenceConstants.TASK_TAG + EDITOR_BOLD_SUFFIX;
1188 * A named preference that holds the color used to render phpdoc keywords.
1190 * Value is of type <code>String</code>. A RGB color value encoded as a string
1191 * using class <code>PreferenceConverter</code>
1194 * @see org.eclipse.jface.resource.StringConverter
1195 * @see org.eclipse.jface.preference.PreferenceConverter
1197 public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IPreferenceConstants.PHPDOC_KEYWORD;
1200 * A named preference that controls whether phpdoc keywords are rendered in bold.
1202 * Value is of type <code>Boolean</code>.
1205 public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD + EDITOR_BOLD_SUFFIX;
1208 * A named preference that holds the color used to render phpdoc tags.
1210 * Value is of type <code>String</code>. A RGB color value encoded as a string
1211 * using class <code>PreferenceConverter</code>
1214 * @see org.eclipse.jface.resource.StringConverter
1215 * @see org.eclipse.jface.preference.PreferenceConverter
1217 public final static String EDITOR_JAVADOC_TAG_COLOR = IPreferenceConstants.PHPDOC_TAG;
1220 * A named preference that controls whether phpdoc tags are rendered in bold.
1222 * Value is of type <code>Boolean</code>.
1225 public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG + EDITOR_BOLD_SUFFIX;
1228 * A named preference that holds the color used to render phpdoc links.
1230 * Value is of type <code>String</code>. A RGB color value encoded as a string
1231 * using class <code>PreferenceConverter</code>
1234 * @see org.eclipse.jface.resource.StringConverter
1235 * @see org.eclipse.jface.preference.PreferenceConverter
1237 public final static String EDITOR_JAVADOC_LINKS_COLOR = IPreferenceConstants.PHPDOC_LINK;
1240 * A named preference that controls whether phpdoc links are rendered in bold.
1242 * Value is of type <code>Boolean</code>.
1245 public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK + EDITOR_BOLD_SUFFIX;
1248 * A named preference that holds the color used to render phpdoc default text.
1250 * Value is of type <code>String</code>. A RGB color value encoded as a string
1251 * using class <code>PreferenceConverter</code>
1254 * @see org.eclipse.jface.resource.StringConverter
1255 * @see org.eclipse.jface.preference.PreferenceConverter
1257 public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IPreferenceConstants.PHPDOC_DEFAULT;
1260 * A named preference that controls whether phpdoc default text is rendered in bold.
1262 * Value is of type <code>Boolean</code>.
1265 public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT + EDITOR_BOLD_SUFFIX;
1268 * A named preference that holds the color used for 'linked-mode' underline.
1270 * Value is of type <code>String</code>. A RGB color value encoded as a string
1271 * using class <code>PreferenceConverter</code>
1274 * @see org.eclipse.jface.resource.StringConverter
1275 * @see org.eclipse.jface.preference.PreferenceConverter
1278 public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1281 * A named preference that controls whether hover tooltips in the editor are turned on or off.
1283 * Value is of type <code>Boolean</code>.
1286 public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1289 * A named preference that defines the hover shown when no control key is
1291 * <p>Value is of type <code>String</code>: possible values are <code>
1292 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1293 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a hover
1294 * contributed as <code>phpEditorTextHovers</code>.
1296 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1297 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1301 public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1304 * A named preference that defines the hover shown when the
1305 * <code>CTRL</code> modifier key is pressed.
1306 * <p>Value is of type <code>String</code>: possible values are <code>
1307 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1308 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1309 * hover contributed as <code>phpEditorTextHovers</code>.
1311 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1312 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1316 public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1319 * A named preference that defines the hover shown when the
1320 * <code>SHIFT</code> modifier key is pressed.
1321 * <p>Value is of type <code>String</code>: possible values are <code>
1322 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1323 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1324 * hover contributed as <code>phpEditorTextHovers</code>.
1326 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1327 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1328 * @see JavaUI ID_*_HOVER
1331 public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1334 * A named preference that defines the hover shown when the
1335 * <code>CTRL + ALT</code> modifier keys is pressed.
1336 * <p>Value is of type <code>String</code>: possible values are <code>
1337 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1338 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1339 * hover contributed as <code>phpEditorTextHovers</code>.
1341 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1342 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1343 * @see JavaUI ID_*_HOVER
1346 public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1349 * A named preference that defines the hover shown when the
1350 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1351 * <p>Value is of type <code>String</code>: possible values are <code>
1352 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1353 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1354 * hover contributed as <code>phpEditorTextHovers</code>.
1356 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1357 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1358 * @see JavaUI ID_*_HOVER
1361 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1364 * A named preference that defines the hover shown when the
1365 * <code>CTRL + SHIFT</code> modifier keys is pressed.
1366 * <p>Value is of type <code>String</code>: possible values are <code>
1367 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1368 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1369 * hover contributed as <code>phpEditorTextHovers</code>.
1371 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1372 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1373 * @see JavaUI ID_*_HOVER
1376 public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1379 * A named preference that defines the hover shown when the
1380 * <code>ALT</code> modifier key is pressed.
1381 * <p>Value is of type <code>String</code>: possible values are <code>
1382 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1383 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1384 * hover contributed as <code>phpEditorTextHovers</code>.
1386 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1387 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1388 * @see JavaUI ID_*_HOVER
1391 public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1394 * A string value used by the named preferences for hover configuration to
1395 * descibe that no hover should be shown for the given key modifiers.
1398 public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1401 * A string value used by the named preferences for hover configuration to
1402 * descibe that the default hover should be shown for the given key
1403 * modifiers. The default hover is described by the
1404 * <code>EDITOR_DEFAULT_HOVER</code> property.
1407 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1410 * A named preference that defines the hover named the 'default hover'.
1411 * Value is of type <code>String</code>: possible values are <code>
1412 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or <code> the hover id of a hover
1413 * contributed as <code>phpEditorTextHovers</code>.
1417 public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1420 * A named preference that controls if segmented view (show selected element only) is turned on or off.
1422 * Value is of type <code>Boolean</code>.
1425 public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1427 * A named preference that controls if browser like links are turned on or off.
1429 * Value is of type <code>Boolean</code>.
1434 public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
1437 * A named preference that controls the key modifier for browser like links.
1439 * Value is of type <code>String</code>.
1444 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
1446 * A named preference that controls whether occurrences are marked in the editor.
1448 * Value is of type <code>Boolean</code>.
1453 public static final String EDITOR_MARK_OCCURRENCES= "markOccurrences"; //$NON-NLS-1$
1456 * A named preference that controls whether occurrences are sticky in the editor.
1458 * Value is of type <code>Boolean</code>.
1463 public static final String EDITOR_STICKY_OCCURRENCES= "stickyOccurrences"; //$NON-NLS-1$
1466 * A named preference that controls disabling of the overwrite mode.
1468 * Value is of type <code>Boolean</code>.
1473 public static final String EDITOR_DISABLE_OVERWRITE_MODE= "disable_overwrite_mode"; //$NON-NLS-1$
1476 * A named preference that controls the "smart semicolon" smart typing handler
1478 * Value is of type <code>Boolean</code>.
1483 public static final String EDITOR_SMART_SEMICOLON= "smart_semicolon"; //$NON-NLS-1$
1486 * A named preference that controls the "smart opening brace" smart typing handler
1488 * Value is of type <code>Boolean</code>.
1493 public static final String EDITOR_SMART_OPENING_BRACE= "smart_opening_brace"; //$NON-NLS-1$
1496 * A named preference that controls the smart tab behaviour.
1498 * Value is of type <code>Boolean</code>.
1502 public static final String EDITOR_SMART_TAB= "smart_tab"; //$NON-NLS-1$
1505 * A named preference that controls whether Java comments should be
1508 * Value is of type <code>Boolean</code>.
1513 // public final static String SPELLING_CHECK_SPELLING= ISpellCheckPreferenceKeys.SPELLING_CHECK_SPELLING;
1516 * A named preference that controls whether words containing digits should
1517 * be skipped during spell-checking.
1519 * Value is of type <code>Boolean</code>.
1524 // public final static String SPELLING_IGNORE_DIGITS= ISpellCheckPreferenceKeys.SPELLING_IGNORE_DIGITS;
1527 * A named preference that controls whether mixed case words should be
1528 * skipped during spell-checking.
1530 * Value is of type <code>Boolean</code>.
1535 // public final static String SPELLING_IGNORE_MIXED= ISpellCheckPreferenceKeys.SPELLING_IGNORE_MIXED;
1538 * A named preference that controls whether sentence capitalization should
1539 * be ignored during spell-checking.
1541 * Value is of type <code>Boolean</code>.
1546 // public final static String SPELLING_IGNORE_SENTENCE= ISpellCheckPreferenceKeys.SPELLING_IGNORE_SENTENCE;
1549 * A named preference that controls whether upper case words should be
1550 * skipped during spell-checking.
1552 * Value is of type <code>Boolean</code>.
1557 // public final static String SPELLING_IGNORE_UPPER= ISpellCheckPreferenceKeys.SPELLING_IGNORE_UPPER;
1560 * A named preference that controls whether urls should be ignored during
1563 * Value is of type <code>Boolean</code>.
1568 // public final static String SPELLING_IGNORE_URLS= ISpellCheckPreferenceKeys.SPELLING_IGNORE_URLS;
1571 * A named preference that controls the locale used for spell-checking.
1573 * Value is of type <code>String</code>.
1578 // public final static String SPELLING_LOCALE= ISpellCheckPreferenceKeys.SPELLING_LOCALE;
1581 * A named preference that controls the number of proposals offered during
1584 * Value is of type <code>Integer</code>.
1589 // public final static String SPELLING_PROPOSAL_THRESHOLD= ISpellCheckPreferenceKeys.SPELLING_PROPOSAL_THRESHOLD;
1592 * A named preference that specifies the workspace user dictionary.
1594 * Value is of type <code>Integer</code>.
1599 // public final static String SPELLING_USER_DICTIONARY= ISpellCheckPreferenceKeys.SPELLING_USER_DICTIONARY;
1602 * A named preference that specifies whether spelling dictionaries are available to content assist.
1604 * Value is of type <code>Boolean</code>.
1609 // public final static String SPELLING_ENABLE_CONTENTASSIST= ISpellCheckPreferenceKeys.SPELLING_ENABLE_CONTENTASSIST;
1612 * A named preference that controls whether code snippets are formatted
1613 * in Javadoc comments.
1615 * Value is of type <code>Boolean</code>.
1620 public final static String FORMATTER_COMMENT_FORMATSOURCE= "comment_format_source_code"; //$NON-NLS-1$
1623 * A named preference that controls whether description of Javadoc
1624 * parameters are indented.
1626 * Value is of type <code>Boolean</code>.
1631 public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION= "comment_indent_parameter_description"; //$NON-NLS-1$
1634 * A named preference that controls whether the header comment of
1635 * a Java source file is formatted.
1637 * Value is of type <code>Boolean</code>.
1642 public final static String FORMATTER_COMMENT_FORMATHEADER= "comment_format_header"; //$NON-NLS-1$
1645 * A named preference that controls whether Javadoc root tags
1648 * Value is of type <code>Boolean</code>.
1653 public final static String FORMATTER_COMMENT_INDENTROOTTAGS= "comment_indent_root_tags"; //$NON-NLS-1$
1656 * A named preference that controls whether Javadoc comments
1657 * are formatted by the content formatter.
1659 * Value is of type <code>Boolean</code>.
1664 public final static String FORMATTER_COMMENT_FORMAT= "comment_format_comments"; //$NON-NLS-1$
1667 * A named preference that controls whether a new line is inserted
1668 * after Javadoc root tag parameters.
1670 * Value is of type <code>Boolean</code>.
1675 public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER= "comment_new_line_for_parameter"; //$NON-NLS-1$
1678 * A named preference that controls whether an empty line is inserted before
1679 * the Javadoc root tag block.
1681 * Value is of type <code>Boolean</code>.
1686 public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS= "comment_separate_root_tags"; //$NON-NLS-1$
1689 * A named preference that controls whether blank lines are cleared during formatting
1691 * Value is of type <code>Boolean</code>.
1696 public final static String FORMATTER_COMMENT_CLEARBLANKLINES= "comment_clear_blank_lines"; //$NON-NLS-1$
1699 * A named preference that controls the line length of comments.
1701 * Value is of type <code>Integer</code>. The value must be at least 4 for reasonable formatting.
1706 public final static String FORMATTER_COMMENT_LINELENGTH= "comment_line_length"; //$NON-NLS-1$
1709 * A named preference that controls whether html tags are formatted.
1711 * Value is of type <code>Boolean</code>.
1716 public final static String FORMATTER_COMMENT_FORMATHTML= "comment_format_html"; //$NON-NLS-1$
1719 * A named preference that controls if the Java code assist gets auto activated.
1721 * Value is of type <code>Boolean</code>.
1724 public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
1727 * A name preference that holds the auto activation delay time in milli seconds.
1729 * Value is of type <code>Int</code>.
1732 public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
1735 * A named preference that controls if code assist contains only visible proposals.
1737 * Value is of type <code>Boolean</code>. if <code>true<code> code assist only contains visible members. If
1738 * <code>false</code> all members are included.
1741 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
1744 * A named preference that controls if the Java code assist inserts a
1745 * proposal automatically if only one proposal is available.
1747 * Value is of type <code>Boolean</code>.
1751 public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
1754 * A named preference that controls if the Java code assist adds import
1757 * Value is of type <code>Boolean</code>.
1761 public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
1764 * A named preference that controls if the Java code assist only inserts
1765 * completions. If set to false the proposals can also _replace_ code.
1767 * Value is of type <code>Boolean</code>.
1771 public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
1774 * A named preference that controls whether code assist proposals filtering is case sensitive or not.
1776 * Value is of type <code>Boolean</code>.
1779 public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
1782 * A named preference that defines if code assist proposals are sorted in alphabetical order.
1784 * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical
1785 * order. If <code>false</code> that are unsorted.
1788 public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
1791 * A named preference that controls if argument names are filled in when a method is selected from as list
1792 * of code assist proposal.
1794 * Value is of type <code>Boolean</code>.
1797 public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
1800 * A named preference that controls if method arguments are guessed when a
1801 * method is selected from as list of code assist proposal.
1803 * Value is of type <code>Boolean</code>.
1807 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
1810 * A named preference that holds the characters that auto activate code assist
1813 * Value is of type <code>Sring</code>. All characters that trigger auto code
1814 * assist in PHP code.
1817 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
1820 * A named preference that holds the characters that auto activate code assist
1823 * Value is of type <code>Sring</code>. All characters that trigger auto code
1827 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
1830 * A named preference that holds the characters that auto activate code assist
1833 * Value is of type <code>Sring</code>. All characters that trigger auto code
1837 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
1840 * A named preference that holds the background color used in the code assist selection dialog.
1842 * Value is of type <code>String</code>. A RGB color value encoded as a string
1843 * using class <code>PreferenceConverter</code>
1846 * @see org.eclipse.jface.resource.StringConverter
1847 * @see org.eclipse.jface.preference.PreferenceConverter
1849 public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
1852 * A named preference that holds the foreground color used in the code assist selection dialog.
1854 * Value is of type <code>String</code>. A RGB color value encoded as a string
1855 * using class <code>PreferenceConverter</code>
1858 * @see org.eclipse.jface.resource.StringConverter
1859 * @see org.eclipse.jface.preference.PreferenceConverter
1861 public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
1864 * A named preference that holds the background color used for parameter hints.
1866 * Value is of type <code>String</code>. A RGB color value encoded as a string
1867 * using class <code>PreferenceConverter</code>
1870 * @see org.eclipse.jface.resource.StringConverter
1871 * @see org.eclipse.jface.preference.PreferenceConverter
1873 public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
1876 * A named preference that holds the foreground color used in the code assist selection dialog
1878 * Value is of type <code>String</code>. A RGB color value encoded as a string
1879 * using class <code>PreferenceConverter</code>
1882 * @see org.eclipse.jface.resource.StringConverter
1883 * @see org.eclipse.jface.preference.PreferenceConverter
1885 public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
1888 * A named preference that holds the background color used in the code
1889 * assist selection dialog to mark replaced code.
1891 * Value is of type <code>String</code>. A RGB color value encoded as a string
1892 * using class <code>PreferenceConverter</code>
1895 * @see org.eclipse.jface.resource.StringConverter
1896 * @see org.eclipse.jface.preference.PreferenceConverter
1899 public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
1902 * A named preference that holds the foreground color used in the code
1903 * assist selection dialog to mark replaced code.
1905 * Value is of type <code>String</code>. A RGB color value encoded as a string
1906 * using class <code>PreferenceConverter</code>
1909 * @see org.eclipse.jface.resource.StringConverter
1910 * @see org.eclipse.jface.preference.PreferenceConverter
1913 public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
1916 * A named preference that controls the behaviour of the refactoring wizard for showing the error page.
1918 * Value is of type <code>String</code>. Valid values are:
1919 * <code>REFACTOR_FATAL_SEVERITY</code>,
1920 * <code>REFACTOR_ERROR_SEVERITY</code>,
1921 * <code>REFACTOR_WARNING_SEVERITY</code>
1922 * <code>REFACTOR_INFO_SEVERITY</code>,
1923 * <code>REFACTOR_OK_SEVERITY</code>.
1926 * @see #REFACTOR_FATAL_SEVERITY
1927 * @see #REFACTOR_ERROR_SEVERITY
1928 * @see #REFACTOR_WARNING_SEVERITY
1929 * @see #REFACTOR_INFO_SEVERITY
1930 * @see #REFACTOR_OK_SEVERITY
1932 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
1935 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1937 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1939 public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
1942 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1944 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1946 public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
1949 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1951 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1953 public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
1956 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1958 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1960 public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
1963 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1965 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1967 public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
1970 * A named preference thet controls whether all dirty editors are automatically saved before a refactoring is
1973 * Value is of type <code>Boolean</code>.
1976 public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
1979 * A named preference that controls if the Java Browsing views are linked to the active editor.
1981 * Value is of type <code>Boolean</code>.
1984 * @see #LINK_PACKAGES_TO_EDITOR
1986 public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
1989 * A named preference that controls the layout of the Java Browsing views vertically. Boolean value.
1991 * Value is of type <code>Boolean</code>. If <code>true<code> the views are stacked vertical.
1992 * If <code>false</code> they are stacked horizontal.
1995 public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
1998 * A named preference that controls if templates are formatted when applied.
2000 * Value is of type <code>Boolean</code>.
2005 public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
2008 * A named preference that controls the key modifier mask for browser like links.
2009 * The value is only used if the value of <code>EDITOR_BROWSER_LIKE_LINKS</code>
2010 * cannot be resolved to valid SWT modifier bits.
2012 * Value is of type <code>String</code>.
2015 * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2018 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2021 * A named preference that defines the key for the hover modifier state masks.
2022 * The value is only used if the value of <code>EDITOR_TEXT_HOVER_MODIFIERS</code>
2023 * cannot be resolved to valid SWT modifier bits.
2026 * @see #EDITOR_TEXT_HOVER_MODIFIERS
2029 public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
2032 * A named preference that controls whether folding is enabled in the Java editor.
2034 * Value is of type <code>Boolean</code>.
2039 public static final String EDITOR_FOLDING_ENABLED= "editor_folding_enabled"; //$NON-NLS-1$
2042 * A named preference that stores the configured folding provider.
2044 * Value is of type <code>String</code>.
2049 public static final String EDITOR_FOLDING_PROVIDER= "editor_folding_provider"; //$NON-NLS-1$
2052 * A named preference that stores the value for Javadoc folding for the default folding provider.
2054 * Value is of type <code>Boolean</code>.
2059 public static final String EDITOR_FOLDING_JAVADOC= "editor_folding_default_javadoc"; //$NON-NLS-1$
2062 * A named preference that stores the value for inner type folding for the default folding provider.
2064 * Value is of type <code>Boolean</code>.
2069 public static final String EDITOR_FOLDING_INNERTYPES= "editor_folding_default_innertypes"; //$NON-NLS-1$
2072 * A named preference that stores the value for method folding for the default folding provider.
2074 * Value is of type <code>Boolean</code>.
2079 public static final String EDITOR_FOLDING_METHODS= "editor_folding_default_methods"; //$NON-NLS-1$
2082 * A named preference that stores the value for imports folding for the default folding provider.
2084 * Value is of type <code>Boolean</code>.
2089 public static final String EDITOR_FOLDING_IMPORTS= "editor_folding_default_imports"; //$NON-NLS-1$
2092 public static void initializeDefaultValues(IPreferenceStore store) {
2093 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
2095 // JavaBasePreferencePage
2096 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
2097 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, false);
2098 store.setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR, true);
2099 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
2100 store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
2101 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, PreferenceConstants.UPDATE_WHILE_EDITING);
2103 // AppearancePreferencePage
2104 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false);
2105 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, false);
2106 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
2107 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR, true);
2108 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
2109 store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
2110 store.setDefault(PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, true);
2112 // ImportOrganizePreferencePage
2113 store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, "php;phpx;org;com"); //$NON-NLS-1$
2114 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
2115 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
2117 // ClasspathVariablesPreferencePage
2118 // CodeFormatterPreferencePage
2119 // CompilerPreferencePage
2120 // no initialization needed
2122 // RefactoringPreferencePage
2123 store.setDefault(PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, PreferenceConstants.REFACTOR_ERROR_SEVERITY);
2124 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
2125 store.setDefault("RefactoringUI", "dialog");
2127 // TemplatePreferencePage
2128 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
2130 // CodeGenerationPreferencePage
2131 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX, false);
2132 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX, false);
2133 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX, "fg, f, _$, _, m_"); //$NON-NLS-1$
2134 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
2135 store.setDefault(PreferenceConstants.CODEGEN__JAVADOC_STUBS, true);
2136 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS, false);
2137 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
2139 // MembersOrderPreferencePage
2140 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SI,SF,SM,I,F,C,M"); //$NON-NLS-1$
2141 // must add here to guarantee that it is the first in the listener list
2142 // store.addPropertyChangeListener(PHPeclipsePlugin.getDefault().getMemberOrderPreferenceCache());
2144 // PHPEditorPreferencePage
2146 * Ensure that the display is accessed only in the UI thread.
2147 * Ensure that there are no side effects of switching the thread.
2149 final RGB[] rgbs = new RGB[3];
2150 final Display display = Display.getDefault();
2151 display.syncExec(new Runnable() {
2153 Color c = display.getSystemColor(SWT.COLOR_GRAY);
2154 rgbs[0] = c.getRGB();
2155 c = display.getSystemColor(SWT.COLOR_LIST_FOREGROUND);
2156 rgbs[1] = c.getRGB();
2157 c = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
2158 rgbs[2] = c.getRGB();
2162 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
2163 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, rgbs[0]);
2165 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
2166 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225, 235, 224));
2168 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
2169 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
2170 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176, 180, 185));
2172 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176, 180));
2174 // store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION, true);
2175 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0, 128));
2176 // store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER, true);
2178 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION, true);
2179 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244, 200, 45));
2180 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER, true);
2182 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
2183 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128, 255));
2184 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER, false);
2186 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION, false);
2187 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34, 164, 99));
2188 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER, false);
2190 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION, false);
2191 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new RGB(192, 192, 192));
2192 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER, false);
2194 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION, false);
2195 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0, 0));
2196 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER, false);
2198 store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true);
2199 store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, false);
2201 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true);
2203 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
2205 store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false);
2206 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0, 0, 0));
2208 // WorkbenchChainedTextFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT);
2210 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0, 200, 100));
2211 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
2213 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FOREGROUND_COLOR, rgbs[1]);
2214 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR, true);
2216 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BACKGROUND_COLOR, rgbs[2]);
2217 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR, true);
2219 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
2220 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
2222 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
2223 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false);
2225 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
2226 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false);
2228 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_TAG_COLOR, new RGB(255, 0, 128));
2229 store.setDefault(PreferenceConstants.EDITOR_JAVA_TAG_BOLD, true);
2231 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0, 85));
2232 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
2234 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127, 127, 159));
2235 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD, false);
2237 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127, 159, 191));
2238 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
2240 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0, 85));
2241 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
2243 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
2244 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
2246 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_STRING_COLOR, new RGB(42, 0, 255));
2247 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false);
2249 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(0, 0, 0));
2250 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
2252 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127, 159, 191));
2253 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
2255 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127, 159));
2256 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
2258 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63, 191));
2259 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
2261 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63, 95, 191));
2262 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false);
2264 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
2265 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 500);
2267 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
2268 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(254, 241, 233));
2269 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, 0, 0));
2270 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(254, 241, 233));
2271 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(0, 0, 0));
2272 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(255, 255, 0));
2273 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(255, 0, 0));
2274 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, "$"); //$NON-NLS-1$
2275 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, "@"); //$NON-NLS-1$
2276 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML, "<&#"); //$NON-NLS-1$
2277 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, true);
2278 store.setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false);
2279 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
2280 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
2281 store.setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true);
2282 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, false);
2283 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, true);
2285 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
2286 store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
2287 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
2288 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_PHP, true);
2289 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
2290 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
2291 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
2292 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
2293 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS, false);
2294 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
2295 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, true);
2296 store.setDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE, false);
2298 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
2299 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
2301 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER, JavaPlugin.ID_BESTMATCH_HOVER);
2302 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2303 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER, JavaPlugin.ID_SOURCE_HOVER);
2304 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2305 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2306 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2307 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2308 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2310 String ctrl = Action.findModifierString(SWT.CTRL);
2311 store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS, "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$
2312 store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS, "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + SWT.CTRL); //$NON-NLS-1$
2314 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true);
2315 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER, ctrl);
2316 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK, SWT.CTRL);
2319 store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
2320 store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER, "org.eclipse.jdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
2321 store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, false);
2322 store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, true);
2323 store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false);
2324 store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, true);
2326 // do more complicated stuff
2327 // NewJavaProjectPreferencePage.initDefaults(store);
2331 * Returns the JDT-UI preference store.
2333 * @return the JDT-UI preference store
2335 public static IPreferenceStore getPreferenceStore() {
2336 return PHPeclipsePlugin.getDefault().getPreferenceStore();
2340 // * Encodes a JRE library to be used in the named preference <code>NEWPROJECT_JRELIBRARY_LIST</code>.
2342 // * @param description a string value describing the JRE library. The description is used
2343 // * to indentify the JDR library in the UI
2344 // * @param entries an array of classpath entries to be encoded
2346 // * @return the encoded string.
2348 // public static String encodeJRELibrary(String description, IClasspathEntry[] entries) {
2349 // return NewJavaProjectPreferencePage.encodeJRELibrary(description, entries);
2353 // * Decodes an encoded JRE library and returns its description string.
2355 // * @return the description of an encoded JRE library
2357 // * @see #encodeJRELibrary(String, IClasspathEntry[])
2359 // public static String decodeJRELibraryDescription(String encodedLibrary) {
2360 // return NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
2364 // * Decodes an encoded JRE library and returns its classpath entries.
2366 // * @return the array of classpath entries of an encoded JRE library.
2368 // * @see #encodeJRELibrary(String, IClasspathEntry[])
2370 // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String encodedLibrary) {
2371 // return NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
2375 // * Returns the current configuration for the JRE to be used as default in new Java projects.
2376 // * This is a convenience method to access the named preference <code>NEWPROJECT_JRELIBRARY_LIST
2377 // * </code> with the index defined by <code> NEWPROJECT_JRELIBRARY_INDEX</code>.
2379 // * @return the current default set of classpath entries
2381 // * @see #NEWPROJECT_JRELIBRARY_LIST
2382 // * @see #NEWPROJECT_JRELIBRARY_INDEX
2384 // public static IClasspathEntry[] getDefaultJRELibrary() {
2385 // return NewJavaProjectPreferencePage.getDefaultJRELibrary();