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.phpeclipse.IPreferenceConstants;
14 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
16 import org.eclipse.jface.action.Action;
17 import org.eclipse.jface.preference.IPreferenceStore;
18 import org.eclipse.jface.preference.PreferenceConverter;
19 import org.eclipse.jface.resource.JFaceResources;
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;
25 import org.eclipse.ui.texteditor.WorkbenchChainedTextFontFieldEditor;
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 the key for the hover modifiers.
393 public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$
395 * The id of the best match hover contributed for extension point
396 * <code>javaEditorTextHovers</code>.
400 public static String ID_BESTMATCH_HOVER= "net.sourceforge.phpdt.ui.BestMatchHover"; //$NON-NLS-1$
403 * The id of the source code hover contributed for extension point
404 * <code>javaEditorTextHovers</code>.
408 public static String ID_SOURCE_HOVER= "net.sourceforge.phpdt.ui.JavaSourceHover"; //$NON-NLS-1$
411 * The id of the problem hover contributed for extension point
412 * <code>javaEditorTextHovers</code>.
416 public static String ID_PROBLEM_HOVER = "net.sourceforge.phpdt.ui.ProblemHover"; //$NON-NLS-1$
419 * A named preference that controls whether bracket matching highlighting is turned on or off.
421 * Value is of type <code>Boolean</code>.
424 public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
427 * A named preference that holds the color used to highlight matching brackets.
429 * Value is of type <code>String</code>. A RGB color value encoded as a string
430 * using class <code>PreferenceConverter</code>
433 * @see org.eclipse.jface.resource.StringConverter
434 * @see org.eclipse.jface.preference.PreferenceConverter
436 public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
439 * A named preference that controls whether the current line highlighting is turned on or off.
441 * Value is of type <code>Boolean</code>.
444 public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
447 * A named preference that holds the color used to highlight the current line.
449 * Value is of type <code>String</code>. A RGB color value encoded as a string
450 * using class <code>PreferenceConverter</code>
453 * @see org.eclipse.jface.resource.StringConverter
454 * @see org.eclipse.jface.preference.PreferenceConverter
456 public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
459 * A named preference that controls whether the print margin is turned on or off.
461 * Value is of type <code>Boolean</code>.
464 public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
467 * A named preference that holds the color used to render the print margin.
469 * Value is of type <code>String</code>. A RGB color value encoded as a string
470 * using class <code>PreferenceConverter</code>
473 * @see org.eclipse.jface.resource.StringConverter
474 * @see org.eclipse.jface.preference.PreferenceConverter
476 public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
479 * Print margin column. Int value.
481 public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
484 * A named preference that holds the color used for the find/replace scope.
486 * Value is of type <code>String</code>. A RGB color value encoded as a string
487 * using class <code>PreferenceConverter</code>
490 * @see org.eclipse.jface.resource.StringConverter
491 * @see org.eclipse.jface.preference.PreferenceConverter
493 public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
496 * A named preference that specifies if the editor uses spaces for tabs.
498 * Value is of type <code>Boolean</code>. If <code>true</code>spaces instead of tabs are used
499 * in the editor. If <code>false</code> the editor inserts a tab character when pressing the tab
503 public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
506 * A named preference that holds the number of spaces used per tab in the editor.
508 * Value is of type <code>Int</code>: positive int value specifying the number of
512 public final static String EDITOR_TAB_WIDTH = "net.sourceforge.phpdt.ui.editor.tab.width"; //$NON-NLS-1$
515 * A named preference that controls whether the outline view selection
516 * should stay in sync with with the element at the current cursor position.
518 * Value is of type <code>Boolean</code>.
522 public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
525 * A named preference that controls if correction indicators are shown in the UI.
527 * Value is of type <code>Boolean</code>.
530 public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
533 * A named preference that controls whether the editor shows problem indicators in text (squiggly lines).
535 * Value is of type <code>Boolean</code>.
538 // public final static String EDITOR_PROBLEM_INDICATION = "problemIndication"; //$NON-NLS-1$
541 * A named preference that holds the color used to render problem indicators.
543 * Value is of type <code>String</code>. A RGB color value encoded as a string
544 * using class <code>PreferenceConverter</code>
547 * @see #EDITOR_PROBLEM_INDICATION
548 * @see org.eclipse.jface.resource.StringConverter
549 * @see org.eclipse.jface.preference.PreferenceConverter
551 // public final static String EDITOR_PROBLEM_INDICATION_COLOR = "problemIndicationColor"; //$NON-NLS-1$
553 /**PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR;
554 * A named preference that controls whether the editor shows warning indicators in text (squiggly lines).
556 * Value is of type <code>Boolean</code>.
559 // public final static String EDITOR_WARNING_INDICATION = "warningIndication"; //$NON-NLS-1$
562 * A named preference that holds the color used to render warning indicators.
564 * Value is of type <code>String</code>. A RGB color value encoded as a string
565 * using class <code>PreferenceConverter</code>
568 * @see #EDITOR_WARNING_INDICATION
569 * @see org.eclipse.jface.resource.StringConverter
570 * @see org.eclipse.jface.preference.PreferenceConverter
572 // public final static String EDITOR_WARNING_INDICATION_COLOR = "warningIndicationColor"; //$NON-NLS-1$
575 * A named preference that controls whether the editor shows task indicators in text (squiggly lines).
577 * Value is of type <code>Boolean</code>.
580 public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
583 * A named preference that holds the color used to render task indicators.
585 * Value is of type <code>String</code>. A RGB color value encoded as a string
586 * using class <code>PreferenceConverter</code>
589 * @see #EDITOR_TASK_INDICATION
590 * @see org.eclipse.jface.resource.StringConverter
591 * @see org.eclipse.jface.preference.PreferenceConverter
593 public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
596 * A named preference that controls whether the editor shows bookmark
597 * indicators in text (squiggly lines).
599 * Value is of type <code>Boolean</code>.
603 public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
606 * A named preference that holds the color used to render bookmark indicators.
608 * Value is of type <code>String</code>. A RGB color value encoded as a string
609 * using class <code>PreferenceConverter</code>
612 * @see #EDITOR_BOOKMARK_INDICATION
613 * @see org.eclipse.jface.resource.StringConverter
614 * @see org.eclipse.jface.preference.PreferenceConverter
617 public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
620 * A named preference that controls whether the editor shows search
621 * indicators in text (squiggly lines).
623 * Value is of type <code>Boolean</code>.
627 public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
630 * A named preference that holds the color used to render search indicators.
632 * Value is of type <code>String</code>. A RGB color value encoded as a string
633 * using class <code>PreferenceConverter</code>
636 * @see #EDITOR_SEARCH_RESULT_INDICATION
637 * @see org.eclipse.jface.resource.StringConverter
638 * @see org.eclipse.jface.preference.PreferenceConverter
641 public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
644 * A named preference that controls whether the editor shows unknown
645 * indicators in text (squiggly lines).
647 * Value is of type <code>Boolean</code>.
651 public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
654 * A named preference that holds the color used to render unknown
657 * Value is of type <code>String</code>. A RGB color value encoded as a string
658 * using class <code>PreferenceConverter</code>
661 * @see #EDITOR_UNKNOWN_INDICATION
662 * @see org.eclipse.jface.resource.StringConverter
663 * @see org.eclipse.jface.preference.PreferenceConverter
666 public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
669 * A named preference that controls whether the overview ruler shows error
672 * Value is of type <code>Boolean</code>.
676 public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
679 * A named preference that controls whether the overview ruler shows warning
682 * Value is of type <code>Boolean</code>.
686 public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
689 * A named preference that controls whether the overview ruler shows task
692 * Value is of type <code>Boolean</code>.
696 public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
699 * A named preference that controls whether the overview ruler shows
700 * bookmark indicators.
702 * Value is of type <code>Boolean</code>.
706 public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
709 * A named preference that controls whether the overview ruler shows
710 * search result indicators.
712 * Value is of type <code>Boolean</code>.
716 public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
719 * A named preference that controls whether the overview ruler shows
720 * unknown indicators.
722 * Value is of type <code>Boolean</code>.
726 public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
729 * A named preference that controls whether the 'close strings' feature
730 * is enabled in PHP mode
732 * Value is of type <code>Boolean</code>.
736 public final static String EDITOR_CLOSE_STRINGS_PHP = "closeStringsPHP"; //$NON-NLS-1$
739 * A named preference that controls whether the 'wrap strings' feature is
742 * Value is of type <code>Boolean</code>.
746 public final static String EDITOR_WRAP_STRINGS = "wrapStrings"; //$NON-NLS-1$
749 * A named preference that controls whether the 'close brackets' feature is
750 * enabled in PHP mode
752 * Value is of type <code>Boolean</code>.
756 public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$
759 * A named preference that controls whether the 'close braces' feature is
762 * Value is of type <code>Boolean</code>.
766 public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
769 * A named preference that controls whether the 'close php docs' feature is
772 * Value is of type <code>Boolean</code>.
776 public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
779 * A named preference that controls whether the 'add JavaDoc tags' feature
782 * Value is of type <code>Boolean</code>.
786 public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
789 * A named preference that controls whether the 'format Javadoc tags'
790 * feature is enabled.
792 * Value is of type <code>Boolean</code>.
796 public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$
799 * A named preference that controls whether the 'smart paste' feature is
802 * Value is of type <code>Boolean</code>.
806 public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
809 * A named preference that controls whether the 'close strings' feature
810 * is enabled in HTML mode
812 * Value is of type <code>Boolean</code>.
816 public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$
819 * A named preference that controls whether the 'close brackets' feature is
820 * enabled in HTML mode
822 * Value is of type <code>Boolean</code>.
826 public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$
829 * A named preference that controls whether the 'smart home-end' feature is
832 * Value is of type <code>Boolean</code>.
836 public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
839 * A named preference that controls if temporary problems are evaluated and shown in the UI.
841 * Value is of type <code>Boolean</code>.
844 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
847 * A named preference that controls if the overview ruler is shown in the UI.
849 * Value is of type <code>Boolean</code>.
852 public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
855 * A named preference that controls if the line number ruler is shown in the UI.
857 * Value is of type <code>Boolean</code>.
860 public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$
863 * A named preference that holds the color used to render line numbers inside the line number ruler.
865 * Value is of type <code>String</code>. A RGB color value encoded as a string
866 * using class <code>PreferenceConverter</code>
869 * @see org.eclipse.jface.resource.StringConverter
870 * @see org.eclipse.jface.preference.PreferenceConverter
871 * @see #EDITOR_LINE_NUMBER_RULER
873 public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$
876 * A named preference that holds the color used to render linked positions inside code templates.
878 * Value is of type <code>String</code>. A RGB color value encoded as a string
879 * using class <code>PreferenceConverter</code>
882 * @see org.eclipse.jface.resource.StringConverter
883 * @see org.eclipse.jface.preference.PreferenceConverter
885 public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
888 * A named preference that holds the color used as the text foreground.
890 * Value is of type <code>String</code>. A RGB color value encoded as a string
891 * using class <code>PreferenceConverter</code>
894 * @see org.eclipse.jface.resource.StringConverter
895 * @see org.eclipse.jface.preference.PreferenceConverter
897 public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
900 * A named preference that describes if the system default foreground color
901 * is used as the text foreground.
903 * Value is of type <code>Boolean</code>.
906 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
909 * A named preference that holds the color used as the text background.
911 * Value is of type <code>String</code>. A RGB color value encoded as a string
912 * using class <code>PreferenceConverter</code>
915 * @see org.eclipse.jface.resource.StringConverter
916 * @see org.eclipse.jface.preference.PreferenceConverter
918 public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
921 * A named preference that describes if the system default background color
922 * is used as the text foreground.
924 * Value is of type <code>Boolean</code>.
927 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
930 * Preference key suffix for bold text style preference keys.
932 public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
935 * A named preference that holds the color used to render multi line comments.
937 * Value is of type <code>String</code>. A RGB color value encoded as a string
938 * using class <code>PreferenceConverter</code>
941 * @see org.eclipse.jface.resource.StringConverter
942 * @see org.eclipse.jface.preference.PreferenceConverter
944 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT;
947 * A named preference that controls whether multi line comments are rendered in bold.
949 * Value is of type <code>Boolean</code>. If <code>true</code> multi line comments are rendered
950 * in bold. If <code>false</code> the are rendered using no font style attribute.
953 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT + EDITOR_BOLD_SUFFIX;
956 * A named preference that holds the color used to render single line comments.
958 * Value is of type <code>String</code>. A RGB color value encoded as a string
959 * using class <code>PreferenceConverter</code>
962 * @see org.eclipse.jface.resource.StringConverter
963 * @see org.eclipse.jface.preference.PreferenceConverter
965 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT;
968 * A named preference that controls whether sinle line comments are rendered in bold.
970 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
971 * in bold. If <code>false</code> the are rendered using no font style attribute.
974 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT + EDITOR_BOLD_SUFFIX;
977 * A named preference that holds the color used to render php start and stop tags.
979 * Value is of type <code>String</code>. A RGB color value encoded as a string
980 * using class <code>PreferenceConverter</code>
983 * @see org.eclipse.jface.resource.StringConverter
984 * @see org.eclipse.jface.preference.PreferenceConverter
986 public final static String EDITOR_JAVA_TAG_COLOR = IPreferenceConstants.PHP_TAG;
989 * A named preference that controls whether php start and stop tags are rendered in bold.
991 * Value is of type <code>Boolean</code>.
994 public final static String EDITOR_JAVA_TAG_BOLD = IPreferenceConstants.PHP_TAG + EDITOR_BOLD_SUFFIX;
997 * A named preference that holds the color used to render php keywords.
999 * Value is of type <code>String</code>. A RGB color value encoded as a string
1000 * using class <code>PreferenceConverter</code>
1003 * @see org.eclipse.jface.resource.StringConverter
1004 * @see org.eclipse.jface.preference.PreferenceConverter
1006 public final static String EDITOR_JAVA_KEYWORD_COLOR = IPreferenceConstants.PHP_KEYWORD;
1009 * A named preference that controls whether keywords are rendered in bold.
1011 * Value is of type <code>Boolean</code>.
1014 public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD + EDITOR_BOLD_SUFFIX;
1017 * A named preference that holds the color used to render predefined php
1020 * Value is of type <code>String</code>. A RGB color value encoded as a string
1021 * using class <code>PreferenceConverter</code>
1024 * @see org.eclipse.jface.resource.StringConverter
1025 * @see org.eclipse.jface.preference.PreferenceConverter
1027 public final static String EDITOR_PHP_FUNCTIONNAME_COLOR = IPreferenceConstants.PHP_FUNCTIONNAME;
1030 * A named preference that controls whether function names are rendered in
1033 * Value is of type <code>Boolean</code>.
1036 public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_BOLD_SUFFIX;
1039 * A named preference that holds the color used to render php
1042 * Value is of type <code>String</code>. A RGB color value encoded as a string
1043 * using class <code>PreferenceConverter</code>
1046 * @see org.eclipse.jface.resource.StringConverter
1047 * @see org.eclipse.jface.preference.PreferenceConverter
1049 public final static String EDITOR_PHP_VARIABLE_COLOR = IPreferenceConstants.PHP_VARIABLE;
1052 * A named preference that controls whether variables are rendered in bold.
1054 * Value is of type <code>Boolean</code>.
1057 public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE + EDITOR_BOLD_SUFFIX;
1060 * A named preference that holds the color used to render php constants.
1062 * Value is of type <code>String</code>. A RGB color value encoded as a string
1063 * using class <code>PreferenceConverter</code>
1066 * @see org.eclipse.jface.resource.StringConverter
1067 * @see org.eclipse.jface.preference.PreferenceConverter
1069 public final static String EDITOR_PHP_CONSTANT_COLOR = IPreferenceConstants.PHP_CONSTANT;
1072 * A named preference that controls whether constants are rendered in bold.
1074 * Value is of type <code>Boolean</code>.
1077 public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT + EDITOR_BOLD_SUFFIX;
1080 * A named preference that holds the color used to render php types.
1082 * Value is of type <code>String</code>. A RGB color value encoded as a string
1083 * using class <code>PreferenceConverter</code>
1086 * @see org.eclipse.jface.resource.StringConverter
1087 * @see org.eclipse.jface.preference.PreferenceConverter
1089 public final static String EDITOR_PHP_TYPE_COLOR = IPreferenceConstants.PHP_TYPE;
1092 * A named preference that controls whether types are rendered in bold.
1094 * Value is of type <code>Boolean</code>.
1097 public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE + EDITOR_BOLD_SUFFIX;
1100 * A named preference that holds the color used to render string constants.
1102 * Value is of type <code>String</code>. A RGB color value encoded as a string
1103 * using class <code>PreferenceConverter</code>
1106 * @see org.eclipse.jface.resource.StringConverter
1107 * @see org.eclipse.jface.preference.PreferenceConverter
1109 public final static String EDITOR_STRING_COLOR = IPreferenceConstants.PHP_STRING;
1112 * A named preference that controls whether string constants are rendered in bold.
1114 * Value is of type <code>Boolean</code>.
1117 public final static String EDITOR_STRING_BOLD = IPreferenceConstants.PHP_STRING + EDITOR_BOLD_SUFFIX;
1120 * A named preference that holds the color used to render php default text.
1122 * Value is of type <code>String</code>. A RGB color value encoded as a string
1123 * using class <code>PreferenceConverter</code>
1126 * @see org.eclipse.jface.resource.StringConverter
1127 * @see org.eclipse.jface.preference.PreferenceConverter
1129 public final static String EDITOR_JAVA_DEFAULT_COLOR = IPreferenceConstants.PHP_DEFAULT;
1132 * A named preference that controls whether Java default text is rendered in bold.
1134 * Value is of type <code>Boolean</code>.
1137 public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT + EDITOR_BOLD_SUFFIX;
1140 * A named preference that holds the color used to render task tags.
1142 * Value is of type <code>String</code>. A RGB color value encoded as a string
1143 * using class <code>PreferenceConverter</code>
1146 * @see org.eclipse.jface.resource.StringConverter
1147 * @see org.eclipse.jface.preference.PreferenceConverter
1150 public final static String EDITOR_TASK_TAG_COLOR= IPreferenceConstants.TASK_TAG;
1153 * A named preference that controls whether task tags are rendered in bold.
1155 * Value is of type <code>Boolean</code>.
1159 public final static String EDITOR_TASK_TAG_BOLD= IPreferenceConstants.TASK_TAG + EDITOR_BOLD_SUFFIX;
1162 * A named preference that holds the color used to render phpdoc keywords.
1164 * Value is of type <code>String</code>. A RGB color value encoded as a string
1165 * using class <code>PreferenceConverter</code>
1168 * @see org.eclipse.jface.resource.StringConverter
1169 * @see org.eclipse.jface.preference.PreferenceConverter
1171 public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IPreferenceConstants.PHPDOC_KEYWORD;
1174 * A named preference that controls whether phpdoc keywords are rendered in bold.
1176 * Value is of type <code>Boolean</code>.
1179 public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD + EDITOR_BOLD_SUFFIX;
1182 * A named preference that holds the color used to render phpdoc tags.
1184 * Value is of type <code>String</code>. A RGB color value encoded as a string
1185 * using class <code>PreferenceConverter</code>
1188 * @see org.eclipse.jface.resource.StringConverter
1189 * @see org.eclipse.jface.preference.PreferenceConverter
1191 public final static String EDITOR_JAVADOC_TAG_COLOR = IPreferenceConstants.PHPDOC_TAG;
1194 * A named preference that controls whether phpdoc tags are rendered in bold.
1196 * Value is of type <code>Boolean</code>.
1199 public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG + EDITOR_BOLD_SUFFIX;
1202 * A named preference that holds the color used to render phpdoc links.
1204 * Value is of type <code>String</code>. A RGB color value encoded as a string
1205 * using class <code>PreferenceConverter</code>
1208 * @see org.eclipse.jface.resource.StringConverter
1209 * @see org.eclipse.jface.preference.PreferenceConverter
1211 public final static String EDITOR_JAVADOC_LINKS_COLOR = IPreferenceConstants.PHPDOC_LINK;
1214 * A named preference that controls whether phpdoc links are rendered in bold.
1216 * Value is of type <code>Boolean</code>.
1219 public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK + EDITOR_BOLD_SUFFIX;
1222 * A named preference that holds the color used to render phpdoc default text.
1224 * Value is of type <code>String</code>. A RGB color value encoded as a string
1225 * using class <code>PreferenceConverter</code>
1228 * @see org.eclipse.jface.resource.StringConverter
1229 * @see org.eclipse.jface.preference.PreferenceConverter
1231 public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IPreferenceConstants.PHPDOC_DEFAULT;
1234 * A named preference that controls whether phpdoc default text is rendered in bold.
1236 * Value is of type <code>Boolean</code>.
1239 public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT + EDITOR_BOLD_SUFFIX;
1242 * A named preference that holds the color used for 'linked-mode' underline.
1244 * Value is of type <code>String</code>. A RGB color value encoded as a string
1245 * using class <code>PreferenceConverter</code>
1248 * @see org.eclipse.jface.resource.StringConverter
1249 * @see org.eclipse.jface.preference.PreferenceConverter
1252 public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1255 * A named preference that controls whether hover tooltips in the editor are turned on or off.
1257 * Value is of type <code>Boolean</code>.
1260 public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1263 * A named preference that defines the hover shown when no control key is
1265 * <p>Value is of type <code>String</code>: possible values are <code>
1266 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1267 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a hover
1268 * contributed as <code>phpEditorTextHovers</code>.
1270 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1271 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1275 public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1278 * A named preference that defines the hover shown when the
1279 * <code>CTRL</code> modifier key is pressed.
1280 * <p>Value is of type <code>String</code>: possible values are <code>
1281 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1282 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1283 * hover contributed as <code>phpEditorTextHovers</code>.
1285 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1286 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1290 public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1293 * A named preference that defines the hover shown when the
1294 * <code>SHIFT</code> modifier key is pressed.
1295 * <p>Value is of type <code>String</code>: possible values are <code>
1296 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1297 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1298 * hover contributed as <code>phpEditorTextHovers</code>.
1300 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1301 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1302 * @see JavaUI ID_*_HOVER
1305 public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1308 * A named preference that defines the hover shown when the
1309 * <code>CTRL + ALT</code> modifier keys is pressed.
1310 * <p>Value is of type <code>String</code>: possible values are <code>
1311 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1312 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1313 * hover contributed as <code>phpEditorTextHovers</code>.
1315 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1316 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1317 * @see JavaUI ID_*_HOVER
1320 public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1323 * A named preference that defines the hover shown when the
1324 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1325 * <p>Value is of type <code>String</code>: possible values are <code>
1326 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1327 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1328 * hover contributed as <code>phpEditorTextHovers</code>.
1330 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1331 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1332 * @see JavaUI ID_*_HOVER
1335 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1338 * A named preference that defines the hover shown when the
1339 * <code>CTRL + SHIFT</code> modifier keys is pressed.
1340 * <p>Value is of type <code>String</code>: possible values are <code>
1341 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1342 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1343 * hover contributed as <code>phpEditorTextHovers</code>.
1345 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1346 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1347 * @see JavaUI ID_*_HOVER
1350 public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1353 * A named preference that defines the hover shown when the
1354 * <code>ALT</code> modifier key is pressed.
1355 * <p>Value is of type <code>String</code>: possible values are <code>
1356 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1357 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1358 * hover contributed as <code>phpEditorTextHovers</code>.
1360 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1361 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1362 * @see JavaUI ID_*_HOVER
1365 public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1368 * A string value used by the named preferences for hover configuration to
1369 * descibe that no hover should be shown for the given key modifiers.
1372 public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1375 * A string value used by the named preferences for hover configuration to
1376 * descibe that the default hover should be shown for the given key
1377 * modifiers. The default hover is described by the
1378 * <code>EDITOR_DEFAULT_HOVER</code> property.
1381 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1384 * A named preference that defines the hover named the 'default hover'.
1385 * Value is of type <code>String</code>: possible values are <code>
1386 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or <code> the hover id of a hover
1387 * contributed as <code>phpEditorTextHovers</code>.
1391 public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1394 * A named preference that controls if segmented view (show selected element only) is turned on or off.
1396 * Value is of type <code>Boolean</code>.
1399 public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1401 * A named preference that controls if browser like links are turned on or off.
1403 * Value is of type <code>Boolean</code>.
1408 public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
1411 * A named preference that controls the key modifier for browser like links.
1413 * Value is of type <code>String</code>.
1418 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
1421 * A named preference that controls if the Java code assist gets auto activated.
1423 * Value is of type <code>Boolean</code>.
1426 public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
1429 * A name preference that holds the auto activation delay time in milli seconds.
1431 * Value is of type <code>Int</code>.
1434 public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
1437 * A named preference that controls if code assist contains only visible proposals.
1439 * Value is of type <code>Boolean</code>. if <code>true<code> code assist only contains visible members. If
1440 * <code>false</code> all members are included.
1443 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
1446 * A named preference that controls if the Java code assist inserts a
1447 * proposal automatically if only one proposal is available.
1449 * Value is of type <code>Boolean</code>.
1453 public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
1456 * A named preference that controls if the Java code assist adds import
1459 * Value is of type <code>Boolean</code>.
1463 public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
1466 * A named preference that controls if the Java code assist only inserts
1467 * completions. If set to false the proposals can also _replace_ code.
1469 * Value is of type <code>Boolean</code>.
1473 public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
1476 * A named preference that controls whether code assist proposals filtering is case sensitive or not.
1478 * Value is of type <code>Boolean</code>.
1481 public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
1484 * A named preference that defines if code assist proposals are sorted in alphabetical order.
1486 * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical
1487 * order. If <code>false</code> that are unsorted.
1490 public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
1493 * A named preference that controls if argument names are filled in when a method is selected from as list
1494 * of code assist proposal.
1496 * Value is of type <code>Boolean</code>.
1499 public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
1502 * A named preference that controls if method arguments are guessed when a
1503 * method is selected from as list of code assist proposal.
1505 * Value is of type <code>Boolean</code>.
1509 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
1512 * A named preference that holds the characters that auto activate code assist
1515 * Value is of type <code>Sring</code>. All characters that trigger auto code
1516 * assist in PHP code.
1519 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
1522 * A named preference that holds the characters that auto activate code assist
1525 * Value is of type <code>Sring</code>. All characters that trigger auto code
1529 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
1532 * A named preference that holds the characters that auto activate code assist
1535 * Value is of type <code>Sring</code>. All characters that trigger auto code
1539 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
1542 * A named preference that holds the background color used in the code assist selection dialog.
1544 * Value is of type <code>String</code>. A RGB color value encoded as a string
1545 * using class <code>PreferenceConverter</code>
1548 * @see org.eclipse.jface.resource.StringConverter
1549 * @see org.eclipse.jface.preference.PreferenceConverter
1551 public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
1554 * A named preference that holds the foreground color used in the code assist selection dialog.
1556 * Value is of type <code>String</code>. A RGB color value encoded as a string
1557 * using class <code>PreferenceConverter</code>
1560 * @see org.eclipse.jface.resource.StringConverter
1561 * @see org.eclipse.jface.preference.PreferenceConverter
1563 public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
1566 * A named preference that holds the background color used for parameter hints.
1568 * Value is of type <code>String</code>. A RGB color value encoded as a string
1569 * using class <code>PreferenceConverter</code>
1572 * @see org.eclipse.jface.resource.StringConverter
1573 * @see org.eclipse.jface.preference.PreferenceConverter
1575 public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
1578 * A named preference that holds the foreground color used in the code assist selection dialog
1580 * Value is of type <code>String</code>. A RGB color value encoded as a string
1581 * using class <code>PreferenceConverter</code>
1584 * @see org.eclipse.jface.resource.StringConverter
1585 * @see org.eclipse.jface.preference.PreferenceConverter
1587 public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
1590 * A named preference that holds the background color used in the code
1591 * assist selection dialog to mark replaced code.
1593 * Value is of type <code>String</code>. A RGB color value encoded as a string
1594 * using class <code>PreferenceConverter</code>
1597 * @see org.eclipse.jface.resource.StringConverter
1598 * @see org.eclipse.jface.preference.PreferenceConverter
1601 public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
1604 * A named preference that holds the foreground color used in the code
1605 * assist selection dialog to mark replaced code.
1607 * Value is of type <code>String</code>. A RGB color value encoded as a string
1608 * using class <code>PreferenceConverter</code>
1611 * @see org.eclipse.jface.resource.StringConverter
1612 * @see org.eclipse.jface.preference.PreferenceConverter
1615 public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
1618 * A named preference that controls the behaviour of the refactoring wizard for showing the error page.
1620 * Value is of type <code>String</code>. Valid values are:
1621 * <code>REFACTOR_FATAL_SEVERITY</code>,
1622 * <code>REFACTOR_ERROR_SEVERITY</code>,
1623 * <code>REFACTOR_WARNING_SEVERITY</code>
1624 * <code>REFACTOR_INFO_SEVERITY</code>,
1625 * <code>REFACTOR_OK_SEVERITY</code>.
1628 * @see #REFACTOR_FATAL_SEVERITY
1629 * @see #REFACTOR_ERROR_SEVERITY
1630 * @see #REFACTOR_WARNING_SEVERITY
1631 * @see #REFACTOR_INFO_SEVERITY
1632 * @see #REFACTOR_OK_SEVERITY
1634 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
1637 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1639 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1641 public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
1644 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1646 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1648 public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
1651 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1653 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1655 public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
1658 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1660 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1662 public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
1665 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1667 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1669 public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
1672 * A named preference thet controls whether all dirty editors are automatically saved before a refactoring is
1675 * Value is of type <code>Boolean</code>.
1678 public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
1681 * A named preference that controls if the Java Browsing views are linked to the active editor.
1683 * Value is of type <code>Boolean</code>.
1686 * @see #LINK_PACKAGES_TO_EDITOR
1688 public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
1691 * A named preference that controls the layout of the Java Browsing views vertically. Boolean value.
1693 * Value is of type <code>Boolean</code>. If <code>true<code> the views are stacked vertical.
1694 * If <code>false</code> they are stacked horizontal.
1697 public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
1700 * A named preference that controls if templates are formatted when applied.
1702 * Value is of type <code>Boolean</code>.
1707 public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
1710 * A named preference that controls the key modifier mask for browser like links.
1711 * The value is only used if the value of <code>EDITOR_BROWSER_LIKE_LINKS</code>
1712 * cannot be resolved to valid SWT modifier bits.
1714 * Value is of type <code>String</code>.
1717 * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
1720 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
1723 * A named preference that defines the key for the hover modifier state masks.
1724 * The value is only used if the value of <code>EDITOR_TEXT_HOVER_MODIFIERS</code>
1725 * cannot be resolved to valid SWT modifier bits.
1728 * @see #EDITOR_TEXT_HOVER_MODIFIERS
1731 public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
1733 public static void initializeDefaultValues(IPreferenceStore store) {
1734 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
1736 // JavaBasePreferencePage
1737 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
1738 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, false);
1739 store.setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR, true);
1740 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
1741 store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
1742 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, PreferenceConstants.UPDATE_WHILE_EDITING);
1744 // AppearancePreferencePage
1745 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false);
1746 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, false);
1747 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
1748 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR, true);
1749 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
1750 store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
1751 store.setDefault(PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, true);
1753 // ImportOrganizePreferencePage
1754 store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, "php;phpx;org;com"); //$NON-NLS-1$
1755 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
1756 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
1758 // ClasspathVariablesPreferencePage
1759 // CodeFormatterPreferencePage
1760 // CompilerPreferencePage
1761 // no initialization needed
1763 // RefactoringPreferencePage
1764 store.setDefault(PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, PreferenceConstants.REFACTOR_ERROR_SEVERITY);
1765 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
1766 store.setDefault("RefactoringUI", "dialog");
1768 // TemplatePreferencePage
1769 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
1771 // CodeGenerationPreferencePage
1772 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX, false);
1773 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX, false);
1774 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX, "fg, f, _$, _, m_"); //$NON-NLS-1$
1775 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
1776 store.setDefault(PreferenceConstants.CODEGEN__JAVADOC_STUBS, true);
1777 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS, false);
1778 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
1780 // MembersOrderPreferencePage
1781 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SI,SF,SM,I,F,C,M"); //$NON-NLS-1$
1782 // must add here to guarantee that it is the first in the listener list
1783 // store.addPropertyChangeListener(PHPeclipsePlugin.getDefault().getMemberOrderPreferenceCache());
1785 // PHPEditorPreferencePage
1787 * Ensure that the display is accessed only in the UI thread.
1788 * Ensure that there are no side effects of switching the thread.
1790 final RGB[] rgbs = new RGB[3];
1791 final Display display = Display.getDefault();
1792 display.syncExec(new Runnable() {
1794 Color c = display.getSystemColor(SWT.COLOR_GRAY);
1795 rgbs[0] = c.getRGB();
1796 c = display.getSystemColor(SWT.COLOR_LIST_FOREGROUND);
1797 rgbs[1] = c.getRGB();
1798 c = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
1799 rgbs[2] = c.getRGB();
1803 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
1804 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, rgbs[0]);
1806 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
1807 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225, 235, 224));
1809 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
1810 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
1811 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176, 180, 185));
1813 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176, 180));
1815 // store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION, true);
1816 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0, 128));
1817 // store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER, true);
1819 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION, true);
1820 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244, 200, 45));
1821 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER, true);
1823 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
1824 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128, 255));
1825 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER, false);
1827 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION, false);
1828 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34, 164, 99));
1829 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER, false);
1831 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION, false);
1832 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new RGB(192, 192, 192));
1833 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER, false);
1835 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION, false);
1836 // PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0, 0));
1837 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER, false);
1839 store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true);
1840 store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, false);
1842 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true);
1844 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
1846 store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false);
1847 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0, 0, 0));
1849 WorkbenchChainedTextFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT);
1851 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0, 200, 100));
1852 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
1854 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FOREGROUND_COLOR, rgbs[1]);
1855 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR, true);
1857 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BACKGROUND_COLOR, rgbs[2]);
1858 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR, true);
1860 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
1861 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
1863 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
1864 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false);
1866 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
1867 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false);
1869 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_TAG_COLOR, new RGB(255, 0, 128));
1870 store.setDefault(PreferenceConstants.EDITOR_JAVA_TAG_BOLD, true);
1872 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0, 85));
1873 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
1875 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127, 127, 159));
1876 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD, false);
1878 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127, 159, 191));
1879 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
1881 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0, 85));
1882 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
1884 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
1885 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
1887 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_STRING_COLOR, new RGB(42, 0, 255));
1888 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false);
1890 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(0, 0, 0));
1891 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
1893 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127, 159, 191));
1894 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
1896 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127, 159));
1897 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
1899 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63, 191));
1900 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
1902 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63, 95, 191));
1903 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false);
1905 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
1906 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 500);
1908 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
1909 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(254, 241, 233));
1910 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, 0, 0));
1911 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(254, 241, 233));
1912 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(0, 0, 0));
1913 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(255, 255, 0));
1914 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(255, 0, 0));
1915 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, "$"); //$NON-NLS-1$
1916 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, "@"); //$NON-NLS-1$
1917 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML, "<&#"); //$NON-NLS-1$
1918 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, true);
1919 store.setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false);
1920 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
1921 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
1922 store.setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true);
1923 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, false);
1924 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, true);
1926 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
1927 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
1928 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_PHP, true);
1929 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
1930 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
1931 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
1932 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
1933 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
1934 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, true);
1936 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
1937 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
1939 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER, JavaPlugin.ID_BESTMATCH_HOVER);
1940 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1941 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER, JavaPlugin.ID_SOURCE_HOVER);
1942 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1943 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1944 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1945 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1946 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1948 String ctrl = Action.findModifierString(SWT.CTRL);
1949 store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS, "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$
1950 store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS, "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + SWT.CTRL); //$NON-NLS-1$
1952 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true);
1953 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER, ctrl);
1954 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK, SWT.CTRL);
1956 // do more complicated stuff
1957 // NewJavaProjectPreferencePage.initDefaults(store);
1961 * Returns the JDT-UI preference store.
1963 * @return the JDT-UI preference store
1965 public static IPreferenceStore getPreferenceStore() {
1966 return PHPeclipsePlugin.getDefault().getPreferenceStore();
1970 // * Encodes a JRE library to be used in the named preference <code>NEWPROJECT_JRELIBRARY_LIST</code>.
1972 // * @param description a string value describing the JRE library. The description is used
1973 // * to indentify the JDR library in the UI
1974 // * @param entries an array of classpath entries to be encoded
1976 // * @return the encoded string.
1978 // public static String encodeJRELibrary(String description, IClasspathEntry[] entries) {
1979 // return NewJavaProjectPreferencePage.encodeJRELibrary(description, entries);
1983 // * Decodes an encoded JRE library and returns its description string.
1985 // * @return the description of an encoded JRE library
1987 // * @see #encodeJRELibrary(String, IClasspathEntry[])
1989 // public static String decodeJRELibraryDescription(String encodedLibrary) {
1990 // return NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
1994 // * Decodes an encoded JRE library and returns its classpath entries.
1996 // * @return the array of classpath entries of an encoded JRE library.
1998 // * @see #encodeJRELibrary(String, IClasspathEntry[])
2000 // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String encodedLibrary) {
2001 // return NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
2005 // * Returns the current configuration for the JRE to be used as default in new Java projects.
2006 // * This is a convenience method to access the named preference <code>NEWPROJECT_JRELIBRARY_LIST
2007 // * </code> with the index defined by <code> NEWPROJECT_JRELIBRARY_INDEX</code>.
2009 // * @return the current default set of classpath entries
2011 // * @see #NEWPROJECT_JRELIBRARY_LIST
2012 // * @see #NEWPROJECT_JRELIBRARY_INDEX
2014 // public static IClasspathEntry[] getDefaultJRELibrary() {
2015 // return NewJavaProjectPreferencePage.getDefaultJRELibrary();