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.PHPeclipsePlugin;
15 import org.eclipse.jface.preference.IPreferenceStore;
16 import org.eclipse.jface.preference.PreferenceConverter;
17 import org.eclipse.jface.resource.JFaceResources;
18 import org.eclipse.swt.SWT;
19 import org.eclipse.swt.graphics.Color;
20 import org.eclipse.swt.graphics.RGB;
21 import org.eclipse.swt.widgets.Display;
22 import org.eclipse.ui.texteditor.AbstractTextEditor;
23 import org.eclipse.ui.texteditor.WorkbenchChainedTextFontFieldEditor;
25 //import org.phpeclipse.phpdt.core.IClasspathEntry;
27 import net.sourceforge.phpdt.ui.text.IJavaColorConstants;
29 //import org.phpeclipse.phpdt.internal.ui.JavaPlugin;
30 //import org.phpeclipse.phpdt.internal.ui.preferences.NewJavaProjectPreferencePage;
33 * Preference constants used in the JDT-UI preference store. Clients should only read the
34 * JDT-UI preference store using these values. Clients are not allowed to modify the
35 * preference store programmatically.
39 public class PreferenceConstants {
41 private PreferenceConstants() {
45 * A named preference that controls return type rendering of methods in the UI.
47 * Value is of type <code>Boolean</code>: if <code>true</code> return types
51 public static final String APPEARANCE_METHOD_RETURNTYPE = "net.sourceforge.phpdt.ui.methodreturntype"; //$NON-NLS-1$
54 * A named preference that controls if override indicators are rendered in the UI.
56 * Value is of type <code>Boolean</code>: if <code>true</code> override
57 * indicators are rendered
60 public static final String APPEARANCE_OVERRIDE_INDICATOR = "net.sourceforge.phpdt.ui.overrideindicator"; //$NON-NLS-1$
63 * A named preference that defines the pattern used for package name compression.
65 * Value is of type <code>String</code>. For example foe the given package name 'org.eclipse.jdt' pattern
66 * '.' will compress it to '..jdt', '1~' to 'o~.e~.jdt'.
69 public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW = "PackagesView.pkgNamePatternForPackagesView"; //$NON-NLS-1$
72 * A named preference that controls if package name compression is turned on or off.
74 * Value is of type <code>Boolean</code>.
77 * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
79 public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "net.sourceforge.phpdt.ui.compresspackagenames"; //$NON-NLS-1$
82 * A named preference that controls if empty inner packages are folded in
83 * the hierarchical mode of the package explorer.
85 * Value is of type <code>Boolean</code>: if <code>true</code> empty
86 * inner packages are folded.
90 public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "net.sourceforge.phpdt.ui.flatPackagesInPackageExplorer"; //$NON-NLS-1$
93 * A named preference that defines how member elements are ordered by the
94 * Java views using the <code>JavaElementSorter</code>.
96 * Value is of type <code>String</code>: A comma separated list of the
97 * following entries. Each entry must be in the list, no duplication. List
98 * order defines the sort order.
100 * <li><b>T</b>: Types</li>
101 * <li><b>C</b>: Constructors</li>
102 * <li><b>I</b>: Initializers</li>
103 * <li><b>M</b>: Methods</li>
104 * <li><b>F</b>: Fields</li>
105 * <li><b>SI</b>: Static Initializers</li>
106 * <li><b>SM</b>: Static Methods</li>
107 * <li><b>SF</b>: Static Fields</li>
112 public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$
115 * A named preference that controls if prefix removal during setter/getter generation is turned on or off.
117 * Value is of type <code>Boolean</code>.
120 public static final String CODEGEN_USE_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.enable"; //$NON-NLS-1$
123 * A named preference that holds a list of prefixes to be removed from a local variable to compute setter
126 * Value is of type <code>String</code>: comma separated list of prefixed
129 * @see #CODEGEN_USE_GETTERSETTER_PREFIX
131 public static final String CODEGEN_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.list"; //$NON-NLS-1$
134 * A named preference that controls if suffix removal during setter/getter generation is turned on or off.
136 * Value is of type <code>Boolean</code>.
139 public static final String CODEGEN_USE_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.enable"; //$NON-NLS-1$
142 * A named preference that holds a list of suffixes to be removed from a local variable to compute setter
145 * Value is of type <code>String</code>: comma separated list of suffixes
148 * @see #CODEGEN_USE_GETTERSETTER_SUFFIX
150 public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
153 * A name preference that controls if a JavaDoc stub gets added to newly created types and methods.
155 * Value is of type <code>Boolean</code>.
158 public static final String CODEGEN__JAVADOC_STUBS = "net.sourceforge.phpdt.ui.phpdoc"; //$NON-NLS-1$
161 * A named preference that controls if a non-phpdoc comment gets added to methods generated via the
162 * "Override Methods" operation.
164 * Value is of type <code>Boolean</code>.
167 public static final String CODEGEN__NON_JAVADOC_COMMENTS = "net.sourceforge.phpdt.ui.seecomments"; //$NON-NLS-1$
170 * A named preference that controls if a file comment gets added to newly created files.
172 * Value is of type <code>Boolean</code>.
175 public static final String CODEGEN__FILE_COMMENTS = "net.sourceforge.phpdt.ui.filecomments"; //$NON-NLS-1$
178 * A named preference that holds a list of comma separated package names. The list specifies the import order used by
179 * the "Organize Imports" opeation.
181 * Value is of type <code>String</code>: semicolon separated list of package
185 public static final String ORGIMPORTS_IMPORTORDER = "net.sourceforge.phpdt.ui.importorder"; //$NON-NLS-1$
188 * A named preference that specifies the number of imports added before a star-import declaration is used.
190 * Value is of type <code>Int</code>: positive value specifing the number of non star-import is used
193 public static final String ORGIMPORTS_ONDEMANDTHRESHOLD = "net.sourceforge.phpdt.ui.ondemandthreshold"; //$NON-NLS-1$
196 * A named preferences that controls if types that start with a lower case letters get added by the
197 * "Organize Import" operation.
199 * Value is of type <code>Boolean</code>.
202 public static final String ORGIMPORTS_IGNORELOWERCASE = "net.sourceforge.phpdt.ui.ignorelowercasenames"; //$NON-NLS-1$
205 * A named preference that speficies whether children of a compilation unit are shown in the package explorer.
207 * Value is of type <code>Boolean</code>.
210 public static final String SHOW_CU_CHILDREN = "net.sourceforge.phpdt.ui.packages.cuchildren"; //$NON-NLS-1$
213 * A named preference that controls whether the package explorer's selection is linked to the active editor.
215 * Value is of type <code>Boolean</code>.
218 public static final String LINK_PACKAGES_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktoeditor"; //$NON-NLS-1$
221 * A named preference that controls whether the hierarchy view's selection is linked to the active editor.
223 * Value is of type <code>Boolean</code>.
226 public static final String LINK_TYPEHIERARCHY_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
229 * A named preference that controls whether the browsing view's selection is
230 * linked to the active editor.
232 * Value is of type <code>Boolean</code>.
236 public static final String LINK_BROWSING_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
239 * A named preference that controls whether new projects are generated using source and output folder.
241 * Value is of type <code>Boolean</code>. if <code>true</code> new projects are created with a source and
242 * output folder. If <code>false</code> source and output folder equals to the project.
245 public static final String SRCBIN_FOLDERS_IN_NEWPROJ = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
248 * A named preference that specifies the source folder name used when creating a new Java project. Value is inactive
249 * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
251 * Value is of type <code>String</code>.
254 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
256 public static final String SRCBIN_SRCNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
259 * A named preference that specifies the output folder name used when creating a new Java project. Value is inactive
260 * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
262 * Value is of type <code>String</code>.
265 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
267 public static final String SRCBIN_BINNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
270 * A named preference that holds a list of possible JRE libraries used by the New Java Project wizard. An library
271 * consists of a description and an arbitrary number of <code>IClasspathEntry</code>s, that will represent the
272 * JRE on the new project's classpath.
274 * Value is of type <code>String</code>: a semicolon separated list of encoded JRE libraries.
275 * <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines the currently used library. Clients
276 * should use the method <code>encodeJRELibrary</code> to encode a JRE library into a string
277 * and the methods <code>decodeJRELibraryDescription(String)</code> and <code>
278 * decodeJRELibraryClasspathEntries(String)</code> to decode the description and the array
279 * of classpath entries from an encoded string.
282 * @see #NEWPROJECT_JRELIBRARY_INDEX
283 * @see #encodeJRELibrary(String, IClasspathEntry[])
284 * @see #decodeJRELibraryDescription(String)
285 * @see #decodeJRELibraryClasspathEntries(String)
287 public static final String NEWPROJECT_JRELIBRARY_LIST = "net.sourceforge.phpdt.ui.wizards.jre.list"; //$NON-NLS-1$
290 * A named preferences that specifies the current active JRE library.
292 * Value is of type <code>Int</code>: an index into the list of possible JRE libraries.
295 * @see #NEWPROJECT_JRELIBRARY_LIST
297 public static final String NEWPROJECT_JRELIBRARY_INDEX = "net.sourceforge.phpdt.ui.wizards.jre.index"; //$NON-NLS-1$
300 * A named preference that controls if a new type hierarchy gets opened in a
301 * new type hierarchy perspective or inside the type hierarchy view part.
303 * Value is of type <code>String</code>: possible values are <code>
304 * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code> or <code>
305 * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
308 * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
309 * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
311 public static final String OPEN_TYPE_HIERARCHY = "net.sourceforge.phpdt.ui.openTypeHierarchy"; //$NON-NLS-1$
314 * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
316 * @see #OPEN_TYPE_HIERARCHY
318 public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$
321 * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
323 * @see #OPEN_TYPE_HIERARCHY
325 public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$
328 * A named preference that controls the behaviour when double clicking on a container in the packages view.
330 * Value is of type <code>String</code>: possible values are <code>
331 * DOUBLE_CLICK_GOES_INTO</code> or <code>
332 * DOUBLE_CLICK_EXPANDS</code>.
335 * @see #DOUBLE_CLICK_EXPANDS
336 * @see #DOUBLE_CLICK_GOES_INTO
338 public static final String DOUBLE_CLICK = "packageview.doubleclick"; //$NON-NLS-1$
341 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
345 public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$
348 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
352 public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$
355 * A named preference that controls whether Java views update their presentation while editing or when saving the
356 * content of an editor.
358 * Value is of type <code>String</code>: possible values are <code>
359 * UPDATE_ON_SAVE</code> or <code>
360 * UPDATE_WHILE_EDITING</code>.
363 * @see #UPDATE_ON_SAVE
364 * @see #UPDATE_WHILE_EDITING
366 public static final String UPDATE_JAVA_VIEWS = "JavaUI.update"; //$NON-NLS-1$
369 * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
371 * @see #UPDATE_JAVA_VIEWS
373 public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$
376 * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
378 * @see #UPDATE_JAVA_VIEWS
380 public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$
383 * A named preference that holds the path of the Javadoc command used by the Javadoc creation wizard.
385 * Value is of type <code>String</code>.
388 public static final String JAVADOC_COMMAND = "command"; //$NON-NLS-1$
391 * A named preference that controls whether bracket matching highlighting is turned on or off.
393 * Value is of type <code>Boolean</code>.
396 public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
399 * A named preference that holds the color used to highlight matching brackets.
401 * Value is of type <code>String</code>. A RGB color value encoded as a string
402 * using class <code>PreferenceConverter</code>
405 * @see org.eclipse.jface.resource.StringConverter
406 * @see org.eclipse.jface.preference.PreferenceConverter
408 public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
411 * A named preference that controls whether the current line highlighting is turned on or off.
413 * Value is of type <code>Boolean</code>.
416 public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
419 * A named preference that holds the color used to highlight the current line.
421 * Value is of type <code>String</code>. A RGB color value encoded as a string
422 * using class <code>PreferenceConverter</code>
425 * @see org.eclipse.jface.resource.StringConverter
426 * @see org.eclipse.jface.preference.PreferenceConverter
428 public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
431 * A named preference that controls whether the print margin is turned on or off.
433 * Value is of type <code>Boolean</code>.
436 public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
439 * A named preference that holds the color used to render the print margin.
441 * Value is of type <code>String</code>. A RGB color value encoded as a string
442 * using class <code>PreferenceConverter</code>
445 * @see org.eclipse.jface.resource.StringConverter
446 * @see org.eclipse.jface.preference.PreferenceConverter
448 public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
451 * Print margin column. Int value.
453 public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
456 * A named preference that holds the color used for the find/replace scope.
458 * Value is of type <code>String</code>. A RGB color value encoded as a string
459 * using class <code>PreferenceConverter</code>
462 * @see org.eclipse.jface.resource.StringConverter
463 * @see org.eclipse.jface.preference.PreferenceConverter
465 public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
468 * A named preference that specifies if the editor uses spaces for tabs.
470 * Value is of type <code>Boolean</code>. If <code>true</code>spaces instead of tabs are used
471 * in the editor. If <code>false</code> the editor inserts a tab character when pressing the tab
475 public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
478 * A named preference that holds the number of spaces used per tab in the editor.
480 * Value is of type <code>Int</code>: positive int value specifying the number of
484 public final static String EDITOR_TAB_WIDTH = "net.sourceforge.phpdt.ui.editor.tab.width"; //$NON-NLS-1$
487 * A named preference that controls whether the outline view selection
488 * should stay in sync with with the element at the current cursor position.
490 * Value is of type <code>Boolean</code>.
494 public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
497 * A named preference that controls if correction indicators are shown in the UI.
499 * Value is of type <code>Boolean</code>.
502 public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
505 * A named preference that controls whether the editor shows problem indicators in text (squiggly lines).
507 * Value is of type <code>Boolean</code>.
510 public final static String EDITOR_PROBLEM_INDICATION = "problemIndication"; //$NON-NLS-1$
513 * A named preference that holds the color used to render problem indicators.
515 * Value is of type <code>String</code>. A RGB color value encoded as a string
516 * using class <code>PreferenceConverter</code>
519 * @see #EDITOR_PROBLEM_INDICATION
520 * @see org.eclipse.jface.resource.StringConverter
521 * @see org.eclipse.jface.preference.PreferenceConverter
523 public final static String EDITOR_PROBLEM_INDICATION_COLOR = "problemIndicationColor"; //$NON-NLS-1$
525 /**PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR;
526 * A named preference that controls whether the editor shows warning indicators in text (squiggly lines).
528 * Value is of type <code>Boolean</code>.
531 public final static String EDITOR_WARNING_INDICATION = "warningIndication"; //$NON-NLS-1$
534 * A named preference that holds the color used to render warning indicators.
536 * Value is of type <code>String</code>. A RGB color value encoded as a string
537 * using class <code>PreferenceConverter</code>
540 * @see #EDITOR_WARNING_INDICATION
541 * @see org.eclipse.jface.resource.StringConverter
542 * @see org.eclipse.jface.preference.PreferenceConverter
544 public final static String EDITOR_WARNING_INDICATION_COLOR = "warningIndicationColor"; //$NON-NLS-1$
547 * A named preference that controls whether the editor shows task indicators in text (squiggly lines).
549 * Value is of type <code>Boolean</code>.
552 public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
555 * A named preference that holds the color used to render task indicators.
557 * Value is of type <code>String</code>. A RGB color value encoded as a string
558 * using class <code>PreferenceConverter</code>
561 * @see #EDITOR_TASK_INDICATION
562 * @see org.eclipse.jface.resource.StringConverter
563 * @see org.eclipse.jface.preference.PreferenceConverter
565 public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
568 * A named preference that controls whether the editor shows bookmark
569 * indicators in text (squiggly lines).
571 * Value is of type <code>Boolean</code>.
575 public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
578 * A named preference that holds the color used to render bookmark indicators.
580 * Value is of type <code>String</code>. A RGB color value encoded as a string
581 * using class <code>PreferenceConverter</code>
584 * @see #EDITOR_BOOKMARK_INDICATION
585 * @see org.eclipse.jface.resource.StringConverter
586 * @see org.eclipse.jface.preference.PreferenceConverter
589 public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
592 * A named preference that controls whether the editor shows search
593 * indicators in text (squiggly lines).
595 * Value is of type <code>Boolean</code>.
599 public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
602 * A named preference that holds the color used to render search indicators.
604 * Value is of type <code>String</code>. A RGB color value encoded as a string
605 * using class <code>PreferenceConverter</code>
608 * @see #EDITOR_SEARCH_RESULT_INDICATION
609 * @see org.eclipse.jface.resource.StringConverter
610 * @see org.eclipse.jface.preference.PreferenceConverter
613 public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
616 * A named preference that controls whether the editor shows unknown
617 * indicators in text (squiggly lines).
619 * Value is of type <code>Boolean</code>.
623 public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
626 * A named preference that holds the color used to render unknown
629 * Value is of type <code>String</code>. A RGB color value encoded as a string
630 * using class <code>PreferenceConverter</code>
633 * @see #EDITOR_UNKNOWN_INDICATION
634 * @see org.eclipse.jface.resource.StringConverter
635 * @see org.eclipse.jface.preference.PreferenceConverter
638 public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
641 * A named preference that controls whether the overview ruler shows error
644 * Value is of type <code>Boolean</code>.
648 public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
651 * A named preference that controls whether the overview ruler shows warning
654 * Value is of type <code>Boolean</code>.
658 public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
661 * A named preference that controls whether the overview ruler shows task
664 * Value is of type <code>Boolean</code>.
668 public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
671 * A named preference that controls whether the overview ruler shows
672 * bookmark indicators.
674 * Value is of type <code>Boolean</code>.
678 public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
681 * A named preference that controls whether the overview ruler shows
682 * search result indicators.
684 * Value is of type <code>Boolean</code>.
688 public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
691 * A named preference that controls whether the overview ruler shows
692 * unknown indicators.
694 * Value is of type <code>Boolean</code>.
698 public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
701 * A named preference that controls whether the 'close strings' feature
702 * is enabled in PHP mode
704 * Value is of type <code>Boolean</code>.
708 public final static String EDITOR_CLOSE_STRINGS_PHP = "closeStringsPHP"; //$NON-NLS-1$
711 * A named preference that controls whether the 'wrap strings' feature is
714 * Value is of type <code>Boolean</code>.
718 public final static String EDITOR_WRAP_STRINGS = "wrapStrings"; //$NON-NLS-1$
721 * A named preference that controls whether the 'close brackets' feature is
722 * enabled in PHP mode
724 * Value is of type <code>Boolean</code>.
728 public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$
731 * A named preference that controls whether the 'close braces' feature is
734 * Value is of type <code>Boolean</code>.
738 public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
741 * A named preference that controls whether the 'close php docs' feature is
744 * Value is of type <code>Boolean</code>.
748 public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
751 * A named preference that controls whether the 'add JavaDoc tags' feature
754 * Value is of type <code>Boolean</code>.
758 public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
761 * A named preference that controls whether the 'format Javadoc tags'
762 * feature is enabled.
764 * Value is of type <code>Boolean</code>.
768 public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$
771 * A named preference that controls whether the 'smart paste' feature is
774 * Value is of type <code>Boolean</code>.
778 public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
781 * A named preference that controls whether the 'close strings' feature
782 * is enabled in HTML mode
784 * Value is of type <code>Boolean</code>.
788 public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$
791 * A named preference that controls whether the 'close brackets' feature is
792 * enabled in HTML mode
794 * Value is of type <code>Boolean</code>.
798 public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$
801 * A named preference that controls whether the 'smart home-end' feature is
804 * Value is of type <code>Boolean</code>.
808 public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
811 * A named preference that controls if temporary problems are evaluated and shown in the UI.
813 * Value is of type <code>Boolean</code>.
816 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
819 * A named preference that controls if the overview ruler is shown in the UI.
821 * Value is of type <code>Boolean</code>.
824 public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
827 * A named preference that controls if the line number ruler is shown in the UI.
829 * Value is of type <code>Boolean</code>.
832 public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$
835 * A named preference that holds the color used to render line numbers inside the line number ruler.
837 * Value is of type <code>String</code>. A RGB color value encoded as a string
838 * using class <code>PreferenceConverter</code>
841 * @see org.eclipse.jface.resource.StringConverter
842 * @see org.eclipse.jface.preference.PreferenceConverter
843 * @see #EDITOR_LINE_NUMBER_RULER
845 public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$
848 * A named preference that holds the color used to render linked positions inside code templates.
850 * Value is of type <code>String</code>. A RGB color value encoded as a string
851 * using class <code>PreferenceConverter</code>
854 * @see org.eclipse.jface.resource.StringConverter
855 * @see org.eclipse.jface.preference.PreferenceConverter
857 public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
860 * A named preference that holds the color used as the text foreground.
862 * Value is of type <code>String</code>. A RGB color value encoded as a string
863 * using class <code>PreferenceConverter</code>
866 * @see org.eclipse.jface.resource.StringConverter
867 * @see org.eclipse.jface.preference.PreferenceConverter
869 public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
872 * A named preference that describes if the system default foreground color
873 * is used as the text foreground.
875 * Value is of type <code>Boolean</code>.
878 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
881 * A named preference that holds the color used as the text background.
883 * Value is of type <code>String</code>. A RGB color value encoded as a string
884 * using class <code>PreferenceConverter</code>
887 * @see org.eclipse.jface.resource.StringConverter
888 * @see org.eclipse.jface.preference.PreferenceConverter
890 public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
893 * A named preference that describes if the system default background color
894 * is used as the text foreground.
896 * Value is of type <code>Boolean</code>.
899 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
902 * Preference key suffix for bold text style preference keys.
904 public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
907 * A named preference that holds the color used to render multi line comments.
909 * Value is of type <code>String</code>. A RGB color value encoded as a string
910 * using class <code>PreferenceConverter</code>
913 * @see org.eclipse.jface.resource.StringConverter
914 * @see org.eclipse.jface.preference.PreferenceConverter
916 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IJavaColorConstants.PHP_MULTI_LINE_COMMENT;
919 * A named preference that controls whether multi line comments are rendered in bold.
921 * Value is of type <code>Boolean</code>. If <code>true</code> multi line comments are rendered
922 * in bold. If <code>false</code> the are rendered using no font style attribute.
925 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IJavaColorConstants.PHP_MULTI_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
928 * A named preference that holds the color used to render single line comments.
930 * Value is of type <code>String</code>. A RGB color value encoded as a string
931 * using class <code>PreferenceConverter</code>
934 * @see org.eclipse.jface.resource.StringConverter
935 * @see org.eclipse.jface.preference.PreferenceConverter
937 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IJavaColorConstants.PHP_SINGLE_LINE_COMMENT;
940 * A named preference that controls whether sinle line comments are rendered in bold.
942 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
943 * in bold. If <code>false</code> the are rendered using no font style attribute.
946 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IJavaColorConstants.PHP_SINGLE_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
949 * A named preference that holds the color used to render php keywords.
951 * Value is of type <code>String</code>. A RGB color value encoded as a string
952 * using class <code>PreferenceConverter</code>
955 * @see org.eclipse.jface.resource.StringConverter
956 * @see org.eclipse.jface.preference.PreferenceConverter
958 public final static String EDITOR_JAVA_KEYWORD_COLOR = IJavaColorConstants.PHP_KEYWORD;
961 * A named preference that controls whether keywords are rendered in bold.
963 * Value is of type <code>Boolean</code>.
966 public final static String EDITOR_JAVA_KEYWORD_BOLD = IJavaColorConstants.PHP_KEYWORD + EDITOR_BOLD_SUFFIX;
969 * A named preference that holds the color used to render predefined php
972 * Value is of type <code>String</code>. A RGB color value encoded as a string
973 * using class <code>PreferenceConverter</code>
976 * @see org.eclipse.jface.resource.StringConverter
977 * @see org.eclipse.jface.preference.PreferenceConverter
979 public final static String EDITOR_PHP_FUNCTIONNAME_COLOR = IJavaColorConstants.PHP_FUNCTIONNAME;
982 * A named preference that controls whether function names are rendered in
985 * Value is of type <code>Boolean</code>.
988 public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IJavaColorConstants.PHP_FUNCTIONNAME + EDITOR_BOLD_SUFFIX;
991 * A named preference that holds the color used to render php
994 * Value is of type <code>String</code>. A RGB color value encoded as a string
995 * using class <code>PreferenceConverter</code>
998 * @see org.eclipse.jface.resource.StringConverter
999 * @see org.eclipse.jface.preference.PreferenceConverter
1001 public final static String EDITOR_PHP_VARIABLE_COLOR = IJavaColorConstants.PHP_VARIABLE;
1004 * A named preference that controls whether variables are rendered in bold.
1006 * Value is of type <code>Boolean</code>.
1009 public final static String EDITOR_PHP_VARIABLE_BOLD = IJavaColorConstants.PHP_VARIABLE + EDITOR_BOLD_SUFFIX;
1012 * A named preference that holds the color used to render php constants.
1014 * Value is of type <code>String</code>. A RGB color value encoded as a string
1015 * using class <code>PreferenceConverter</code>
1018 * @see org.eclipse.jface.resource.StringConverter
1019 * @see org.eclipse.jface.preference.PreferenceConverter
1021 public final static String EDITOR_PHP_CONSTANT_COLOR = IJavaColorConstants.PHP_CONSTANT;
1024 * A named preference that controls whether constants are rendered in bold.
1026 * Value is of type <code>Boolean</code>.
1029 public final static String EDITOR_PHP_CONSTANT_BOLD = IJavaColorConstants.PHP_CONSTANT + EDITOR_BOLD_SUFFIX;
1032 * A named preference that holds the color used to render php types.
1034 * Value is of type <code>String</code>. A RGB color value encoded as a string
1035 * using class <code>PreferenceConverter</code>
1038 * @see org.eclipse.jface.resource.StringConverter
1039 * @see org.eclipse.jface.preference.PreferenceConverter
1041 public final static String EDITOR_PHP_TYPE_COLOR = IJavaColorConstants.PHP_TYPE;
1044 * A named preference that controls whether types are rendered in bold.
1046 * Value is of type <code>Boolean</code>.
1049 public final static String EDITOR_PHP_TYPE_BOLD = IJavaColorConstants.PHP_TYPE + EDITOR_BOLD_SUFFIX;
1052 * A named preference that holds the color used to render string constants.
1054 * Value is of type <code>String</code>. A RGB color value encoded as a string
1055 * using class <code>PreferenceConverter</code>
1058 * @see org.eclipse.jface.resource.StringConverter
1059 * @see org.eclipse.jface.preference.PreferenceConverter
1061 public final static String EDITOR_STRING_COLOR = IJavaColorConstants.PHP_STRING;
1064 * A named preference that controls whether string constants are rendered in bold.
1066 * Value is of type <code>Boolean</code>.
1069 public final static String EDITOR_STRING_BOLD = IJavaColorConstants.PHP_STRING + EDITOR_BOLD_SUFFIX;
1072 * A named preference that holds the color used to render php default text.
1074 * Value is of type <code>String</code>. A RGB color value encoded as a string
1075 * using class <code>PreferenceConverter</code>
1078 * @see org.eclipse.jface.resource.StringConverter
1079 * @see org.eclipse.jface.preference.PreferenceConverter
1081 public final static String EDITOR_JAVA_DEFAULT_COLOR = IJavaColorConstants.PHP_DEFAULT;
1084 * A named preference that controls whether Java default text is rendered in bold.
1086 * Value is of type <code>Boolean</code>.
1089 public final static String EDITOR_JAVA_DEFAULT_BOLD = IJavaColorConstants.PHP_DEFAULT + EDITOR_BOLD_SUFFIX;
1092 * A named preference that holds the color used to render phpdoc keywords.
1094 * Value is of type <code>String</code>. A RGB color value encoded as a string
1095 * using class <code>PreferenceConverter</code>
1098 * @see org.eclipse.jface.resource.StringConverter
1099 * @see org.eclipse.jface.preference.PreferenceConverter
1101 public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IJavaColorConstants.PHPDOC_KEYWORD;
1104 * A named preference that controls whether phpdoc keywords are rendered in bold.
1106 * Value is of type <code>Boolean</code>.
1109 public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IJavaColorConstants.PHPDOC_KEYWORD + EDITOR_BOLD_SUFFIX;
1112 * A named preference that holds the color used to render phpdoc tags.
1114 * Value is of type <code>String</code>. A RGB color value encoded as a string
1115 * using class <code>PreferenceConverter</code>
1118 * @see org.eclipse.jface.resource.StringConverter
1119 * @see org.eclipse.jface.preference.PreferenceConverter
1121 public final static String EDITOR_JAVADOC_TAG_COLOR = IJavaColorConstants.PHPDOC_TAG;
1124 * A named preference that controls whether phpdoc tags are rendered in bold.
1126 * Value is of type <code>Boolean</code>.
1129 public final static String EDITOR_JAVADOC_TAG_BOLD = IJavaColorConstants.PHPDOC_TAG + EDITOR_BOLD_SUFFIX;
1132 * A named preference that holds the color used to render phpdoc links.
1134 * Value is of type <code>String</code>. A RGB color value encoded as a string
1135 * using class <code>PreferenceConverter</code>
1138 * @see org.eclipse.jface.resource.StringConverter
1139 * @see org.eclipse.jface.preference.PreferenceConverter
1141 public final static String EDITOR_JAVADOC_LINKS_COLOR = IJavaColorConstants.PHPDOC_LINK;
1144 * A named preference that controls whether phpdoc links are rendered in bold.
1146 * Value is of type <code>Boolean</code>.
1149 public final static String EDITOR_JAVADOC_LINKS_BOLD = IJavaColorConstants.PHPDOC_LINK + EDITOR_BOLD_SUFFIX;
1152 * A named preference that holds the color used to render phpdoc default text.
1154 * Value is of type <code>String</code>. A RGB color value encoded as a string
1155 * using class <code>PreferenceConverter</code>
1158 * @see org.eclipse.jface.resource.StringConverter
1159 * @see org.eclipse.jface.preference.PreferenceConverter
1161 public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IJavaColorConstants.PHPDOC_DEFAULT;
1164 * A named preference that controls whether phpdoc default text is rendered in bold.
1166 * Value is of type <code>Boolean</code>.
1169 public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IJavaColorConstants.PHPDOC_DEFAULT + EDITOR_BOLD_SUFFIX;
1172 * A named preference that holds the color used for 'linked-mode' underline.
1174 * Value is of type <code>String</code>. A RGB color value encoded as a string
1175 * using class <code>PreferenceConverter</code>
1178 * @see org.eclipse.jface.resource.StringConverter
1179 * @see org.eclipse.jface.preference.PreferenceConverter
1182 public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1185 * A named preference that controls whether hover tooltips in the editor are turned on or off.
1187 * Value is of type <code>Boolean</code>.
1190 public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1193 * A named preference that defines the hover shown when no control key is
1195 * <p>Value is of type <code>String</code>: possible values are <code>
1196 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1197 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a hover
1198 * contributed as <code>phpEditorTextHovers</code>.
1200 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1201 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1205 public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1208 * A named preference that defines the hover shown when the
1209 * <code>CTRL</code> modifier key is pressed.
1210 * <p>Value is of type <code>String</code>: possible values are <code>
1211 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1212 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1213 * hover contributed as <code>phpEditorTextHovers</code>.
1215 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1216 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1220 public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1223 * A named preference that defines the hover shown when the
1224 * <code>SHIFT</code> modifier key is pressed.
1225 * <p>Value is of type <code>String</code>: possible values are <code>
1226 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1227 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1228 * hover contributed as <code>phpEditorTextHovers</code>.
1230 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1231 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1232 * @see JavaUI ID_*_HOVER
1235 public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1238 * A named preference that defines the hover shown when the
1239 * <code>CTRL + ALT</code> modifier keys is pressed.
1240 * <p>Value is of type <code>String</code>: possible values are <code>
1241 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1242 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1243 * hover contributed as <code>phpEditorTextHovers</code>.
1245 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1246 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1247 * @see JavaUI ID_*_HOVER
1250 public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1253 * A named preference that defines the hover shown when the
1254 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1255 * <p>Value is of type <code>String</code>: possible values are <code>
1256 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1257 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1258 * hover contributed as <code>phpEditorTextHovers</code>.
1260 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1261 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1262 * @see JavaUI ID_*_HOVER
1265 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1268 * A named preference that defines the hover shown when the
1269 * <code>CTRL + SHIFT</code> modifier keys is pressed.
1270 * <p>Value is of type <code>String</code>: possible values are <code>
1271 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1272 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1273 * hover contributed as <code>phpEditorTextHovers</code>.
1275 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1276 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1277 * @see JavaUI ID_*_HOVER
1280 public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1283 * A named preference that defines the hover shown when the
1284 * <code>ALT</code> modifier key is pressed.
1285 * <p>Value is of type <code>String</code>: possible values are <code>
1286 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1287 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1288 * hover contributed as <code>phpEditorTextHovers</code>.
1290 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1291 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1292 * @see JavaUI ID_*_HOVER
1295 public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1298 * A string value used by the named preferences for hover configuration to
1299 * descibe that no hover should be shown for the given key modifiers.
1302 public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1305 * A string value used by the named preferences for hover configuration to
1306 * descibe that the default hover should be shown for the given key
1307 * modifiers. The default hover is described by the
1308 * <code>EDITOR_DEFAULT_HOVER</code> property.
1311 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1314 * A named preference that defines the hover named the 'default hover'.
1315 * Value is of type <code>String</code>: possible values are <code>
1316 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or <code> the hover id of a hover
1317 * contributed as <code>phpEditorTextHovers</code>.
1321 public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1324 * A named preference that controls if segmented view (show selected element only) is turned on or off.
1326 * Value is of type <code>Boolean</code>.
1329 public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1332 * A named preference that controls if the Java code assist gets auto activated.
1334 * Value is of type <code>Boolean</code>.
1337 public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
1340 * A name preference that holds the auto activation delay time in milli seconds.
1342 * Value is of type <code>Int</code>.
1345 public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
1348 * A named preference that controls if code assist contains only visible proposals.
1350 * Value is of type <code>Boolean</code>. if <code>true<code> code assist only contains visible members. If
1351 * <code>false</code> all members are included.
1354 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
1357 * A named preference that controls if the Java code assist inserts a
1358 * proposal automatically if only one proposal is available.
1360 * Value is of type <code>Boolean</code>.
1364 public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
1367 * A named preference that controls if the Java code assist adds import
1370 * Value is of type <code>Boolean</code>.
1374 public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
1377 * A named preference that controls if the Java code assist only inserts
1378 * completions. If set to false the proposals can also _replace_ code.
1380 * Value is of type <code>Boolean</code>.
1384 public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
1387 * A named preference that controls whether code assist proposals filtering is case sensitive or not.
1389 * Value is of type <code>Boolean</code>.
1392 public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
1395 * A named preference that defines if code assist proposals are sorted in alphabetical order.
1397 * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical
1398 * order. If <code>false</code> that are unsorted.
1401 public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
1404 * A named preference that controls if argument names are filled in when a method is selected from as list
1405 * of code assist proposal.
1407 * Value is of type <code>Boolean</code>.
1410 public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
1413 * A named preference that controls if method arguments are guessed when a
1414 * method is selected from as list of code assist proposal.
1416 * Value is of type <code>Boolean</code>.
1420 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
1423 * A named preference that holds the characters that auto activate code assist
1426 * Value is of type <code>Sring</code>. All characters that trigger auto code
1427 * assist in PHP code.
1430 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
1433 * A named preference that holds the characters that auto activate code assist
1436 * Value is of type <code>Sring</code>. All characters that trigger auto code
1440 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
1444 * A named preference that holds the characters that auto activate code assist
1447 * Value is of type <code>Sring</code>. All characters that trigger auto code
1451 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
1454 * A named preference that holds the background color used in the code assist selection dialog.
1456 * Value is of type <code>String</code>. A RGB color value encoded as a string
1457 * using class <code>PreferenceConverter</code>
1460 * @see org.eclipse.jface.resource.StringConverter
1461 * @see org.eclipse.jface.preference.PreferenceConverter
1463 public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
1466 * A named preference that holds the foreground color used in the code assist selection dialog.
1468 * Value is of type <code>String</code>. A RGB color value encoded as a string
1469 * using class <code>PreferenceConverter</code>
1472 * @see org.eclipse.jface.resource.StringConverter
1473 * @see org.eclipse.jface.preference.PreferenceConverter
1475 public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
1478 * A named preference that holds the background color used for parameter hints.
1480 * Value is of type <code>String</code>. A RGB color value encoded as a string
1481 * using class <code>PreferenceConverter</code>
1484 * @see org.eclipse.jface.resource.StringConverter
1485 * @see org.eclipse.jface.preference.PreferenceConverter
1487 public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
1490 * A named preference that holds the foreground color used in the code assist selection dialog
1492 * Value is of type <code>String</code>. A RGB color value encoded as a string
1493 * using class <code>PreferenceConverter</code>
1496 * @see org.eclipse.jface.resource.StringConverter
1497 * @see org.eclipse.jface.preference.PreferenceConverter
1499 public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
1502 * A named preference that holds the background color used in the code
1503 * assist selection dialog to mark replaced code.
1505 * Value is of type <code>String</code>. A RGB color value encoded as a string
1506 * using class <code>PreferenceConverter</code>
1509 * @see org.eclipse.jface.resource.StringConverter
1510 * @see org.eclipse.jface.preference.PreferenceConverter
1513 public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
1516 * A named preference that holds the foreground color used in the code
1517 * assist selection dialog to mark replaced code.
1519 * Value is of type <code>String</code>. A RGB color value encoded as a string
1520 * using class <code>PreferenceConverter</code>
1523 * @see org.eclipse.jface.resource.StringConverter
1524 * @see org.eclipse.jface.preference.PreferenceConverter
1527 public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
1530 * A named preference that controls the behaviour of the refactoring wizard for showing the error page.
1532 * Value is of type <code>String</code>. Valid values are:
1533 * <code>REFACTOR_FATAL_SEVERITY</code>,
1534 * <code>REFACTOR_ERROR_SEVERITY</code>,
1535 * <code>REFACTOR_WARNING_SEVERITY</code>
1536 * <code>REFACTOR_INFO_SEVERITY</code>,
1537 * <code>REFACTOR_OK_SEVERITY</code>.
1540 * @see #REFACTOR_FATAL_SEVERITY
1541 * @see #REFACTOR_ERROR_SEVERITY
1542 * @see #REFACTOR_WARNING_SEVERITY
1543 * @see #REFACTOR_INFO_SEVERITY
1544 * @see #REFACTOR_OK_SEVERITY
1546 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
1549 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1551 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1553 public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
1556 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1558 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1560 public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
1563 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1565 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1567 public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
1570 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1572 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1574 public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
1577 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1579 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1581 public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
1584 * A named preference thet controls whether all dirty editors are automatically saved before a refactoring is
1587 * Value is of type <code>Boolean</code>.
1590 public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
1593 * A named preference that controls if the Java Browsing views are linked to the active editor.
1595 * Value is of type <code>Boolean</code>.
1598 * @see #LINK_PACKAGES_TO_EDITOR
1600 public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
1603 * A named preference that controls the layout of the Java Browsing views vertically. Boolean value.
1605 * Value is of type <code>Boolean</code>. If <code>true<code> the views are stacked vertical.
1606 * If <code>false</code> they are stacked horizontal.
1609 public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
1612 * A named preference that controls if templates are formatted when applied.
1614 * Value is of type <code>Boolean</code>.
1619 public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
1621 public static void initializeDefaultValues(IPreferenceStore store) {
1622 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
1624 // JavaBasePreferencePage
1625 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
1626 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, false);
1627 store.setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR, true);
1628 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
1629 store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
1630 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, PreferenceConstants.UPDATE_WHILE_EDITING);
1632 // AppearancePreferencePage
1633 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false);
1634 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, false);
1635 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
1636 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR, true);
1637 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
1638 store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
1639 store.setDefault(PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, true);
1641 // ImportOrganizePreferencePage
1642 store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, "php;phpx;org;com"); //$NON-NLS-1$
1643 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
1644 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
1646 // ClasspathVariablesPreferencePage
1647 // CodeFormatterPreferencePage
1648 // CompilerPreferencePage
1649 // no initialization needed
1651 // RefactoringPreferencePage
1652 store.setDefault(PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, PreferenceConstants.REFACTOR_ERROR_SEVERITY);
1653 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
1654 store.setDefault("RefactoringUI", "dialog");
1656 // TemplatePreferencePage
1657 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
1659 // CodeGenerationPreferencePage
1660 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX, false);
1661 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX, false);
1662 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX, "fg, f, _$, _, m_"); //$NON-NLS-1$
1663 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
1664 store.setDefault(PreferenceConstants.CODEGEN__JAVADOC_STUBS, true);
1665 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS, false);
1666 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
1668 // MembersOrderPreferencePage
1669 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SI,SF,SM,I,F,C,M"); //$NON-NLS-1$
1670 // must add here to guarantee that it is the first in the listener list
1671 // store.addPropertyChangeListener(PHPeclipsePlugin.getDefault().getMemberOrderPreferenceCache());
1673 // PHPEditorPreferencePage
1675 * Ensure that the display is accessed only in the UI thread.
1676 * Ensure that there are no side effects of switching the thread.
1678 final RGB[] rgbs = new RGB[3];
1679 final Display display = Display.getDefault();
1680 display.syncExec(new Runnable() {
1682 Color c = display.getSystemColor(SWT.COLOR_GRAY);
1683 rgbs[0] = c.getRGB();
1684 c = display.getSystemColor(SWT.COLOR_LIST_FOREGROUND);
1685 rgbs[1] = c.getRGB();
1686 c = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
1687 rgbs[2] = c.getRGB();
1691 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
1692 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, rgbs[0]);
1694 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
1695 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225, 235, 224));
1697 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
1698 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
1699 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176, 180, 185));
1701 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176, 180));
1703 store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION, true);
1704 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0, 128));
1705 store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER, true);
1707 store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION, true);
1708 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244, 200, 45));
1709 store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER, true);
1711 store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
1712 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128, 255));
1713 store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER, false);
1715 store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION, false);
1716 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34, 164, 99));
1717 store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER, false);
1719 store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION, false);
1720 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new RGB(192, 192, 192));
1721 store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER, false);
1723 store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION, false);
1724 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0, 0));
1725 store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER, false);
1727 store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true);
1728 store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, false);
1730 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true);
1732 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
1734 store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false);
1735 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0, 0, 0));
1737 WorkbenchChainedTextFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT);
1739 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0, 200, 100));
1740 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
1742 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FOREGROUND_COLOR, rgbs[1]);
1743 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR, true);
1745 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BACKGROUND_COLOR, rgbs[2]);
1746 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR, true);
1748 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
1749 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
1751 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
1752 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false);
1754 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
1755 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false);
1757 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0, 85));
1758 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
1760 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127, 127, 159));
1761 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD, false);
1763 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127, 159, 191));
1764 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
1766 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0, 85));
1767 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
1769 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
1770 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
1772 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_STRING_COLOR, new RGB(42, 0, 255));
1773 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false);
1775 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(0, 0, 0));
1776 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
1778 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127, 159, 191));
1779 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
1781 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127, 159));
1782 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
1784 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63, 191));
1785 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
1787 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63, 95, 191));
1788 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false);
1790 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
1791 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 500);
1793 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
1794 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(254, 241, 233));
1795 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, 0, 0));
1796 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(254, 241, 233));
1797 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(0, 0, 0));
1798 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(255, 255, 0));
1799 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(255, 0, 0));
1800 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, "$"); //$NON-NLS-1$
1801 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, "@"); //$NON-NLS-1$
1802 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML, "<&#"); //$NON-NLS-1$
1803 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, true);
1804 store.setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false);
1805 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
1806 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
1807 store.setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true);
1808 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, false);
1809 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, true);
1811 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
1812 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
1813 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_PHP, true);
1814 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
1815 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
1816 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
1817 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
1818 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
1819 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, true);
1821 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
1822 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
1824 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER, JavaPlugin.ID_BESTMATCH_HOVER);
1825 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1826 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER, JavaPlugin.ID_SOURCE_HOVER);
1827 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1828 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1829 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1830 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1831 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1833 // do more complicated stuff
1834 // NewJavaProjectPreferencePage.initDefaults(store);
1838 * Returns the JDT-UI preference store.
1840 * @return the JDT-UI preference store
1842 public static IPreferenceStore getPreferenceStore() {
1843 return PHPeclipsePlugin.getDefault().getPreferenceStore();
1847 // * Encodes a JRE library to be used in the named preference <code>NEWPROJECT_JRELIBRARY_LIST</code>.
1849 // * @param description a string value describing the JRE library. The description is used
1850 // * to indentify the JDR library in the UI
1851 // * @param entries an array of classpath entries to be encoded
1853 // * @return the encoded string.
1855 // public static String encodeJRELibrary(String description, IClasspathEntry[] entries) {
1856 // return NewJavaProjectPreferencePage.encodeJRELibrary(description, entries);
1860 // * Decodes an encoded JRE library and returns its description string.
1862 // * @return the description of an encoded JRE library
1864 // * @see #encodeJRELibrary(String, IClasspathEntry[])
1866 // public static String decodeJRELibraryDescription(String encodedLibrary) {
1867 // return NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
1871 // * Decodes an encoded JRE library and returns its classpath entries.
1873 // * @return the array of classpath entries of an encoded JRE library.
1875 // * @see #encodeJRELibrary(String, IClasspathEntry[])
1877 // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String encodedLibrary) {
1878 // return NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
1882 // * Returns the current configuration for the JRE to be used as default in new Java projects.
1883 // * This is a convenience method to access the named preference <code>NEWPROJECT_JRELIBRARY_LIST
1884 // * </code> with the index defined by <code> NEWPROJECT_JRELIBRARY_INDEX</code>.
1886 // * @return the current default set of classpath entries
1888 // * @see #NEWPROJECT_JRELIBRARY_LIST
1889 // * @see #NEWPROJECT_JRELIBRARY_INDEX
1891 // public static IClasspathEntry[] getDefaultJRELibrary() {
1892 // return NewJavaProjectPreferencePage.getDefaultJRELibrary();