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 net.sourceforge.phpdt.ui.JavaUI;
18 import org.eclipse.jface.action.Action;
19 import org.eclipse.jface.preference.IPreferenceStore;
20 import org.eclipse.jface.preference.PreferenceConverter;
21 import org.eclipse.swt.SWT;
22 import org.eclipse.swt.graphics.Color;
23 import org.eclipse.swt.graphics.RGB;
24 import org.eclipse.swt.widgets.Display;
25 import org.eclipse.ui.texteditor.AbstractTextEditor;
27 //import org.phpeclipse.phpdt.internal.ui.JavaPlugin;
28 //import org.phpeclipse.phpdt.internal.ui.preferences.NewJavaProjectPreferencePage;
31 * Preference constants used in the JDT-UI preference store. Clients should only read the
32 * JDT-UI preference store using these values. Clients are not allowed to modify the
33 * preference store programmatically.
37 public class PreferenceConstants {
39 private PreferenceConstants() {
43 * A named preference that controls return type rendering of methods in the UI.
45 * Value is of type <code>Boolean</code>: if <code>true</code> return types
49 public static final String APPEARANCE_METHOD_RETURNTYPE = "net.sourceforge.phpdt.ui.methodreturntype"; //$NON-NLS-1$
52 * A named preference that controls if override indicators are rendered in the UI.
54 * Value is of type <code>Boolean</code>: if <code>true</code> override
55 * indicators are rendered
58 public static final String APPEARANCE_OVERRIDE_INDICATOR = "net.sourceforge.phpdt.ui.overrideindicator"; //$NON-NLS-1$
61 * A named preference that defines the pattern used for package name compression.
63 * Value is of type <code>String</code>. For example foe the given package name 'org.eclipse.jdt' pattern
64 * '.' will compress it to '..jdt', '1~' to 'o~.e~.jdt'.
67 public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW = "PackagesView.pkgNamePatternForPackagesView"; //$NON-NLS-1$
70 * A named preference that controls if package name compression is turned on or off.
72 * Value is of type <code>Boolean</code>.
75 * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
77 public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "net.sourceforge.phpdt.ui.compresspackagenames"; //$NON-NLS-1$
80 * A named preference that controls if empty inner packages are folded in
81 * the hierarchical mode of the package explorer.
83 * Value is of type <code>Boolean</code>: if <code>true</code> empty
84 * inner packages are folded.
88 public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "net.sourceforge.phpdt.ui.flatPackagesInPackageExplorer"; //$NON-NLS-1$
91 * A named preference that defines how member elements are ordered by the
92 * Java views using the <code>JavaElementSorter</code>.
94 * Value is of type <code>String</code>: A comma separated list of the
95 * following entries. Each entry must be in the list, no duplication. List
96 * order defines the sort order.
98 * <li><b>T</b>: Types</li>
99 * <li><b>C</b>: Constructors</li>
100 * <li><b>I</b>: Initializers</li>
101 * <li><b>M</b>: Methods</li>
102 * <li><b>F</b>: Fields</li>
103 * <li><b>SI</b>: Static Initializers</li>
104 * <li><b>SM</b>: Static Methods</li>
105 * <li><b>SF</b>: Static Fields</li>
110 public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$
113 * A named preference that controls if prefix removal during setter/getter generation is turned on or off.
115 * Value is of type <code>Boolean</code>.
118 public static final String CODEGEN_USE_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.enable"; //$NON-NLS-1$
121 * A named preference that holds a list of prefixes to be removed from a local variable to compute setter
124 * Value is of type <code>String</code>: comma separated list of prefixed
127 * @see #CODEGEN_USE_GETTERSETTER_PREFIX
129 public static final String CODEGEN_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.list"; //$NON-NLS-1$
132 * A named preference that controls if suffix removal during setter/getter generation is turned on or off.
134 * Value is of type <code>Boolean</code>.
137 public static final String CODEGEN_USE_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.enable"; //$NON-NLS-1$
140 * A named preference that holds a list of suffixes to be removed from a local variable to compute setter
143 * Value is of type <code>String</code>: comma separated list of suffixes
146 * @see #CODEGEN_USE_GETTERSETTER_SUFFIX
148 public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
151 * A name preference that controls if a JavaDoc stub gets added to newly created types and methods.
153 * Value is of type <code>Boolean</code>.
156 public static final String CODEGEN__JAVADOC_STUBS = "net.sourceforge.phpdt.ui.phpdoc"; //$NON-NLS-1$
159 * A named preference that controls if a non-phpdoc comment gets added to methods generated via the
160 * "Override Methods" operation.
162 * Value is of type <code>Boolean</code>.
165 public static final String CODEGEN__NON_JAVADOC_COMMENTS = "net.sourceforge.phpdt.ui.seecomments"; //$NON-NLS-1$
168 * A named preference that controls if a file comment gets added to newly created files.
170 * Value is of type <code>Boolean</code>.
173 public static final String CODEGEN__FILE_COMMENTS = "net.sourceforge.phpdt.ui.filecomments"; //$NON-NLS-1$
176 * A named preference that holds a list of comma separated package names. The list specifies the import order used by
177 * the "Organize Imports" opeation.
179 * Value is of type <code>String</code>: semicolon separated list of package
183 public static final String ORGIMPORTS_IMPORTORDER = "net.sourceforge.phpdt.ui.importorder"; //$NON-NLS-1$
186 * A named preference that specifies the number of imports added before a star-import declaration is used.
188 * Value is of type <code>Int</code>: positive value specifing the number of non star-import is used
191 public static final String ORGIMPORTS_ONDEMANDTHRESHOLD = "net.sourceforge.phpdt.ui.ondemandthreshold"; //$NON-NLS-1$
194 * A named preferences that controls if types that start with a lower case letters get added by the
195 * "Organize Import" operation.
197 * Value is of type <code>Boolean</code>.
200 public static final String ORGIMPORTS_IGNORELOWERCASE = "net.sourceforge.phpdt.ui.ignorelowercasenames"; //$NON-NLS-1$
203 * A named preference that speficies whether children of a compilation unit are shown in the package explorer.
205 * Value is of type <code>Boolean</code>.
208 public static final String SHOW_CU_CHILDREN = "net.sourceforge.phpdt.ui.packages.cuchildren"; //$NON-NLS-1$
211 * A named preference that controls whether the package explorer's selection is linked to the active editor.
213 * Value is of type <code>Boolean</code>.
216 public static final String LINK_PACKAGES_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktoeditor"; //$NON-NLS-1$
219 * A named preference that controls whether the hierarchy view's selection is linked to the active editor.
221 * Value is of type <code>Boolean</code>.
224 public static final String LINK_TYPEHIERARCHY_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
227 * A named preference that controls whether the browsing view's selection is
228 * linked to the active editor.
230 * Value is of type <code>Boolean</code>.
234 public static final String LINK_BROWSING_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
237 * A named preference that controls whether new projects are generated using source and output folder.
239 * Value is of type <code>Boolean</code>. if <code>true</code> new projects are created with a source and
240 * output folder. If <code>false</code> source and output folder equals to the project.
243 public static final String SRCBIN_FOLDERS_IN_NEWPROJ = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
246 * A named preference that specifies the source folder name used when creating a new Java project. Value is inactive
247 * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
249 * Value is of type <code>String</code>.
252 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
254 public static final String SRCBIN_SRCNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
257 * A named preference that specifies the output folder name used when creating a new Java project. Value is inactive
258 * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
260 * Value is of type <code>String</code>.
263 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
265 public static final String SRCBIN_BINNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
268 * A named preference that holds a list of possible JRE libraries used by the New Java Project wizard. An library
269 * consists of a description and an arbitrary number of <code>IClasspathEntry</code>s, that will represent the
270 * JRE on the new project's classpath.
272 * Value is of type <code>String</code>: a semicolon separated list of encoded JRE libraries.
273 * <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines the currently used library. Clients
274 * should use the method <code>encodeJRELibrary</code> to encode a JRE library into a string
275 * and the methods <code>decodeJRELibraryDescription(String)</code> and <code>
276 * decodeJRELibraryClasspathEntries(String)</code> to decode the description and the array
277 * of classpath entries from an encoded string.
280 * @see #NEWPROJECT_JRELIBRARY_INDEX
281 * @see #encodeJRELibrary(String, IClasspathEntry[])
282 * @see #decodeJRELibraryDescription(String)
283 * @see #decodeJRELibraryClasspathEntries(String)
285 public static final String NEWPROJECT_JRELIBRARY_LIST = "net.sourceforge.phpdt.ui.wizards.jre.list"; //$NON-NLS-1$
288 * A named preferences that specifies the current active JRE library.
290 * Value is of type <code>Int</code>: an index into the list of possible JRE libraries.
293 * @see #NEWPROJECT_JRELIBRARY_LIST
295 public static final String NEWPROJECT_JRELIBRARY_INDEX = "net.sourceforge.phpdt.ui.wizards.jre.index"; //$NON-NLS-1$
298 * A named preference that controls if a new type hierarchy gets opened in a
299 * new type hierarchy perspective or inside the type hierarchy view part.
301 * Value is of type <code>String</code>: possible values are <code>
302 * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code> or <code>
303 * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
306 * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
307 * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
309 public static final String OPEN_TYPE_HIERARCHY = "net.sourceforge.phpdt.ui.openTypeHierarchy"; //$NON-NLS-1$
312 * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
314 * @see #OPEN_TYPE_HIERARCHY
316 public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$
319 * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
321 * @see #OPEN_TYPE_HIERARCHY
323 public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$
326 * A named preference that controls the behaviour when double clicking on a container in the packages view.
328 * Value is of type <code>String</code>: possible values are <code>
329 * DOUBLE_CLICK_GOES_INTO</code> or <code>
330 * DOUBLE_CLICK_EXPANDS</code>.
333 * @see #DOUBLE_CLICK_EXPANDS
334 * @see #DOUBLE_CLICK_GOES_INTO
336 public static final String DOUBLE_CLICK = "packageview.doubleclick"; //$NON-NLS-1$
339 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
343 public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$
346 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
350 public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$
353 * A named preference that controls whether Java views update their presentation while editing or when saving the
354 * content of an editor.
356 * Value is of type <code>String</code>: possible values are <code>
357 * UPDATE_ON_SAVE</code> or <code>
358 * UPDATE_WHILE_EDITING</code>.
361 * @see #UPDATE_ON_SAVE
362 * @see #UPDATE_WHILE_EDITING
364 public static final String UPDATE_JAVA_VIEWS = "JavaUI.update"; //$NON-NLS-1$
367 * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
369 * @see #UPDATE_JAVA_VIEWS
371 public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$
374 * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
376 * @see #UPDATE_JAVA_VIEWS
378 public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$
381 * A named preference that holds the path of the Javadoc command used by the Javadoc creation wizard.
383 * Value is of type <code>String</code>.
386 public static final String JAVADOC_COMMAND = "command"; //$NON-NLS-1$
388 * A named preference that defines whether hint to make hover sticky should be shown.
393 public static final String EDITOR_SHOW_TEXT_HOVER_AFFORDANCE= "PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE"; //$NON-NLS-1$
396 * A named preference that defines the key for the hover modifiers.
401 public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$
403 * The id of the best match hover contributed for extension point
404 * <code>javaEditorTextHovers</code>.
408 public static String ID_BESTMATCH_HOVER= "net.sourceforge.phpdt.ui.BestMatchHover"; //$NON-NLS-1$
411 * The id of the source code hover contributed for extension point
412 * <code>javaEditorTextHovers</code>.
416 public static String ID_SOURCE_HOVER= "net.sourceforge.phpdt.ui.JavaSourceHover"; //$NON-NLS-1$
419 * The id of the problem hover contributed for extension point
420 * <code>javaEditorTextHovers</code>.
424 public static String ID_PROBLEM_HOVER = "net.sourceforge.phpdt.ui.ProblemHover"; //$NON-NLS-1$
427 * A named preference that controls whether bracket matching highlighting is turned on or off.
429 * Value is of type <code>Boolean</code>.
432 public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
435 * A named preference that holds the color used to highlight matching brackets.
437 * Value is of type <code>String</code>. A RGB color value encoded as a string
438 * using class <code>PreferenceConverter</code>
441 * @see org.eclipse.jface.resource.StringConverter
442 * @see org.eclipse.jface.preference.PreferenceConverter
444 public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
447 * A named preference that controls whether the current line highlighting is turned on or off.
449 * Value is of type <code>Boolean</code>.
452 public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
455 * A named preference that holds the color used to highlight the current line.
457 * Value is of type <code>String</code>. A RGB color value encoded as a string
458 * using class <code>PreferenceConverter</code>
461 * @see org.eclipse.jface.resource.StringConverter
462 * @see org.eclipse.jface.preference.PreferenceConverter
464 public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
467 * A named preference that controls whether the print margin is turned on or off.
469 * Value is of type <code>Boolean</code>.
472 public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
475 * A named preference that holds the color used to render the print margin.
477 * Value is of type <code>String</code>. A RGB color value encoded as a string
478 * using class <code>PreferenceConverter</code>
481 * @see org.eclipse.jface.resource.StringConverter
482 * @see org.eclipse.jface.preference.PreferenceConverter
484 public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
487 * Print margin column. Int value.
489 public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
492 * A named preference that holds the color used for the find/replace scope.
494 * Value is of type <code>String</code>. A RGB color value encoded as a string
495 * using class <code>PreferenceConverter</code>
498 * @see org.eclipse.jface.resource.StringConverter
499 * @see org.eclipse.jface.preference.PreferenceConverter
501 public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
504 * A named preference that specifies if the editor uses spaces for tabs.
506 * Value is of type <code>Boolean</code>. If <code>true</code>spaces instead of tabs are used
507 * in the editor. If <code>false</code> the editor inserts a tab character when pressing the tab
511 public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
514 * A named preference that holds the number of spaces used per tab in the editor.
516 * Value is of type <code>Int</code>: positive int value specifying the number of
520 public final static String EDITOR_TAB_WIDTH = "net.sourceforge.phpdt.ui.editor.tab.width"; //$NON-NLS-1$
523 * A named preference that controls whether the outline view selection
524 * should stay in sync with with the element at the current cursor position.
526 * Value is of type <code>Boolean</code>.
530 public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
533 * A named preference that controls if correction indicators are shown in the UI.
535 * Value is of type <code>Boolean</code>.
538 public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
541 * A named preference that controls whether the editor shows problem indicators in text (squiggly lines).
543 * Value is of type <code>Boolean</code>.
546 // public final static String EDITOR_PROBLEM_INDICATION = "problemIndication"; //$NON-NLS-1$
549 * A named preference that holds the color used to render problem indicators.
551 * Value is of type <code>String</code>. A RGB color value encoded as a string
552 * using class <code>PreferenceConverter</code>
555 * @see #EDITOR_PROBLEM_INDICATION
556 * @see org.eclipse.jface.resource.StringConverter
557 * @see org.eclipse.jface.preference.PreferenceConverter
559 // public final static String EDITOR_PROBLEM_INDICATION_COLOR = "problemIndicationColor"; //$NON-NLS-1$
561 /**PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR;
562 * A named preference that controls whether the editor shows warning indicators in text (squiggly lines).
564 * Value is of type <code>Boolean</code>.
567 // public final static String EDITOR_WARNING_INDICATION = "warningIndication"; //$NON-NLS-1$
570 * A named preference that holds the color used to render warning indicators.
572 * Value is of type <code>String</code>. A RGB color value encoded as a string
573 * using class <code>PreferenceConverter</code>
576 * @see #EDITOR_WARNING_INDICATION
577 * @see org.eclipse.jface.resource.StringConverter
578 * @see org.eclipse.jface.preference.PreferenceConverter
580 // public final static String EDITOR_WARNING_INDICATION_COLOR = "warningIndicationColor"; //$NON-NLS-1$
583 * A named preference that controls whether the editor shows task indicators in text (squiggly lines).
585 * Value is of type <code>Boolean</code>.
588 public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
591 * A named preference that holds the color used to render task indicators.
593 * Value is of type <code>String</code>. A RGB color value encoded as a string
594 * using class <code>PreferenceConverter</code>
597 * @see #EDITOR_TASK_INDICATION
598 * @see org.eclipse.jface.resource.StringConverter
599 * @see org.eclipse.jface.preference.PreferenceConverter
601 public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
604 * A named preference that controls whether the editor shows bookmark
605 * indicators in text (squiggly lines).
607 * Value is of type <code>Boolean</code>.
611 public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
614 * A named preference that holds the color used to render bookmark indicators.
616 * Value is of type <code>String</code>. A RGB color value encoded as a string
617 * using class <code>PreferenceConverter</code>
620 * @see #EDITOR_BOOKMARK_INDICATION
621 * @see org.eclipse.jface.resource.StringConverter
622 * @see org.eclipse.jface.preference.PreferenceConverter
625 public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
628 * A named preference that controls whether the editor shows search
629 * indicators in text (squiggly lines).
631 * Value is of type <code>Boolean</code>.
635 public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
638 * A named preference that holds the color used to render search indicators.
640 * Value is of type <code>String</code>. A RGB color value encoded as a string
641 * using class <code>PreferenceConverter</code>
644 * @see #EDITOR_SEARCH_RESULT_INDICATION
645 * @see org.eclipse.jface.resource.StringConverter
646 * @see org.eclipse.jface.preference.PreferenceConverter
649 public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
652 * A named preference that controls whether the editor shows unknown
653 * indicators in text (squiggly lines).
655 * Value is of type <code>Boolean</code>.
659 public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
662 * A named preference that holds the color used to render unknown
665 * Value is of type <code>String</code>. A RGB color value encoded as a string
666 * using class <code>PreferenceConverter</code>
669 * @see #EDITOR_UNKNOWN_INDICATION
670 * @see org.eclipse.jface.resource.StringConverter
671 * @see org.eclipse.jface.preference.PreferenceConverter
674 public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
677 * A named preference that controls whether the overview ruler shows error
680 * Value is of type <code>Boolean</code>.
684 public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
687 * A named preference that controls whether the overview ruler shows warning
690 * Value is of type <code>Boolean</code>.
694 public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
697 * A named preference that controls whether the overview ruler shows task
700 * Value is of type <code>Boolean</code>.
704 public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
707 * A named preference that controls whether the overview ruler shows
708 * bookmark indicators.
710 * Value is of type <code>Boolean</code>.
714 public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
717 * A named preference that controls whether the overview ruler shows
718 * search result indicators.
720 * Value is of type <code>Boolean</code>.
724 public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
727 * A named preference that controls whether the overview ruler shows
728 * unknown indicators.
730 * Value is of type <code>Boolean</code>.
734 public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
737 * A named preference that controls whether the 'close strings' feature
738 * is enabled in PHP mode
740 * Value is of type <code>Boolean</code>.
744 public final static String EDITOR_CLOSE_STRINGS_PHP = "closeStringsPHP"; //$NON-NLS-1$
747 * A named preference that controls whether the 'close brackets' feature is
748 * enabled in PHP mode
750 * Value is of type <code>Boolean</code>.
754 public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$
757 * A named preference that controls whether the 'wrap strings' feature is
760 * Value is of type <code>Boolean</code>.
764 public final static String EDITOR_WRAP_STRINGS= "wrapStrings"; //$NON-NLS-1$
767 * A named preference that controls whether the 'escape strings' feature is
770 * Value is of type <code>Boolean</code>.
774 public final static String EDITOR_ESCAPE_STRINGS= "escapeStrings"; //$NON-NLS-1$
777 * A named preference that controls whether the 'close braces' feature is
780 * Value is of type <code>Boolean</code>.
784 public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
787 * A named preference that controls whether the 'close php docs' feature is
790 * Value is of type <code>Boolean</code>.
794 public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
797 * A named preference that controls whether the 'add JavaDoc tags' feature
800 * Value is of type <code>Boolean</code>.
804 public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
807 * A named preference that controls whether the 'format Javadoc tags'
808 * feature is enabled.
810 * Value is of type <code>Boolean</code>.
814 public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$
817 * A named preference that controls whether the 'smart paste' feature is
820 * Value is of type <code>Boolean</code>.
824 public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
827 * A named preference that controls whether the 'close strings' feature
828 * is enabled in HTML mode
830 * Value is of type <code>Boolean</code>.
834 public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$
837 * A named preference that controls whether the 'close brackets' feature is
838 * enabled in HTML mode
840 * Value is of type <code>Boolean</code>.
844 public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$
847 * A named preference that controls whether the 'smart home-end' feature is
850 * Value is of type <code>Boolean</code>.
854 public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
857 * A named preference that controls whether the 'sub-word navigation' feature is
860 * Value is of type <code>Boolean</code>.
864 public final static String EDITOR_SUB_WORD_NAVIGATION= "subWordNavigation"; //$NON-NLS-1$
866 * A named preference that controls if temporary problems are evaluated and shown in the UI.
868 * Value is of type <code>Boolean</code>.
871 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
874 * A named preference that controls if the overview ruler is shown in the UI.
876 * Value is of type <code>Boolean</code>.
879 public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
882 * A named preference that controls if the line number ruler is shown in the UI.
884 * Value is of type <code>Boolean</code>.
887 public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$
890 * A named preference that holds the color used to render line numbers inside the line number ruler.
892 * Value is of type <code>String</code>. A RGB color value encoded as a string
893 * using class <code>PreferenceConverter</code>
896 * @see org.eclipse.jface.resource.StringConverter
897 * @see org.eclipse.jface.preference.PreferenceConverter
898 * @see #EDITOR_LINE_NUMBER_RULER
900 public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$
903 * A named preference that holds the color used to render linked positions inside code templates.
905 * Value is of type <code>String</code>. A RGB color value encoded as a string
906 * using class <code>PreferenceConverter</code>
909 * @see org.eclipse.jface.resource.StringConverter
910 * @see org.eclipse.jface.preference.PreferenceConverter
912 public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
915 * A named preference that holds the color used as the text foreground.
917 * Value is of type <code>String</code>. A RGB color value encoded as a string
918 * using class <code>PreferenceConverter</code>
921 * @see org.eclipse.jface.resource.StringConverter
922 * @see org.eclipse.jface.preference.PreferenceConverter
924 public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
927 * A named preference that describes if the system default foreground color
928 * is used as the text foreground.
930 * Value is of type <code>Boolean</code>.
933 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
936 * A named preference that holds the color used as the text background.
938 * Value is of type <code>String</code>. A RGB color value encoded as a string
939 * using class <code>PreferenceConverter</code>
942 * @see org.eclipse.jface.resource.StringConverter
943 * @see org.eclipse.jface.preference.PreferenceConverter
945 public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
948 * A named preference that describes if the system default background color
949 * is used as the text foreground.
951 * Value is of type <code>Boolean</code>.
954 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
957 * Preference key suffix for bold text style preference keys.
959 public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
962 * Preference key suffix for bold text style preference keys.
964 public static final String EDITOR_ITALIC_SUFFIX = "_italic"; //$NON-NLS-1$
966 * A named preference that holds the color used to render multi line comments.
968 * Value is of type <code>String</code>. A RGB color value encoded as a string
969 * using class <code>PreferenceConverter</code>
972 * @see org.eclipse.jface.resource.StringConverter
973 * @see org.eclipse.jface.preference.PreferenceConverter
975 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT;
978 * The symbolic font name for the Java editor text font
979 * (value <code>"org.eclipse.jdt.ui.editors.textfont"</code>).
983 public final static String EDITOR_TEXT_FONT= "net.sourceforge.phpdt.ui.editors.textfont"; //$NON-NLS-1$
986 * A named preference that controls whether multi line comments are rendered in bold.
988 * Value is of type <code>Boolean</code>. If <code>true</code> multi line comments are rendered
989 * in bold. If <code>false</code> the are rendered using no font style attribute.
992 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT + EDITOR_BOLD_SUFFIX;
995 * A named preference that holds the color used to render single line comments.
997 * Value is of type <code>String</code>. A RGB color value encoded as a string
998 * using class <code>PreferenceConverter</code>
1001 * @see org.eclipse.jface.resource.StringConverter
1002 * @see org.eclipse.jface.preference.PreferenceConverter
1004 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT;
1007 * A named preference that controls whether sinle line comments are rendered in bold.
1009 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1010 * in bold. If <code>false</code> the are rendered using no font style attribute.
1013 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT + EDITOR_BOLD_SUFFIX;
1015 * A named preference that holds the color used to render operators and brackets.
1017 * Value is of type <code>String</code>. A RGB color value encoded as a string
1018 * using class <code>PreferenceConverter</code>
1021 * @see org.eclipse.jface.resource.StringConverter
1022 * @see org.eclipse.jface.preference.PreferenceConverter
1025 public final static String EDITOR_PHP_OPERATOR_COLOR= IPreferenceConstants.PHP_OPERATOR;
1028 * A named preference that controls whether operators and brackets are rendered in bold.
1030 * Value is of type <code>Boolean</code>.
1035 public final static String EDITOR_PHP_OPERATOR_BOLD= IPreferenceConstants.PHP_OPERATOR + EDITOR_BOLD_SUFFIX;
1038 * A named preference that controls whether operators and brackets are rendered in italic.
1040 * Value is of type <code>Boolean</code>.
1045 public final static String EDITOR_PHP_OPERATOR_ITALIC= IPreferenceConstants.PHP_OPERATOR + EDITOR_ITALIC_SUFFIX;
1048 * A named preference that holds the color used to render the 'return' keyword.
1050 * Value is of type <code>String</code>. A RGB color value encoded as a string
1051 * using class <code>PreferenceConverter</code>
1054 * @see org.eclipse.jface.resource.StringConverter
1055 * @see org.eclipse.jface.preference.PreferenceConverter
1058 public final static String EDITOR_PHP_KEYWORD_RETURN_COLOR= IPreferenceConstants.PHP_KEYWORD_RETURN;
1061 * A named preference that controls whether 'return' keyword is rendered in bold.
1063 * Value is of type <code>Boolean</code>.
1068 public final static String EDITOR_PHP_KEYWORD_RETURN_BOLD= IPreferenceConstants.PHP_KEYWORD_RETURN + EDITOR_BOLD_SUFFIX;
1071 * A named preference that controls whether 'return' keyword is rendered in italic.
1073 * Value is of type <code>Boolean</code>.
1078 public final static String EDITOR_PHP_KEYWORD_RETURN_ITALIC= IPreferenceConstants.PHP_KEYWORD_RETURN + EDITOR_ITALIC_SUFFIX;
1081 * A named preference that holds the color used to render php start and stop tags.
1083 * Value is of type <code>String</code>. A RGB color value encoded as a string
1084 * using class <code>PreferenceConverter</code>
1087 * @see org.eclipse.jface.resource.StringConverter
1088 * @see org.eclipse.jface.preference.PreferenceConverter
1090 public final static String EDITOR_JAVA_TAG_COLOR = IPreferenceConstants.PHP_TAG;
1093 * A named preference that controls whether php start and stop tags are rendered in bold.
1095 * Value is of type <code>Boolean</code>.
1098 public final static String EDITOR_JAVA_TAG_BOLD = IPreferenceConstants.PHP_TAG + EDITOR_BOLD_SUFFIX;
1101 * A named preference that holds the color used to render php keywords.
1103 * Value is of type <code>String</code>. A RGB color value encoded as a string
1104 * using class <code>PreferenceConverter</code>
1107 * @see org.eclipse.jface.resource.StringConverter
1108 * @see org.eclipse.jface.preference.PreferenceConverter
1110 public final static String EDITOR_JAVA_KEYWORD_COLOR = IPreferenceConstants.PHP_KEYWORD;
1113 * A named preference that controls whether keywords are rendered in bold.
1115 * Value is of type <code>Boolean</code>.
1118 public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD + EDITOR_BOLD_SUFFIX;
1121 * A named preference that holds the color used to render predefined php
1124 * Value is of type <code>String</code>. A RGB color value encoded as a string
1125 * using class <code>PreferenceConverter</code>
1128 * @see org.eclipse.jface.resource.StringConverter
1129 * @see org.eclipse.jface.preference.PreferenceConverter
1131 public final static String EDITOR_PHP_FUNCTIONNAME_COLOR = IPreferenceConstants.PHP_FUNCTIONNAME;
1134 * A named preference that controls whether function names are rendered in
1137 * Value is of type <code>Boolean</code>.
1140 public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_BOLD_SUFFIX;
1143 * A named preference that holds the color used to render php
1146 * Value is of type <code>String</code>. A RGB color value encoded as a string
1147 * using class <code>PreferenceConverter</code>
1150 * @see org.eclipse.jface.resource.StringConverter
1151 * @see org.eclipse.jface.preference.PreferenceConverter
1153 public final static String EDITOR_PHP_VARIABLE_COLOR = IPreferenceConstants.PHP_VARIABLE;
1156 * A named preference that controls whether variables are rendered in bold.
1158 * Value is of type <code>Boolean</code>.
1161 public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE + EDITOR_BOLD_SUFFIX;
1164 * A named preference that holds the color used to render php constants.
1166 * Value is of type <code>String</code>. A RGB color value encoded as a string
1167 * using class <code>PreferenceConverter</code>
1170 * @see org.eclipse.jface.resource.StringConverter
1171 * @see org.eclipse.jface.preference.PreferenceConverter
1173 public final static String EDITOR_PHP_CONSTANT_COLOR = IPreferenceConstants.PHP_CONSTANT;
1176 * A named preference that controls whether constants are rendered in bold.
1178 * Value is of type <code>Boolean</code>.
1181 public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT + EDITOR_BOLD_SUFFIX;
1184 * A named preference that holds the color used to render php types.
1186 * Value is of type <code>String</code>. A RGB color value encoded as a string
1187 * using class <code>PreferenceConverter</code>
1190 * @see org.eclipse.jface.resource.StringConverter
1191 * @see org.eclipse.jface.preference.PreferenceConverter
1193 public final static String EDITOR_PHP_TYPE_COLOR = IPreferenceConstants.PHP_TYPE;
1196 * A named preference that controls whether types are rendered in bold.
1198 * Value is of type <code>Boolean</code>.
1201 public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE + EDITOR_BOLD_SUFFIX;
1204 * A named preference that holds the color used to render string constants.
1206 * Value is of type <code>String</code>. A RGB color value encoded as a string
1207 * using class <code>PreferenceConverter</code>
1210 * @see org.eclipse.jface.resource.StringConverter
1211 * @see org.eclipse.jface.preference.PreferenceConverter
1213 public final static String EDITOR_STRING_COLOR = IPreferenceConstants.PHP_STRING;
1216 * A named preference that controls whether string constants are rendered in bold.
1218 * Value is of type <code>Boolean</code>.
1221 public final static String EDITOR_STRING_BOLD = IPreferenceConstants.PHP_STRING + EDITOR_BOLD_SUFFIX;
1224 * A named preference that holds the color used to render php default text.
1226 * Value is of type <code>String</code>. A RGB color value encoded as a string
1227 * using class <code>PreferenceConverter</code>
1230 * @see org.eclipse.jface.resource.StringConverter
1231 * @see org.eclipse.jface.preference.PreferenceConverter
1233 public final static String EDITOR_JAVA_DEFAULT_COLOR = IPreferenceConstants.PHP_DEFAULT;
1236 * A named preference that controls whether Java default text is rendered in bold.
1238 * Value is of type <code>Boolean</code>.
1241 public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT + EDITOR_BOLD_SUFFIX;
1244 * A named preference that holds the color used to render task tags.
1246 * Value is of type <code>String</code>. A RGB color value encoded as a string
1247 * using class <code>PreferenceConverter</code>
1250 * @see org.eclipse.jface.resource.StringConverter
1251 * @see org.eclipse.jface.preference.PreferenceConverter
1254 public final static String EDITOR_TASK_TAG_COLOR= IPreferenceConstants.TASK_TAG;
1257 * A named preference that controls whether task tags are rendered in bold.
1259 * Value is of type <code>Boolean</code>.
1263 public final static String EDITOR_TASK_TAG_BOLD= IPreferenceConstants.TASK_TAG + EDITOR_BOLD_SUFFIX;
1266 * A named preference that holds the color used to render phpdoc keywords.
1268 * Value is of type <code>String</code>. A RGB color value encoded as a string
1269 * using class <code>PreferenceConverter</code>
1272 * @see org.eclipse.jface.resource.StringConverter
1273 * @see org.eclipse.jface.preference.PreferenceConverter
1275 public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IPreferenceConstants.PHPDOC_KEYWORD;
1278 * A named preference that controls whether phpdoc keywords are rendered in bold.
1280 * Value is of type <code>Boolean</code>.
1283 public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD + EDITOR_BOLD_SUFFIX;
1286 * A named preference that holds the color used to render phpdoc tags.
1288 * Value is of type <code>String</code>. A RGB color value encoded as a string
1289 * using class <code>PreferenceConverter</code>
1292 * @see org.eclipse.jface.resource.StringConverter
1293 * @see org.eclipse.jface.preference.PreferenceConverter
1295 public final static String EDITOR_JAVADOC_TAG_COLOR = IPreferenceConstants.PHPDOC_TAG;
1298 * A named preference that controls whether phpdoc tags are rendered in bold.
1300 * Value is of type <code>Boolean</code>.
1303 public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG + EDITOR_BOLD_SUFFIX;
1306 * A named preference that holds the color used to render phpdoc links.
1308 * Value is of type <code>String</code>. A RGB color value encoded as a string
1309 * using class <code>PreferenceConverter</code>
1312 * @see org.eclipse.jface.resource.StringConverter
1313 * @see org.eclipse.jface.preference.PreferenceConverter
1315 public final static String EDITOR_JAVADOC_LINKS_COLOR = IPreferenceConstants.PHPDOC_LINK;
1318 * A named preference that controls whether phpdoc links are rendered in bold.
1320 * Value is of type <code>Boolean</code>.
1323 public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK + EDITOR_BOLD_SUFFIX;
1326 * A named preference that holds the color used to render phpdoc default text.
1328 * Value is of type <code>String</code>. A RGB color value encoded as a string
1329 * using class <code>PreferenceConverter</code>
1332 * @see org.eclipse.jface.resource.StringConverter
1333 * @see org.eclipse.jface.preference.PreferenceConverter
1335 public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IPreferenceConstants.PHPDOC_DEFAULT;
1338 * A named preference that controls whether phpdoc default text is rendered in bold.
1340 * Value is of type <code>Boolean</code>.
1343 public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT + EDITOR_BOLD_SUFFIX;
1346 * A named preference that holds the color used for 'linked-mode' underline.
1348 * Value is of type <code>String</code>. A RGB color value encoded as a string
1349 * using class <code>PreferenceConverter</code>
1352 * @see org.eclipse.jface.resource.StringConverter
1353 * @see org.eclipse.jface.preference.PreferenceConverter
1356 public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1359 * A named preference that controls whether hover tooltips in the editor are turned on or off.
1361 * Value is of type <code>Boolean</code>.
1364 public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1367 * A named preference that defines the hover shown when no control key is
1369 * <p>Value is of type <code>String</code>: possible values are <code>
1370 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1371 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a hover
1372 * contributed as <code>phpEditorTextHovers</code>.
1374 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1375 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1379 public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1382 * A named preference that defines the hover shown when the
1383 * <code>CTRL</code> modifier key is pressed.
1384 * <p>Value is of type <code>String</code>: possible values are <code>
1385 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1386 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1387 * hover contributed as <code>phpEditorTextHovers</code>.
1389 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1390 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1394 public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1397 * A named preference that defines the hover shown when the
1398 * <code>SHIFT</code> modifier key is pressed.
1399 * <p>Value is of type <code>String</code>: possible values are <code>
1400 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1401 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1402 * hover contributed as <code>phpEditorTextHovers</code>.
1404 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1405 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1406 * @see JavaUI ID_*_HOVER
1409 public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1412 * A named preference that defines the hover shown when the
1413 * <code>CTRL + ALT</code> modifier keys is pressed.
1414 * <p>Value is of type <code>String</code>: possible values are <code>
1415 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1416 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1417 * hover contributed as <code>phpEditorTextHovers</code>.
1419 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1420 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1421 * @see JavaUI ID_*_HOVER
1424 public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1427 * A named preference that defines the hover shown when the
1428 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1429 * <p>Value is of type <code>String</code>: possible values are <code>
1430 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1431 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1432 * hover contributed as <code>phpEditorTextHovers</code>.
1434 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1435 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1436 * @see JavaUI ID_*_HOVER
1439 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1442 * A named preference that defines the hover shown when the
1443 * <code>CTRL + SHIFT</code> modifier keys is pressed.
1444 * <p>Value is of type <code>String</code>: possible values are <code>
1445 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1446 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1447 * hover contributed as <code>phpEditorTextHovers</code>.
1449 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1450 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1451 * @see JavaUI ID_*_HOVER
1454 public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1457 * A named preference that defines the hover shown when the
1458 * <code>ALT</code> modifier key is pressed.
1459 * <p>Value is of type <code>String</code>: possible values are <code>
1460 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1461 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1462 * hover contributed as <code>phpEditorTextHovers</code>.
1464 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1465 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1466 * @see JavaUI ID_*_HOVER
1469 public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1472 * A string value used by the named preferences for hover configuration to
1473 * descibe that no hover should be shown for the given key modifiers.
1476 public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1479 * A string value used by the named preferences for hover configuration to
1480 * descibe that the default hover should be shown for the given key
1481 * modifiers. The default hover is described by the
1482 * <code>EDITOR_DEFAULT_HOVER</code> property.
1485 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1488 * A named preference that defines the hover named the 'default hover'.
1489 * Value is of type <code>String</code>: possible values are <code>
1490 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or <code> the hover id of a hover
1491 * contributed as <code>phpEditorTextHovers</code>.
1495 public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1498 * A named preference that controls if segmented view (show selected element only) is turned on or off.
1500 * Value is of type <code>Boolean</code>.
1503 public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1505 * A named preference that controls if browser like links are turned on or off.
1507 * Value is of type <code>Boolean</code>.
1512 public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
1515 * A named preference that controls the key modifier for browser like links.
1517 * Value is of type <code>String</code>.
1522 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
1524 * A named preference that controls whether occurrences are marked in the editor.
1526 * Value is of type <code>Boolean</code>.
1531 public static final String EDITOR_MARK_OCCURRENCES= "markOccurrences"; //$NON-NLS-1$
1534 * A named preference that controls whether occurrences are sticky in the editor.
1536 * Value is of type <code>Boolean</code>.
1541 public static final String EDITOR_STICKY_OCCURRENCES= "stickyOccurrences"; //$NON-NLS-1$
1544 * A named preference that controls disabling of the overwrite mode.
1546 * Value is of type <code>Boolean</code>.
1551 public static final String EDITOR_DISABLE_OVERWRITE_MODE= "disable_overwrite_mode"; //$NON-NLS-1$
1554 * A named preference that controls the "smart semicolon" smart typing handler
1556 * Value is of type <code>Boolean</code>.
1561 public static final String EDITOR_SMART_SEMICOLON= "smart_semicolon"; //$NON-NLS-1$
1564 * A named preference that controls the "smart opening brace" smart typing handler
1566 * Value is of type <code>Boolean</code>.
1571 public static final String EDITOR_SMART_OPENING_BRACE= "smart_opening_brace"; //$NON-NLS-1$
1574 * A named preference that controls the smart tab behaviour.
1576 * Value is of type <code>Boolean</code>.
1580 public static final String EDITOR_SMART_TAB= "smart_tab"; //$NON-NLS-1$
1583 * A named preference that controls whether Java comments should be
1586 * Value is of type <code>Boolean</code>.
1591 // public final static String SPELLING_CHECK_SPELLING= ISpellCheckPreferenceKeys.SPELLING_CHECK_SPELLING;
1594 * A named preference that controls whether words containing digits should
1595 * be skipped during spell-checking.
1597 * Value is of type <code>Boolean</code>.
1602 // public final static String SPELLING_IGNORE_DIGITS= ISpellCheckPreferenceKeys.SPELLING_IGNORE_DIGITS;
1605 * A named preference that controls whether mixed case words should be
1606 * skipped during spell-checking.
1608 * Value is of type <code>Boolean</code>.
1613 // public final static String SPELLING_IGNORE_MIXED= ISpellCheckPreferenceKeys.SPELLING_IGNORE_MIXED;
1616 * A named preference that controls whether sentence capitalization should
1617 * be ignored during spell-checking.
1619 * Value is of type <code>Boolean</code>.
1624 // public final static String SPELLING_IGNORE_SENTENCE= ISpellCheckPreferenceKeys.SPELLING_IGNORE_SENTENCE;
1627 * A named preference that controls whether upper case words should be
1628 * skipped during spell-checking.
1630 * Value is of type <code>Boolean</code>.
1635 // public final static String SPELLING_IGNORE_UPPER= ISpellCheckPreferenceKeys.SPELLING_IGNORE_UPPER;
1638 * A named preference that controls whether urls should be ignored during
1641 * Value is of type <code>Boolean</code>.
1646 // public final static String SPELLING_IGNORE_URLS= ISpellCheckPreferenceKeys.SPELLING_IGNORE_URLS;
1649 * A named preference that controls the locale used for spell-checking.
1651 * Value is of type <code>String</code>.
1656 // public final static String SPELLING_LOCALE= ISpellCheckPreferenceKeys.SPELLING_LOCALE;
1659 * A named preference that controls the number of proposals offered during
1662 * Value is of type <code>Integer</code>.
1667 // public final static String SPELLING_PROPOSAL_THRESHOLD= ISpellCheckPreferenceKeys.SPELLING_PROPOSAL_THRESHOLD;
1670 * A named preference that specifies the workspace user dictionary.
1672 * Value is of type <code>Integer</code>.
1677 // public final static String SPELLING_USER_DICTIONARY= ISpellCheckPreferenceKeys.SPELLING_USER_DICTIONARY;
1680 * A named preference that specifies whether spelling dictionaries are available to content assist.
1682 * Value is of type <code>Boolean</code>.
1687 // public final static String SPELLING_ENABLE_CONTENTASSIST= ISpellCheckPreferenceKeys.SPELLING_ENABLE_CONTENTASSIST;
1690 * A named preference that controls whether code snippets are formatted
1691 * in Javadoc comments.
1693 * Value is of type <code>Boolean</code>.
1698 public final static String FORMATTER_COMMENT_FORMATSOURCE= "comment_format_source_code"; //$NON-NLS-1$
1701 * A named preference that controls whether description of Javadoc
1702 * parameters are indented.
1704 * Value is of type <code>Boolean</code>.
1709 public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION= "comment_indent_parameter_description"; //$NON-NLS-1$
1712 * A named preference that controls whether the header comment of
1713 * a Java source file is formatted.
1715 * Value is of type <code>Boolean</code>.
1720 public final static String FORMATTER_COMMENT_FORMATHEADER= "comment_format_header"; //$NON-NLS-1$
1723 * A named preference that controls whether Javadoc root tags
1726 * Value is of type <code>Boolean</code>.
1731 public final static String FORMATTER_COMMENT_INDENTROOTTAGS= "comment_indent_root_tags"; //$NON-NLS-1$
1734 * A named preference that controls whether Javadoc comments
1735 * are formatted by the content formatter.
1737 * Value is of type <code>Boolean</code>.
1742 public final static String FORMATTER_COMMENT_FORMAT= "comment_format_comments"; //$NON-NLS-1$
1745 * A named preference that controls whether a new line is inserted
1746 * after Javadoc root tag parameters.
1748 * Value is of type <code>Boolean</code>.
1753 public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER= "comment_new_line_for_parameter"; //$NON-NLS-1$
1756 * A named preference that controls whether an empty line is inserted before
1757 * the Javadoc root tag block.
1759 * Value is of type <code>Boolean</code>.
1764 public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS= "comment_separate_root_tags"; //$NON-NLS-1$
1767 * A named preference that controls whether blank lines are cleared during formatting
1769 * Value is of type <code>Boolean</code>.
1774 public final static String FORMATTER_COMMENT_CLEARBLANKLINES= "comment_clear_blank_lines"; //$NON-NLS-1$
1777 * A named preference that controls the line length of comments.
1779 * Value is of type <code>Integer</code>. The value must be at least 4 for reasonable formatting.
1784 public final static String FORMATTER_COMMENT_LINELENGTH= "comment_line_length"; //$NON-NLS-1$
1787 * A named preference that controls whether html tags are formatted.
1789 * Value is of type <code>Boolean</code>.
1794 public final static String FORMATTER_COMMENT_FORMATHTML= "comment_format_html"; //$NON-NLS-1$
1797 * A named preference that controls if the Java code assist gets auto activated.
1799 * Value is of type <code>Boolean</code>.
1802 public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
1805 * A name preference that holds the auto activation delay time in milli seconds.
1807 * Value is of type <code>Int</code>.
1810 public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
1813 * A named preference that controls if code assist contains only visible proposals.
1815 * Value is of type <code>Boolean</code>. if <code>true<code> code assist only contains visible members. If
1816 * <code>false</code> all members are included.
1819 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
1822 * A named preference that controls if the Java code assist inserts a
1823 * proposal automatically if only one proposal is available.
1825 * Value is of type <code>Boolean</code>.
1829 public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
1832 * A named preference that controls if the Java code assist adds import
1835 * Value is of type <code>Boolean</code>.
1839 public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
1842 * A named preference that controls if the Java code assist only inserts
1843 * completions. If set to false the proposals can also _replace_ code.
1845 * Value is of type <code>Boolean</code>.
1849 public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
1852 * A named preference that controls whether code assist proposals filtering is case sensitive or not.
1854 * Value is of type <code>Boolean</code>.
1857 public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
1860 * A named preference that defines if code assist proposals are sorted in alphabetical order.
1862 * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical
1863 * order. If <code>false</code> that are unsorted.
1866 public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
1869 * A named preference that controls if argument names are filled in when a method is selected from as list
1870 * of code assist proposal.
1872 * Value is of type <code>Boolean</code>.
1875 public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
1878 * A named preference that controls if method arguments are guessed when a
1879 * method is selected from as list of code assist proposal.
1881 * Value is of type <code>Boolean</code>.
1885 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
1888 * A named preference that holds the characters that auto activate code assist
1891 * Value is of type <code>Sring</code>. All characters that trigger auto code
1892 * assist in PHP code.
1895 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
1898 * A named preference that holds the characters that auto activate code assist
1901 * Value is of type <code>Sring</code>. All characters that trigger auto code
1905 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
1908 * A named preference that holds the characters that auto activate code assist
1911 * Value is of type <code>Sring</code>. All characters that trigger auto code
1915 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
1918 * A named preference that holds the background color used in the code assist selection dialog.
1920 * Value is of type <code>String</code>. A RGB color value encoded as a string
1921 * using class <code>PreferenceConverter</code>
1924 * @see org.eclipse.jface.resource.StringConverter
1925 * @see org.eclipse.jface.preference.PreferenceConverter
1927 public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
1930 * A named preference that holds the foreground color used in the code assist selection dialog.
1932 * Value is of type <code>String</code>. A RGB color value encoded as a string
1933 * using class <code>PreferenceConverter</code>
1936 * @see org.eclipse.jface.resource.StringConverter
1937 * @see org.eclipse.jface.preference.PreferenceConverter
1939 public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
1942 * A named preference that holds the background color used for parameter hints.
1944 * Value is of type <code>String</code>. A RGB color value encoded as a string
1945 * using class <code>PreferenceConverter</code>
1948 * @see org.eclipse.jface.resource.StringConverter
1949 * @see org.eclipse.jface.preference.PreferenceConverter
1951 public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
1954 * A named preference that holds the foreground color used in the code assist selection dialog
1956 * Value is of type <code>String</code>. A RGB color value encoded as a string
1957 * using class <code>PreferenceConverter</code>
1960 * @see org.eclipse.jface.resource.StringConverter
1961 * @see org.eclipse.jface.preference.PreferenceConverter
1963 public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
1966 * A named preference that holds the background color used in the code
1967 * assist selection dialog to mark replaced code.
1969 * Value is of type <code>String</code>. A RGB color value encoded as a string
1970 * using class <code>PreferenceConverter</code>
1973 * @see org.eclipse.jface.resource.StringConverter
1974 * @see org.eclipse.jface.preference.PreferenceConverter
1977 public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
1980 * A named preference that holds the foreground color used in the code
1981 * assist selection dialog to mark replaced code.
1983 * Value is of type <code>String</code>. A RGB color value encoded as a string
1984 * using class <code>PreferenceConverter</code>
1987 * @see org.eclipse.jface.resource.StringConverter
1988 * @see org.eclipse.jface.preference.PreferenceConverter
1991 public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
1994 * A named preference that controls the behaviour of the refactoring wizard for showing the error page.
1996 * Value is of type <code>String</code>. Valid values are:
1997 * <code>REFACTOR_FATAL_SEVERITY</code>,
1998 * <code>REFACTOR_ERROR_SEVERITY</code>,
1999 * <code>REFACTOR_WARNING_SEVERITY</code>
2000 * <code>REFACTOR_INFO_SEVERITY</code>,
2001 * <code>REFACTOR_OK_SEVERITY</code>.
2004 * @see #REFACTOR_FATAL_SEVERITY
2005 * @see #REFACTOR_ERROR_SEVERITY
2006 * @see #REFACTOR_WARNING_SEVERITY
2007 * @see #REFACTOR_INFO_SEVERITY
2008 * @see #REFACTOR_OK_SEVERITY
2010 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
2013 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2015 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2017 public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
2020 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2022 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2024 public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
2027 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2029 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2031 public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
2034 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2036 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2038 public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
2041 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2043 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2045 public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
2048 * A named preference thet controls whether all dirty editors are automatically saved before a refactoring is
2051 * Value is of type <code>Boolean</code>.
2054 public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
2057 * A named preference that controls if the Java Browsing views are linked to the active editor.
2059 * Value is of type <code>Boolean</code>.
2062 * @see #LINK_PACKAGES_TO_EDITOR
2064 public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
2067 * A named preference that controls the layout of the Java Browsing views vertically. Boolean value.
2069 * Value is of type <code>Boolean</code>. If <code>true<code> the views are stacked vertical.
2070 * If <code>false</code> they are stacked horizontal.
2073 public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
2076 * A named preference that controls if templates are formatted when applied.
2078 * Value is of type <code>Boolean</code>.
2083 public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
2086 * A named preference that controls the key modifier mask for browser like links.
2087 * The value is only used if the value of <code>EDITOR_BROWSER_LIKE_LINKS</code>
2088 * cannot be resolved to valid SWT modifier bits.
2090 * Value is of type <code>String</code>.
2093 * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2096 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2099 * A named preference that defines the key for the hover modifier state masks.
2100 * The value is only used if the value of <code>EDITOR_TEXT_HOVER_MODIFIERS</code>
2101 * cannot be resolved to valid SWT modifier bits.
2104 * @see #EDITOR_TEXT_HOVER_MODIFIERS
2107 public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
2110 * A named preference that controls whether folding is enabled in the Java editor.
2112 * Value is of type <code>Boolean</code>.
2117 public static final String EDITOR_FOLDING_ENABLED= "editor_folding_enabled"; //$NON-NLS-1$
2120 * A named preference that stores the configured folding provider.
2122 * Value is of type <code>String</code>.
2127 public static final String EDITOR_FOLDING_PROVIDER= "editor_folding_provider"; //$NON-NLS-1$
2130 * A named preference that stores the value for Javadoc folding for the default folding provider.
2132 * Value is of type <code>Boolean</code>.
2137 public static final String EDITOR_FOLDING_JAVADOC= "editor_folding_default_javadoc"; //$NON-NLS-1$
2140 * A named preference that stores the value for inner type folding for the default folding provider.
2142 * Value is of type <code>Boolean</code>.
2147 public static final String EDITOR_FOLDING_INNERTYPES= "editor_folding_default_innertypes"; //$NON-NLS-1$
2150 * A named preference that stores the value for method folding for the default folding provider.
2152 * Value is of type <code>Boolean</code>.
2157 public static final String EDITOR_FOLDING_METHODS= "editor_folding_default_methods"; //$NON-NLS-1$
2160 * A named preference that stores the value for imports folding for the default folding provider.
2162 * Value is of type <code>Boolean</code>.
2167 public static final String EDITOR_FOLDING_IMPORTS= "editor_folding_default_imports"; //$NON-NLS-1$
2170 public static void initializeDefaultValues(IPreferenceStore store) {
2171 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
2173 // JavaBasePreferencePage
2174 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
2175 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, false);
2176 store.setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR, true);
2177 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
2178 store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
2179 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, PreferenceConstants.UPDATE_WHILE_EDITING);
2181 // AppearancePreferencePage
2182 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false);
2183 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, false);
2184 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
2185 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR, true);
2186 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
2187 store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
2188 store.setDefault(PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, true);
2190 // ImportOrganizePreferencePage
2191 store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, "php;phpx;org;com"); //$NON-NLS-1$
2192 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
2193 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
2195 // ClasspathVariablesPreferencePage
2196 // CodeFormatterPreferencePage
2197 // CompilerPreferencePage
2198 // no initialization needed
2200 // RefactoringPreferencePage
2201 store.setDefault(PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, PreferenceConstants.REFACTOR_ERROR_SEVERITY);
2202 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
2203 store.setDefault("RefactoringUI", "dialog");
2205 // TemplatePreferencePage
2206 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
2208 // CodeGenerationPreferencePage
2209 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX, false);
2210 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX, false);
2211 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX, "fg, f, _$, _, m_"); //$NON-NLS-1$
2212 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
2213 store.setDefault(PreferenceConstants.CODEGEN__JAVADOC_STUBS, true);
2214 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS, false);
2215 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
2217 // MembersOrderPreferencePage
2218 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SI,SF,SM,I,F,C,M"); //$NON-NLS-1$
2219 // must add here to guarantee that it is the first in the listener list
2220 // store.addPropertyChangeListener(PHPeclipsePlugin.getDefault().getMemberOrderPreferenceCache());
2222 // PHPEditorPreferencePage
2224 * Ensure that the display is accessed only in the UI thread.
2225 * Ensure that there are no side effects of switching the thread.
2227 final RGB[] rgbs = new RGB[3];
2228 final Display display = Display.getDefault();
2229 display.syncExec(new Runnable() {
2231 Color c = display.getSystemColor(SWT.COLOR_GRAY);
2232 rgbs[0] = c.getRGB();
2233 c = display.getSystemColor(SWT.COLOR_LIST_FOREGROUND);
2234 rgbs[1] = c.getRGB();
2235 c = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
2236 rgbs[2] = c.getRGB();
2240 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
2241 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, rgbs[0]);
2243 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
2244 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225, 235, 224));
2246 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
2247 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
2248 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176, 180, 185));
2250 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176, 180));
2252 // store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION, true);
2253 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0, 128));
2254 // store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER, true);
2256 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION, true);
2257 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244, 200, 45));
2258 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER, true);
2260 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
2261 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128, 255));
2262 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER, false);
2264 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION, false);
2265 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34, 164, 99));
2266 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER, false);
2268 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION, false);
2269 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new RGB(192, 192, 192));
2270 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER, false);
2272 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION, false);
2273 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0, 0));
2274 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER, false);
2276 store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true);
2277 store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, false);
2279 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true);
2281 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
2283 store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false);
2284 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0, 0, 0));
2286 // WorkbenchChainedTextFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT);
2288 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0, 200, 100));
2289 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
2291 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FOREGROUND_COLOR, rgbs[1]);
2292 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR, true);
2294 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BACKGROUND_COLOR, rgbs[2]);
2295 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR, true);
2297 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
2298 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
2300 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
2301 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false);
2303 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
2304 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false);
2306 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_TAG_COLOR, new RGB(255, 0, 128));
2307 store.setDefault(PreferenceConstants.EDITOR_JAVA_TAG_BOLD, true);
2309 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0, 85));
2310 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
2312 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127, 127, 159));
2313 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD, false);
2315 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127, 159, 191));
2316 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
2318 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0, 85));
2319 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
2321 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
2322 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
2324 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_STRING_COLOR, new RGB(42, 0, 255));
2325 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false);
2327 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(0, 0, 0));
2328 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
2330 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127, 159, 191));
2331 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
2333 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127, 159));
2334 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
2336 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63, 191));
2337 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
2339 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63, 95, 191));
2340 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false);
2342 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
2343 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 500);
2345 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
2346 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(254, 241, 233));
2347 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, 0, 0));
2348 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(254, 241, 233));
2349 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(0, 0, 0));
2350 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(255, 255, 0));
2351 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(255, 0, 0));
2352 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, "$"); //$NON-NLS-1$
2353 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, "@"); //$NON-NLS-1$
2354 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML, "<&#"); //$NON-NLS-1$
2355 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, true);
2356 store.setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false);
2357 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
2358 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
2359 store.setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true);
2360 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, false);
2361 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, true);
2363 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
2364 store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
2365 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
2366 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_PHP, true);
2367 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
2368 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
2369 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
2370 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
2371 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS, false);
2372 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
2373 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, true);
2374 store.setDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE, false);
2376 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
2377 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
2379 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER, JavaPlugin.ID_BESTMATCH_HOVER);
2380 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2381 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER, JavaPlugin.ID_SOURCE_HOVER);
2382 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2383 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2384 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2385 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2386 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2388 String ctrl = Action.findModifierString(SWT.CTRL);
2389 store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS, "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$
2390 store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS, "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + SWT.CTRL); //$NON-NLS-1$
2391 store.setDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE, true);
2393 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true);
2394 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER, ctrl);
2395 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK, SWT.CTRL);
2398 store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
2399 store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER, "org.eclipse.jdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
2400 store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, false);
2401 store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, true);
2402 store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false);
2403 store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, true);
2405 // do more complicated stuff
2406 // NewJavaProjectPreferencePage.initDefaults(store);
2410 * Returns the JDT-UI preference store.
2412 * @return the JDT-UI preference store
2414 public static IPreferenceStore getPreferenceStore() {
2415 return PHPeclipsePlugin.getDefault().getPreferenceStore();
2419 // * Encodes a JRE library to be used in the named preference <code>NEWPROJECT_JRELIBRARY_LIST</code>.
2421 // * @param description a string value describing the JRE library. The description is used
2422 // * to indentify the JDR library in the UI
2423 // * @param entries an array of classpath entries to be encoded
2425 // * @return the encoded string.
2427 // public static String encodeJRELibrary(String description, IClasspathEntry[] entries) {
2428 // return NewJavaProjectPreferencePage.encodeJRELibrary(description, entries);
2432 // * Decodes an encoded JRE library and returns its description string.
2434 // * @return the description of an encoded JRE library
2436 // * @see #encodeJRELibrary(String, IClasspathEntry[])
2438 // public static String decodeJRELibraryDescription(String encodedLibrary) {
2439 // return NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
2443 // * Decodes an encoded JRE library and returns its classpath entries.
2445 // * @return the array of classpath entries of an encoded JRE library.
2447 // * @see #encodeJRELibrary(String, IClasspathEntry[])
2449 // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String encodedLibrary) {
2450 // return NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
2454 // * Returns the current configuration for the JRE to be used as default in new Java projects.
2455 // * This is a convenience method to access the named preference <code>NEWPROJECT_JRELIBRARY_LIST
2456 // * </code> with the index defined by <code> NEWPROJECT_JRELIBRARY_INDEX</code>.
2458 // * @return the current default set of classpath entries
2460 // * @see #NEWPROJECT_JRELIBRARY_LIST
2461 // * @see #NEWPROJECT_JRELIBRARY_INDEX
2463 // public static IClasspathEntry[] getDefaultJRELibrary() {
2464 // return NewJavaProjectPreferencePage.getDefaultJRELibrary();