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
704 * Value is of type <code>Boolean</code>.
708 public final static String EDITOR_CLOSE_STRINGS= "closeStrings"; //$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
724 * Value is of type <code>Boolean</code>.
728 public final static String EDITOR_CLOSE_BRACKETS= "closeBrackets"; //$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 'smart home-end' feature is
784 * Value is of type <code>Boolean</code>.
788 public final static String EDITOR_SMART_HOME_END= AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
791 * A named preference that controls if temporary problems are evaluated and shown in the UI.
793 * Value is of type <code>Boolean</code>.
796 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS= "handleTemporaryProblems"; //$NON-NLS-1$
799 * A named preference that controls if the overview ruler is shown in the UI.
801 * Value is of type <code>Boolean</code>.
804 public final static String EDITOR_OVERVIEW_RULER= "overviewRuler"; //$NON-NLS-1$
807 * A named preference that controls if the line number ruler is shown in the UI.
809 * Value is of type <code>Boolean</code>.
812 public final static String EDITOR_LINE_NUMBER_RULER= "lineNumberRuler"; //$NON-NLS-1$
815 * A named preference that holds the color used to render line numbers inside the line number ruler.
817 * Value is of type <code>String</code>. A RGB color value encoded as a string
818 * using class <code>PreferenceConverter</code>
821 * @see org.eclipse.jface.resource.StringConverter
822 * @see org.eclipse.jface.preference.PreferenceConverter
823 * @see #EDITOR_LINE_NUMBER_RULER
825 public final static String EDITOR_LINE_NUMBER_RULER_COLOR= "lineNumberColor"; //$NON-NLS-1$
828 * A named preference that holds the color used to render linked positions inside code templates.
830 * Value is of type <code>String</code>. A RGB color value encoded as a string
831 * using class <code>PreferenceConverter</code>
834 * @see org.eclipse.jface.resource.StringConverter
835 * @see org.eclipse.jface.preference.PreferenceConverter
837 public final static String EDITOR_LINKED_POSITION_COLOR= "linkedPositionColor"; //$NON-NLS-1$
840 * A named preference that holds the color used as the text foreground.
842 * Value is of type <code>String</code>. A RGB color value encoded as a string
843 * using class <code>PreferenceConverter</code>
846 * @see org.eclipse.jface.resource.StringConverter
847 * @see org.eclipse.jface.preference.PreferenceConverter
849 public final static String EDITOR_FOREGROUND_COLOR= AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
852 * A named preference that describes if the system default foreground color
853 * is used as the text foreground.
855 * Value is of type <code>Boolean</code>.
858 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR= AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
861 * A named preference that holds the color used as the text background.
863 * Value is of type <code>String</code>. A RGB color value encoded as a string
864 * using class <code>PreferenceConverter</code>
867 * @see org.eclipse.jface.resource.StringConverter
868 * @see org.eclipse.jface.preference.PreferenceConverter
870 public final static String EDITOR_BACKGROUND_COLOR= AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
873 * A named preference that describes if the system default background color
874 * is used as the text foreground.
876 * Value is of type <code>Boolean</code>.
879 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR= AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
882 * Preference key suffix for bold text style preference keys.
884 public static final String EDITOR_BOLD_SUFFIX= "_bold"; //$NON-NLS-1$
887 * A named preference that holds the color used to render multi line comments.
889 * Value is of type <code>String</code>. A RGB color value encoded as a string
890 * using class <code>PreferenceConverter</code>
893 * @see org.eclipse.jface.resource.StringConverter
894 * @see org.eclipse.jface.preference.PreferenceConverter
896 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR= IJavaColorConstants.PHP_MULTI_LINE_COMMENT;
899 * A named preference that controls whether multi line comments are rendered in bold.
901 * Value is of type <code>Boolean</code>. If <code>true</code> multi line comments are rendered
902 * in bold. If <code>false</code> the are rendered using no font style attribute.
905 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD= IJavaColorConstants.PHP_MULTI_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
908 * A named preference that holds the color used to render single line comments.
910 * Value is of type <code>String</code>. A RGB color value encoded as a string
911 * using class <code>PreferenceConverter</code>
914 * @see org.eclipse.jface.resource.StringConverter
915 * @see org.eclipse.jface.preference.PreferenceConverter
917 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR= IJavaColorConstants.PHP_SINGLE_LINE_COMMENT;
920 * A named preference that controls whether sinle line comments are rendered in bold.
922 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
923 * in bold. If <code>false</code> the are rendered using no font style attribute.
926 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD= IJavaColorConstants.PHP_SINGLE_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
929 * A named preference that holds the color used to render php keywords.
931 * Value is of type <code>String</code>. A RGB color value encoded as a string
932 * using class <code>PreferenceConverter</code>
935 * @see org.eclipse.jface.resource.StringConverter
936 * @see org.eclipse.jface.preference.PreferenceConverter
938 public final static String EDITOR_JAVA_KEYWORD_COLOR= IJavaColorConstants.PHP_KEYWORD;
941 * A named preference that controls whether keywords are rendered in bold.
943 * Value is of type <code>Boolean</code>.
946 public final static String EDITOR_JAVA_KEYWORD_BOLD= IJavaColorConstants.PHP_KEYWORD + EDITOR_BOLD_SUFFIX;
949 * A named preference that holds the color used to render predefined php
952 * Value is of type <code>String</code>. A RGB color value encoded as a string
953 * using class <code>PreferenceConverter</code>
956 * @see org.eclipse.jface.resource.StringConverter
957 * @see org.eclipse.jface.preference.PreferenceConverter
959 public final static String EDITOR_PHP_FUNCTIONNAME_COLOR= IJavaColorConstants.PHP_FUNCTIONNAME;
962 * A named preference that controls whether function names are rendered in
965 * Value is of type <code>Boolean</code>.
968 public final static String EDITOR_PHP_FUNCTIONNAME_BOLD= IJavaColorConstants.PHP_FUNCTIONNAME + EDITOR_BOLD_SUFFIX;
971 * A named preference that holds the color used to render php
974 * Value is of type <code>String</code>. A RGB color value encoded as a string
975 * using class <code>PreferenceConverter</code>
978 * @see org.eclipse.jface.resource.StringConverter
979 * @see org.eclipse.jface.preference.PreferenceConverter
981 public final static String EDITOR_PHP_VARIABLE_COLOR= IJavaColorConstants.PHP_VARIABLE;
984 * A named preference that controls whether variables are rendered in bold.
986 * Value is of type <code>Boolean</code>.
989 public final static String EDITOR_PHP_VARIABLE_BOLD= IJavaColorConstants.PHP_VARIABLE + EDITOR_BOLD_SUFFIX;
992 * A named preference that holds the color used to render php constants.
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_CONSTANT_COLOR= IJavaColorConstants.PHP_CONSTANT;
1004 * A named preference that controls whether constants are rendered in bold.
1006 * Value is of type <code>Boolean</code>.
1009 public final static String EDITOR_PHP_CONSTANT_BOLD= IJavaColorConstants.PHP_CONSTANT + EDITOR_BOLD_SUFFIX;
1012 * A named preference that holds the color used to render php types.
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_TYPE_COLOR= IJavaColorConstants.PHP_TYPE;
1024 * A named preference that controls whether types are rendered in bold.
1026 * Value is of type <code>Boolean</code>.
1029 public final static String EDITOR_PHP_TYPE_BOLD= IJavaColorConstants.PHP_TYPE + EDITOR_BOLD_SUFFIX;
1033 * A named preference that holds the color used to render string constants.
1035 * Value is of type <code>String</code>. A RGB color value encoded as a string
1036 * using class <code>PreferenceConverter</code>
1039 * @see org.eclipse.jface.resource.StringConverter
1040 * @see org.eclipse.jface.preference.PreferenceConverter
1042 public final static String EDITOR_STRING_COLOR= IJavaColorConstants.PHP_STRING;
1045 * A named preference that controls whether string constants are rendered in bold.
1047 * Value is of type <code>Boolean</code>.
1050 public final static String EDITOR_STRING_BOLD= IJavaColorConstants.PHP_STRING + EDITOR_BOLD_SUFFIX;
1053 * A named preference that holds the color used to render php default text.
1055 * Value is of type <code>String</code>. A RGB color value encoded as a string
1056 * using class <code>PreferenceConverter</code>
1059 * @see org.eclipse.jface.resource.StringConverter
1060 * @see org.eclipse.jface.preference.PreferenceConverter
1062 public final static String EDITOR_JAVA_DEFAULT_COLOR= IJavaColorConstants.PHP_DEFAULT;
1065 * A named preference that controls whether Java default text is rendered in bold.
1067 * Value is of type <code>Boolean</code>.
1070 public final static String EDITOR_JAVA_DEFAULT_BOLD= IJavaColorConstants.PHP_DEFAULT + EDITOR_BOLD_SUFFIX;
1073 * A named preference that holds the color used to render phpdoc keywords.
1075 * Value is of type <code>String</code>. A RGB color value encoded as a string
1076 * using class <code>PreferenceConverter</code>
1079 * @see org.eclipse.jface.resource.StringConverter
1080 * @see org.eclipse.jface.preference.PreferenceConverter
1082 public final static String EDITOR_JAVADOC_KEYWORD_COLOR= IJavaColorConstants.PHPDOC_KEYWORD;
1085 * A named preference that controls whether phpdoc keywords are rendered in bold.
1087 * Value is of type <code>Boolean</code>.
1090 public final static String EDITOR_JAVADOC_KEYWORD_BOLD= IJavaColorConstants.PHPDOC_KEYWORD + EDITOR_BOLD_SUFFIX;
1093 * A named preference that holds the color used to render phpdoc tags.
1095 * Value is of type <code>String</code>. A RGB color value encoded as a string
1096 * using class <code>PreferenceConverter</code>
1099 * @see org.eclipse.jface.resource.StringConverter
1100 * @see org.eclipse.jface.preference.PreferenceConverter
1102 public final static String EDITOR_JAVADOC_TAG_COLOR= IJavaColorConstants.PHPDOC_TAG;
1105 * A named preference that controls whether phpdoc tags are rendered in bold.
1107 * Value is of type <code>Boolean</code>.
1110 public final static String EDITOR_JAVADOC_TAG_BOLD= IJavaColorConstants.PHPDOC_TAG + EDITOR_BOLD_SUFFIX;
1113 * A named preference that holds the color used to render phpdoc links.
1115 * Value is of type <code>String</code>. A RGB color value encoded as a string
1116 * using class <code>PreferenceConverter</code>
1119 * @see org.eclipse.jface.resource.StringConverter
1120 * @see org.eclipse.jface.preference.PreferenceConverter
1122 public final static String EDITOR_JAVADOC_LINKS_COLOR= IJavaColorConstants.PHPDOC_LINK;
1125 * A named preference that controls whether phpdoc links are rendered in bold.
1127 * Value is of type <code>Boolean</code>.
1130 public final static String EDITOR_JAVADOC_LINKS_BOLD= IJavaColorConstants.PHPDOC_LINK + EDITOR_BOLD_SUFFIX;
1133 * A named preference that holds the color used to render phpdoc default text.
1135 * Value is of type <code>String</code>. A RGB color value encoded as a string
1136 * using class <code>PreferenceConverter</code>
1139 * @see org.eclipse.jface.resource.StringConverter
1140 * @see org.eclipse.jface.preference.PreferenceConverter
1142 public final static String EDITOR_JAVADOC_DEFAULT_COLOR= IJavaColorConstants.PHPDOC_DEFAULT;
1145 * A named preference that controls whether phpdoc default text is rendered in bold.
1147 * Value is of type <code>Boolean</code>.
1150 public final static String EDITOR_JAVADOC_DEFAULT_BOLD= IJavaColorConstants.PHPDOC_DEFAULT + EDITOR_BOLD_SUFFIX;
1153 * A named preference that holds the color used for 'linked-mode' underline.
1155 * Value is of type <code>String</code>. A RGB color value encoded as a string
1156 * using class <code>PreferenceConverter</code>
1159 * @see org.eclipse.jface.resource.StringConverter
1160 * @see org.eclipse.jface.preference.PreferenceConverter
1163 public final static String EDITOR_LINK_COLOR= "linkColor"; //$NON-NLS-1$
1166 * A named preference that controls whether hover tooltips in the editor are turned on or off.
1168 * Value is of type <code>Boolean</code>.
1171 public static final String EDITOR_SHOW_HOVER= "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1174 * A named preference that defines the hover shown when no control key is
1176 * <p>Value is of type <code>String</code>: possible values are <code>
1177 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1178 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a hover
1179 * contributed as <code>phpEditorTextHovers</code>.
1181 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1182 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1186 public static final String EDITOR_NONE_HOVER= "noneHover"; //$NON-NLS-1$
1189 * A named preference that defines the hover shown when the
1190 * <code>CTRL</code> modifier key is pressed.
1191 * <p>Value is of type <code>String</code>: possible values are <code>
1192 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1193 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1194 * hover contributed as <code>phpEditorTextHovers</code>.
1196 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1197 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1201 public static final String EDITOR_CTRL_HOVER= "ctrlHover"; //$NON-NLS-1$
1204 * A named preference that defines the hover shown when the
1205 * <code>SHIFT</code> modifier key is pressed.
1206 * <p>Value is of type <code>String</code>: possible values are <code>
1207 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1208 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1209 * hover contributed as <code>phpEditorTextHovers</code>.
1211 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1212 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1213 * @see JavaUI ID_*_HOVER
1216 public static final String EDITOR_SHIFT_HOVER= "shiftHover"; //$NON-NLS-1$
1219 * A named preference that defines the hover shown when the
1220 * <code>CTRL + ALT</code> modifier keys is pressed.
1221 * <p>Value is of type <code>String</code>: possible values are <code>
1222 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1223 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1224 * hover contributed as <code>phpEditorTextHovers</code>.
1226 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1227 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1228 * @see JavaUI ID_*_HOVER
1231 public static final String EDITOR_CTRL_ALT_HOVER= "ctrlAltHover"; //$NON-NLS-1$
1234 * A named preference that defines the hover shown when the
1235 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1236 * <p>Value is of type <code>String</code>: possible values are <code>
1237 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1238 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1239 * hover contributed as <code>phpEditorTextHovers</code>.
1241 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1242 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1243 * @see JavaUI ID_*_HOVER
1246 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER= "ctrlAltShiftHover"; //$NON-NLS-1$
1249 * A named preference that defines the hover shown when the
1250 * <code>CTRL + SHIFT</code> modifier keys is pressed.
1251 * <p>Value is of type <code>String</code>: possible values are <code>
1252 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1253 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1254 * hover contributed as <code>phpEditorTextHovers</code>.
1256 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1257 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1258 * @see JavaUI ID_*_HOVER
1261 public static final String EDITOR_CTRL_SHIFT_HOVER= "ctrlShiftHover"; //$NON-NLS-1$
1264 * A named preference that defines the hover shown when the
1265 * <code>ALT</code> modifier key is pressed.
1266 * <p>Value is of type <code>String</code>: possible values are <code>
1267 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1268 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1269 * hover contributed as <code>phpEditorTextHovers</code>.
1271 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1272 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1273 * @see JavaUI ID_*_HOVER
1276 public static final String EDITOR_ALT_SHIFT_HOVER= "altShiftHover"; //$NON-NLS-1$
1279 * A string value used by the named preferences for hover configuration to
1280 * descibe that no hover should be shown for the given key modifiers.
1283 public static final String EDITOR_NO_HOVER_CONFIGURED_ID= "noHoverConfiguredId"; //$NON-NLS-1$
1286 * A string value used by the named preferences for hover configuration to
1287 * descibe that the default hover should be shown for the given key
1288 * modifiers. The default hover is described by the
1289 * <code>EDITOR_DEFAULT_HOVER</code> property.
1292 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID= "defaultHoverConfiguredId"; //$NON-NLS-1$
1295 * A named preference that defines the hover named the 'default hover'.
1296 * Value is of type <code>String</code>: possible values are <code>
1297 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or <code> the hover id of a hover
1298 * contributed as <code>phpEditorTextHovers</code>.
1302 public static final String EDITOR_DEFAULT_HOVER= "defaultHover"; //$NON-NLS-1$
1305 * A named preference that controls if segmented view (show selected element only) is turned on or off.
1307 * Value is of type <code>Boolean</code>.
1310 public static final String EDITOR_SHOW_SEGMENTS= "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1313 * A named preference that controls if the Java code assist gets auto activated.
1315 * Value is of type <code>Boolean</code>.
1318 public final static String CODEASSIST_AUTOACTIVATION= "content_assist_autoactivation"; //$NON-NLS-1$
1321 * A name preference that holds the auto activation delay time in milli seconds.
1323 * Value is of type <code>Int</code>.
1326 public final static String CODEASSIST_AUTOACTIVATION_DELAY= "content_assist_autoactivation_delay"; //$NON-NLS-1$
1329 * A named preference that controls if code assist contains only visible proposals.
1331 * Value is of type <code>Boolean</code>. if <code>true<code> code assist only contains visible members. If
1332 * <code>false</code> all members are included.
1335 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS= "content_assist_show_visible_proposals"; //$NON-NLS-1$
1338 * A named preference that controls if the Java code assist inserts a
1339 * proposal automatically if only one proposal is available.
1341 * Value is of type <code>Boolean</code>.
1345 public final static String CODEASSIST_AUTOINSERT= "content_assist_autoinsert"; //$NON-NLS-1$
1348 * A named preference that controls if the Java code assist adds import
1351 * Value is of type <code>Boolean</code>.
1355 public final static String CODEASSIST_ADDIMPORT= "content_assist_add_import"; //$NON-NLS-1$
1358 * A named preference that controls if the Java code assist only inserts
1359 * completions. If set to false the proposals can also _replace_ code.
1361 * Value is of type <code>Boolean</code>.
1365 public final static String CODEASSIST_INSERT_COMPLETION= "content_assist_insert_completion"; //$NON-NLS-1$
1368 * A named preference that controls whether code assist proposals filtering is case sensitive or not.
1370 * Value is of type <code>Boolean</code>.
1373 public final static String CODEASSIST_CASE_SENSITIVITY= "content_assist_case_sensitivity"; //$NON-NLS-1$
1376 * A named preference that defines if code assist proposals are sorted in alphabetical order.
1378 * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical
1379 * order. If <code>false</code> that are unsorted.
1382 public final static String CODEASSIST_ORDER_PROPOSALS= "content_assist_order_proposals"; //$NON-NLS-1$
1385 * A named preference that controls if argument names are filled in when a method is selected from as list
1386 * of code assist proposal.
1388 * Value is of type <code>Boolean</code>.
1391 public final static String CODEASSIST_FILL_ARGUMENT_NAMES= "content_assist_fill_method_arguments"; //$NON-NLS-1$
1394 * A named preference that controls if method arguments are guessed when a
1395 * method is selected from as list of code assist proposal.
1397 * Value is of type <code>Boolean</code>.
1401 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS= "content_assist_guess_method_arguments"; //$NON-NLS-1$
1404 * A named preference that holds the characters that auto activate code assist in Java code.
1406 * Value is of type <code>Sring</code>. All characters that trigger auto code assist in Java code.
1409 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA= "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
1412 * A named preference that holds the characters that auto activate code assist in Javadoc.
1414 * Value is of type <code>Sring</code>. All characters that trigger auto code assist in Javadoc.
1417 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC= "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
1420 * A named preference that holds the background color used in the code assist selection dialog.
1422 * Value is of type <code>String</code>. A RGB color value encoded as a string
1423 * using class <code>PreferenceConverter</code>
1426 * @see org.eclipse.jface.resource.StringConverter
1427 * @see org.eclipse.jface.preference.PreferenceConverter
1429 public final static String CODEASSIST_PROPOSALS_BACKGROUND= "content_assist_proposals_background"; //$NON-NLS-1$
1432 * A named preference that holds the foreground color used in the code assist selection dialog.
1434 * Value is of type <code>String</code>. A RGB color value encoded as a string
1435 * using class <code>PreferenceConverter</code>
1438 * @see org.eclipse.jface.resource.StringConverter
1439 * @see org.eclipse.jface.preference.PreferenceConverter
1441 public final static String CODEASSIST_PROPOSALS_FOREGROUND= "content_assist_proposals_foreground"; //$NON-NLS-1$
1444 * A named preference that holds the background color used for parameter hints.
1446 * Value is of type <code>String</code>. A RGB color value encoded as a string
1447 * using class <code>PreferenceConverter</code>
1450 * @see org.eclipse.jface.resource.StringConverter
1451 * @see org.eclipse.jface.preference.PreferenceConverter
1453 public final static String CODEASSIST_PARAMETERS_BACKGROUND= "content_assist_parameters_background"; //$NON-NLS-1$
1456 * A named preference that holds the foreground color used in the code assist selection dialog
1458 * Value is of type <code>String</code>. A RGB color value encoded as a string
1459 * using class <code>PreferenceConverter</code>
1462 * @see org.eclipse.jface.resource.StringConverter
1463 * @see org.eclipse.jface.preference.PreferenceConverter
1465 public final static String CODEASSIST_PARAMETERS_FOREGROUND= "content_assist_parameters_foreground"; //$NON-NLS-1$
1468 * A named preference that holds the background color used in the code
1469 * assist selection dialog to mark replaced code.
1471 * Value is of type <code>String</code>. A RGB color value encoded as a string
1472 * using class <code>PreferenceConverter</code>
1475 * @see org.eclipse.jface.resource.StringConverter
1476 * @see org.eclipse.jface.preference.PreferenceConverter
1479 public final static String CODEASSIST_REPLACEMENT_BACKGROUND= "content_assist_completion_replacement_background"; //$NON-NLS-1$
1482 * A named preference that holds the foreground color used in the code
1483 * assist selection dialog to mark replaced code.
1485 * Value is of type <code>String</code>. A RGB color value encoded as a string
1486 * using class <code>PreferenceConverter</code>
1489 * @see org.eclipse.jface.resource.StringConverter
1490 * @see org.eclipse.jface.preference.PreferenceConverter
1493 public final static String CODEASSIST_REPLACEMENT_FOREGROUND= "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
1497 * A named preference that controls the behaviour of the refactoring wizard for showing the error page.
1499 * Value is of type <code>String</code>. Valid values are:
1500 * <code>REFACTOR_FATAL_SEVERITY</code>,
1501 * <code>REFACTOR_ERROR_SEVERITY</code>,
1502 * <code>REFACTOR_WARNING_SEVERITY</code>
1503 * <code>REFACTOR_INFO_SEVERITY</code>,
1504 * <code>REFACTOR_OK_SEVERITY</code>.
1507 * @see #REFACTOR_FATAL_SEVERITY
1508 * @see #REFACTOR_ERROR_SEVERITY
1509 * @see #REFACTOR_WARNING_SEVERITY
1510 * @see #REFACTOR_INFO_SEVERITY
1511 * @see #REFACTOR_OK_SEVERITY
1513 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD= "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
1516 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1518 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1520 public static final String REFACTOR_FATAL_SEVERITY= "4"; //$NON-NLS-1$
1523 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1525 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1527 public static final String REFACTOR_ERROR_SEVERITY= "3"; //$NON-NLS-1$
1530 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1532 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1534 public static final String REFACTOR_WARNING_SEVERITY= "2"; //$NON-NLS-1$
1537 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1539 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1541 public static final String REFACTOR_INFO_SEVERITY= "1"; //$NON-NLS-1$
1544 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1546 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1548 public static final String REFACTOR_OK_SEVERITY= "0"; //$NON-NLS-1$
1551 * A named preference thet controls whether all dirty editors are automatically saved before a refactoring is
1554 * Value is of type <code>Boolean</code>.
1557 public static final String REFACTOR_SAVE_ALL_EDITORS= "Refactoring.savealleditors"; //$NON-NLS-1$
1560 * A named preference that controls if the Java Browsing views are linked to the active editor.
1562 * Value is of type <code>Boolean</code>.
1565 * @see #LINK_PACKAGES_TO_EDITOR
1567 public static final String BROWSING_LINK_VIEW_TO_EDITOR= "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
1570 * A named preference that controls the layout of the Java Browsing views vertically. Boolean value.
1572 * Value is of type <code>Boolean</code>. If <code>true<code> the views are stacked vertical.
1573 * If <code>false</code> they are stacked horizontal.
1576 public static final String BROWSING_STACK_VERTICALLY= "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
1580 * A named preference that controls if templates are formatted when applied.
1582 * Value is of type <code>Boolean</code>.
1587 public static final String TEMPLATES_USE_CODEFORMATTER= "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
1591 public static void initializeDefaultValues(IPreferenceStore store) {
1592 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
1594 // JavaBasePreferencePage
1595 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
1596 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, false);
1597 store.setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR, true);
1598 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
1599 store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
1600 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, PreferenceConstants.UPDATE_WHILE_EDITING);
1602 // AppearancePreferencePage
1603 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false);
1604 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, false);
1605 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
1606 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR, true);
1607 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
1608 store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
1609 store.setDefault(PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, true);
1611 // ImportOrganizePreferencePage
1612 store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, "php;phpx;org;com"); //$NON-NLS-1$
1613 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
1614 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
1616 // ClasspathVariablesPreferencePage
1617 // CodeFormatterPreferencePage
1618 // CompilerPreferencePage
1619 // no initialization needed
1621 // RefactoringPreferencePage
1622 store.setDefault(PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, PreferenceConstants.REFACTOR_ERROR_SEVERITY);
1623 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
1624 store.setDefault("RefactoringUI", "dialog");
1626 // TemplatePreferencePage
1627 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
1629 // CodeGenerationPreferencePage
1630 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX, false);
1631 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX, false);
1632 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX, "fg, f, _$, _, m_"); //$NON-NLS-1$
1633 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
1634 store.setDefault(PreferenceConstants.CODEGEN__JAVADOC_STUBS, true);
1635 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS, false);
1636 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
1638 // MembersOrderPreferencePage
1639 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SI,SF,SM,I,F,C,M"); //$NON-NLS-1$
1640 // must add here to guarantee that it is the first in the listener list
1641 // store.addPropertyChangeListener(PHPeclipsePlugin.getDefault().getMemberOrderPreferenceCache());
1644 // PHPEditorPreferencePage
1646 * Ensure that the display is accessed only in the UI thread.
1647 * Ensure that there are no side effects of switching the thread.
1649 final RGB[] rgbs= new RGB[3];
1650 final Display display= Display.getDefault();
1651 display.syncExec(new Runnable() {
1653 Color c= display.getSystemColor(SWT.COLOR_GRAY);
1654 rgbs[0]= c.getRGB();
1655 c= display.getSystemColor(SWT.COLOR_LIST_FOREGROUND);
1656 rgbs[1]= c.getRGB();
1657 c= display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
1658 rgbs[2]= c.getRGB();
1662 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
1663 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, rgbs[0]);
1665 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
1666 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225, 235, 224));
1668 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
1669 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
1670 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176, 180 , 185));
1672 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176 , 180));
1674 store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION, true);
1675 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0 , 128));
1676 store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER, true);
1678 store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION, true);
1679 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244, 200 , 45));
1680 store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER, true);
1682 store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
1683 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128, 255));
1684 store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER, false);
1686 store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION, false);
1687 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34, 164, 99));
1688 store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER, false);
1690 store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION, false);
1691 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new RGB(192, 192, 192));
1692 store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER, false);
1694 store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION, false);
1695 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0, 0));
1696 store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER, false);
1698 store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true);
1699 store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, false);
1701 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true);
1703 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
1705 store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false);
1706 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0, 0, 0));
1708 WorkbenchChainedTextFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT);
1710 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0, 200 , 100));
1711 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
1713 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FOREGROUND_COLOR, rgbs[1]);
1714 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR, true);
1716 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BACKGROUND_COLOR, rgbs[2]);
1717 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR, true);
1719 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
1720 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
1722 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
1723 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false);
1725 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
1726 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false);
1728 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0, 85));
1729 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
1731 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127, 127, 159));
1732 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD, false);
1734 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127, 159, 191));
1735 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
1737 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0, 85));
1738 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
1740 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
1741 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
1743 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_STRING_COLOR, new RGB(42, 0, 255));
1744 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false);
1746 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(0, 0, 0));
1747 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
1749 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127, 159, 191));
1750 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
1752 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127, 159));
1753 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
1755 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63, 191));
1756 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
1758 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63, 95, 191));
1759 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false);
1761 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
1762 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 500);
1764 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
1765 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(254, 241, 233));
1766 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, 0, 0));
1767 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(254, 241, 233));
1768 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(0, 0, 0));
1769 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(255, 255, 0));
1770 PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(255, 0, 0));
1771 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, "$"); //$NON-NLS-1$
1772 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, "@"); //$NON-NLS-1$
1773 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, true);
1774 store.setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false);
1775 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
1776 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
1777 store.setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true);
1778 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, false);
1779 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, true);
1781 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
1782 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
1783 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS, true);
1784 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS, true);
1785 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
1786 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
1787 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
1788 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
1789 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, true);
1791 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER, JavaPlugin.ID_BESTMATCH_HOVER);
1792 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1793 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER, JavaPlugin.ID_SOURCE_HOVER);
1794 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1795 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1796 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1797 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1798 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
1800 // do more complicated stuff
1801 // NewJavaProjectPreferencePage.initDefaults(store);
1805 * Returns the JDT-UI preference store.
1807 * @return the JDT-UI preference store
1809 public static IPreferenceStore getPreferenceStore() {
1810 return PHPeclipsePlugin.getDefault().getPreferenceStore();
1814 // * Encodes a JRE library to be used in the named preference <code>NEWPROJECT_JRELIBRARY_LIST</code>.
1816 // * @param description a string value describing the JRE library. The description is used
1817 // * to indentify the JDR library in the UI
1818 // * @param entries an array of classpath entries to be encoded
1820 // * @return the encoded string.
1822 // public static String encodeJRELibrary(String description, IClasspathEntry[] entries) {
1823 // return NewJavaProjectPreferencePage.encodeJRELibrary(description, entries);
1827 // * Decodes an encoded JRE library and returns its description string.
1829 // * @return the description of an encoded JRE library
1831 // * @see #encodeJRELibrary(String, IClasspathEntry[])
1833 // public static String decodeJRELibraryDescription(String encodedLibrary) {
1834 // return NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
1838 // * Decodes an encoded JRE library and returns its classpath entries.
1840 // * @return the array of classpath entries of an encoded JRE library.
1842 // * @see #encodeJRELibrary(String, IClasspathEntry[])
1844 // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String encodedLibrary) {
1845 // return NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
1849 // * Returns the current configuration for the JRE to be used as default in new Java projects.
1850 // * This is a convenience method to access the named preference <code>NEWPROJECT_JRELIBRARY_LIST
1851 // * </code> with the index defined by <code> NEWPROJECT_JRELIBRARY_INDEX</code>.
1853 // * @return the current default set of classpath entries
1855 // * @see #NEWPROJECT_JRELIBRARY_LIST
1856 // * @see #NEWPROJECT_JRELIBRARY_INDEX
1858 // public static IClasspathEntry[] getDefaultJRELibrary() {
1859 // return NewJavaProjectPreferencePage.getDefaultJRELibrary();