1dfe2cfa8464a9142ddaef0a1ceb99fad8260086
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / PreferenceConstants.java
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
7  *
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  ******************************************************************************/
11 package net.sourceforge.phpdt.ui;
12
13 import net.sourceforge.phpdt.core.IClasspathEntry;
14 import net.sourceforge.phpdt.internal.ui.text.spelling.SpellCheckEngine;
15 import net.sourceforge.phpdt.internal.ui.text.spelling.engine.ISpellCheckPreferenceKeys;
16 import net.sourceforge.phpeclipse.IPreferenceConstants;
17 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
18 import net.sourceforge.phpeclipse.phpeditor.util.PHPColorProvider;
19
20 import org.eclipse.core.runtime.Platform;
21 import org.eclipse.jface.action.Action;
22 import org.eclipse.jface.preference.IPreferenceStore;
23 import org.eclipse.jface.preference.PreferenceConverter;
24 import org.eclipse.swt.SWT;
25 import org.eclipse.swt.graphics.RGB;
26 import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
27 import org.eclipse.ui.texteditor.AbstractTextEditor;
28
29 //
30 // import org.phpeclipse.phpdt.internal.ui.JavaPlugin;
31 // import
32 // org.phpeclipse.phpdt.internal.ui.preferences.NewJavaProjectPreferencePage;
33
34 /**
35  * Preference constants used in the JDT-UI preference store. Clients should only
36  * read the JDT-UI preference store using these values. Clients are not allowed
37  * to modify the preference store programmatically.
38  * 
39  * @since 2.0
40  */
41 public class PreferenceConstants {
42
43         private PreferenceConstants() {
44         }
45
46         /**
47          * A named preference that controls return type rendering of methods in the
48          * UI.
49          * <p>
50          * Value is of type <code>Boolean</code>: if <code>true</code> return
51          * types are rendered
52          * </p>
53          */
54         public static final String APPEARANCE_METHOD_RETURNTYPE = "net.sourceforge.phpdt.ui.methodreturntype"; //$NON-NLS-1$
55
56         /**
57          * A named preference that controls if override indicators are rendered in
58          * the UI.
59          * <p>
60          * Value is of type <code>Boolean</code>: if <code>true</code> override
61          * indicators are rendered
62          * </p>
63          */
64         public static final String APPEARANCE_OVERRIDE_INDICATOR = "net.sourceforge.phpdt.ui.overrideindicator"; //$NON-NLS-1$
65
66         /**
67          * A named preference that defines the pattern used for package name
68          * compression.
69          * <p>
70          * Value is of type <code>String</code>. For example foe the given
71          * package name 'net.sourceforge.phpdt' pattern '.' will compress it to
72          * '..jdt', '1~' to 'o~.e~.jdt'.
73          * </p>
74          */
75         public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW = "PackagesView.pkgNamePatternForPackagesView"; //$NON-NLS-1$
76
77         /**
78          * A named preference that controls if package name compression is turned on
79          * or off.
80          * <p>
81          * Value is of type <code>Boolean</code>.
82          * </p>
83          * 
84          * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
85          */
86         public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "net.sourceforge.phpdt.ui.compresspackagenames"; //$NON-NLS-1$
87
88         /**
89          * A named preference that controls if empty inner packages are folded in
90          * the hierarchical mode of the package explorer.
91          * <p>
92          * Value is of type <code>Boolean</code>: if <code>true</code> empty
93          * inner packages are folded.
94          * </p>
95          * 
96          * @since 2.1
97          */
98         public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "net.sourceforge.phpdt.ui.flatPackagesInPackageExplorer"; //$NON-NLS-1$
99
100         /**
101          * A named preference that defines how member elements are ordered by the
102          * Java views using the <code>JavaElementSorter</code>.
103          * <p>
104          * Value is of type <code>String</code>: A comma separated list of the
105          * following entries. Each entry must be in the list, no duplication. List
106          * order defines the sort order.
107          * <ul>
108          * <li><b>T </b>: Types</li>
109          * <li><b>C </b>: Constructors</li>
110          * <li><b>I </b>: Initializers</li>
111          * <li><b>M </b>: Methods</li>
112          * <li><b>F </b>: Fields</li>
113          * <li><b>SI </b>: Static Initializers</li>
114          * <li><b>SM </b>: Static Methods</li>
115          * <li><b>SF </b>: Static Fields</li>
116          * </ul>
117          * </p>
118          * 
119          * @since 2.1
120          */
121         public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$
122
123         /**
124          * A named preference that defines how member elements are ordered by
125          * visibility in the Java views using the <code>JavaElementSorter</code>.
126          * <p>
127          * Value is of type <code>String</code>: A comma separated list of the
128          * following entries. Each entry must be in the list, no duplication. List
129          * order defines the sort order.
130          * <ul>
131          * <li><b>B </b>: Public</li>
132          * <li><b>V </b>: Private</li>
133          * <li><b>R </b>: Protected</li>
134          * <li><b>D </b>: Default</li>
135          * </ul>
136          * </p>
137          * 
138          * @since 3.0
139          */
140         public static final String APPEARANCE_VISIBILITY_SORT_ORDER = "net.sourceforge.phpdt.ui.visibility.order"; //$NON-NLS-1$
141
142         /**
143          * A named preferences that controls if Java elements are also sorted by
144          * visibility.
145          * <p>
146          * Value is of type <code>Boolean</code>.
147          * </p>
148          * 
149          * @since 3.0
150          */
151         public static final String APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER = "net.sourceforge.phpdt.ui.enable.visibility.order"; //$NON-NLS-1$
152
153         /**
154          * A named preference that controls if prefix removal during setter/getter
155          * generation is turned on or off.
156          * <p>
157          * Value is of type <code>Boolean</code>.
158          * </p>
159          */
160         public static final String CODEGEN_USE_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.enable"; //$NON-NLS-1$
161
162         /**
163          * A named preference that holds a list of prefixes to be removed from a
164          * local variable to compute setter and gettter names.
165          * <p>
166          * Value is of type <code>String</code>: comma separated list of prefixed
167          * </p>
168          * 
169          * @see #CODEGEN_USE_GETTERSETTER_PREFIX
170          */
171         public static final String CODEGEN_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.list"; //$NON-NLS-1$
172
173         /**
174          * A named preference that controls if suffix removal during setter/getter
175          * generation is turned on or off.
176          * <p>
177          * Value is of type <code>Boolean</code>.
178          * </p>
179          */
180         public static final String CODEGEN_USE_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.enable"; //$NON-NLS-1$
181
182         /**
183          * A named preference that holds a list of suffixes to be removed from a
184          * local variable to compute setter and getter names.
185          * <p>
186          * Value is of type <code>String</code>: comma separated list of suffixes
187          * </p>
188          * 
189          * @see #CODEGEN_USE_GETTERSETTER_SUFFIX
190          */
191         public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
192
193         /**
194          * A named preference that controls whether the keyword "this" will be added
195          * automatically to field accesses in generated methods.
196          * <p>
197          * Value is of type <code>Boolean</code>.
198          * </p>
199          * 
200          * @since 3.0
201          */
202         public static final String CODEGEN_KEYWORD_THIS = "org.eclipse.jdt.ui.keywordthis"; //$NON-NLS-1$
203
204         /**
205          * A named preference that controls whether to use the prefix "is" or the
206          * prefix "get" for automatically created getters which return a boolean
207          * field.
208          * <p>
209          * Value is of type <code>Boolean</code>.
210          * </p>
211          * 
212          * @since 3.0
213          */
214         public static final String CODEGEN_IS_FOR_GETTERS = "org.eclipse.jdt.ui.gettersetter.use.is"; //$NON-NLS-1$
215
216         /**
217          * A named preference that defines the preferred variable names for
218          * exceptions in catch clauses.
219          * <p>
220          * Value is of type <code>String</code>.
221          * </p>
222          * 
223          * @since 3.0
224          */
225         public static final String CODEGEN_EXCEPTION_VAR_NAME = "org.eclipse.jdt.ui.exception.name"; //$NON-NLS-1$
226
227         /**
228          * A named preference that controls if comment stubs will be added
229          * automatically to newly created types and methods.
230          * <p>
231          * Value is of type <code>Boolean</code>.
232          * </p>
233          * 
234          * @since 2.1
235          */
236         public static final String CODEGEN_ADD_COMMENTS = "net.sourceforge.phpdt.ui.phpdoc"; //$NON-NLS-1$
237
238         /**
239          * A name preference that controls if a JavaDoc stub gets added to newly
240          * created types and methods.
241          * <p>
242          * Value is of type <code>Boolean</code>.
243          * </p>
244          * 
245          * @deprecated Use CODEGEN_ADD_COMMENTS instead (Name is more precise).
246          */
247         // public static final String CODEGEN__JAVADOC_STUBS = CODEGEN_ADD_COMMENTS;
248         // //$NON-NLS-1$
249         /**
250          * A named preference that controls if a non-phpdoc comment gets added to
251          * methods generated via the "Override Methods" operation.
252          * <p>
253          * Value is of type <code>Boolean</code>.
254          * </p>
255          */
256         public static final String CODEGEN__NON_JAVADOC_COMMENTS = "net.sourceforge.phpdt.ui.seecomments"; //$NON-NLS-1$
257
258         /**
259          * A named preference that controls if a file comment gets added to newly
260          * created files.
261          * <p>
262          * Value is of type <code>Boolean</code>.
263          * </p>
264          */
265         public static final String CODEGEN__FILE_COMMENTS = "net.sourceforge.phpdt.ui.filecomments"; //$NON-NLS-1$
266
267         /**
268          * A named preference that holds a list of comma separated package names.
269          * The list specifies the import order used by the "Organize Imports"
270          * opeation.
271          * <p>
272          * Value is of type <code>String</code>: semicolon separated list of
273          * package names
274          * </p>
275          */
276         // public static final String ORGIMPORTS_IMPORTORDER =
277         // "net.sourceforge.phpdt.ui.importorder"; //$NON-NLS-1$
278         /**
279          * A named preference that specifies the number of imports added before a
280          * star-import declaration is used.
281          * <p>
282          * Value is of type <code>Int</code>: positive value specifing the number
283          * of non star-import is used
284          * </p>
285          */
286         public static final String ORGIMPORTS_ONDEMANDTHRESHOLD = "net.sourceforge.phpdt.ui.ondemandthreshold"; //$NON-NLS-1$
287
288         /**
289          * A named preferences that controls if types that start with a lower case
290          * letters get added by the "Organize Import" operation.
291          * <p>
292          * Value is of type <code>Boolean</code>.
293          * </p>
294          */
295         public static final String ORGIMPORTS_IGNORELOWERCASE = "net.sourceforge.phpdt.ui.ignorelowercasenames"; //$NON-NLS-1$
296
297         /**
298          * A named preference that speficies whether children of a compilation unit
299          * are shown in the package explorer.
300          * <p>
301          * Value is of type <code>Boolean</code>.
302          * </p>
303          */
304         public static final String SHOW_CU_CHILDREN = "net.sourceforge.phpdt.ui.packages.cuchildren"; //$NON-NLS-1$
305
306         /**
307          * A named preference that controls whether the package explorer's selection
308          * is linked to the active editor.
309          * <p>
310          * Value is of type <code>Boolean</code>.
311          * </p>
312          */
313         public static final String LINK_PACKAGES_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktoeditor"; //$NON-NLS-1$
314
315         /**
316          * A named preference that controls whether the hierarchy view's selection
317          * is linked to the active editor.
318          * <p>
319          * Value is of type <code>Boolean</code>.
320          * </p>
321          */
322         public static final String LINK_TYPEHIERARCHY_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
323
324         /**
325          * A named preference that controls whether the browsing view's selection is
326          * linked to the active editor.
327          * <p>
328          * Value is of type <code>Boolean</code>.
329          * </p>
330          * 
331          * @since 2.1
332          */
333         public static final String LINK_BROWSING_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
334
335         /**
336          * A named preference that controls whether new projects are generated using
337          * source and output folder.
338          * <p>
339          * Value is of type <code>Boolean</code>. if <code>true</code> new
340          * projects are created with a source and output folder. If
341          * <code>false</code> source and output folder equals to the project.
342          * </p>
343          */
344         public static final String SRCBIN_FOLDERS_IN_NEWPROJ = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
345
346         /**
347          * A named preference that specifies the source folder name used when
348          * creating a new Java project. Value is inactive if
349          * <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
350          * <p>
351          * Value is of type <code>String</code>.
352          * </p>
353          * 
354          * @see #SRCBIN_FOLDERS_IN_NEWPROJ
355          */
356         public static final String SRCBIN_SRCNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
357
358         /**
359          * A named preference that specifies the output folder name used when
360          * creating a new Java project. Value is inactive if
361          * <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
362          * <p>
363          * Value is of type <code>String</code>.
364          * </p>
365          * 
366          * @see #SRCBIN_FOLDERS_IN_NEWPROJ
367          */
368         public static final String SRCBIN_BINNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
369
370         /**
371          * A named preference that holds a list of possible JRE libraries used by
372          * the New Java Project wizard. An library consists of a description and an
373          * arbitrary number of <code>IClasspathEntry</code>s, that will represent
374          * the JRE on the new project's classpath.
375          * <p>
376          * Value is of type <code>String</code>: a semicolon separated list of
377          * encoded JRE libraries. <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines
378          * the currently used library. Clients should use the method
379          * <code>encodeJRELibrary</code> to encode a JRE library into a string and
380          * the methods <code>decodeJRELibraryDescription(String)</code> and <code>
381          * decodeJRELibraryClasspathEntries(String)</code>
382          * to decode the description and the array of classpath entries from an
383          * encoded string.
384          * </p>
385          * 
386          * @see #NEWPROJECT_JRELIBRARY_INDEX
387          * @see #encodeJRELibrary(String, IClasspathEntry[])
388          * @see #decodeJRELibraryDescription(String)
389          * @see #decodeJRELibraryClasspathEntries(String)
390          */
391         public static final String NEWPROJECT_JRELIBRARY_LIST = "net.sourceforge.phpdt.ui.wizards.jre.list"; //$NON-NLS-1$
392
393         /**
394          * A named preferences that specifies the current active JRE library.
395          * <p>
396          * Value is of type <code>Int</code>: an index into the list of possible
397          * JRE libraries.
398          * </p>
399          * 
400          * @see #NEWPROJECT_JRELIBRARY_LIST
401          */
402         public static final String NEWPROJECT_JRELIBRARY_INDEX = "net.sourceforge.phpdt.ui.wizards.jre.index"; //$NON-NLS-1$
403
404         /**
405          * A named preference that controls if a new type hierarchy gets opened in a
406          * new type hierarchy perspective or inside the type hierarchy view part.
407          * <p>
408          * Value is of type <code>String</code>: possible values are <code>
409          * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code>
410          * or <code>
411          * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
412          * </p>
413          * 
414          * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
415          * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
416          */
417         public static final String OPEN_TYPE_HIERARCHY = "net.sourceforge.phpdt.ui.openTypeHierarchy"; //$NON-NLS-1$
418
419         /**
420          * A string value used by the named preference
421          * <code>OPEN_TYPE_HIERARCHY</code>.
422          * 
423          * @see #OPEN_TYPE_HIERARCHY
424          */
425         public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$
426
427         /**
428          * A string value used by the named preference
429          * <code>OPEN_TYPE_HIERARCHY</code>.
430          * 
431          * @see #OPEN_TYPE_HIERARCHY
432          */
433         public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$
434
435         /**
436          * A named preference that controls the behaviour when double clicking on a
437          * container in the packages view.
438          * <p>
439          * Value is of type <code>String</code>: possible values are <code>
440          * DOUBLE_CLICK_GOES_INTO</code>
441          * or <code>
442          * DOUBLE_CLICK_EXPANDS</code>.
443          * </p>
444          * 
445          * @see #DOUBLE_CLICK_EXPANDS
446          * @see #DOUBLE_CLICK_GOES_INTO
447          */
448         public static final String DOUBLE_CLICK = "packageview.doubleclick"; //$NON-NLS-1$
449
450         /**
451          * A string value used by the named preference <code>DOUBLE_CLICK</code>.
452          * 
453          * @see #DOUBLE_CLICK
454          */
455         public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$
456
457         /**
458          * A string value used by the named preference <code>DOUBLE_CLICK</code>.
459          * 
460          * @see #DOUBLE_CLICK
461          */
462         public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$
463
464         /**
465          * A named preference that controls whether Java views update their
466          * presentation while editing or when saving the content of an editor.
467          * <p>
468          * Value is of type <code>String</code>: possible values are <code>
469          * UPDATE_ON_SAVE</code>
470          * or <code>
471          * UPDATE_WHILE_EDITING</code>.
472          * </p>
473          * 
474          * @see #UPDATE_ON_SAVE
475          * @see #UPDATE_WHILE_EDITING
476          */
477         public static final String UPDATE_JAVA_VIEWS = "JavaUI.update"; //$NON-NLS-1$
478
479         /**
480          * A string value used by the named preference
481          * <code>UPDATE_JAVA_VIEWS</code>
482          * 
483          * @see #UPDATE_JAVA_VIEWS
484          */
485         public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$
486
487         /**
488          * A string value used by the named preference
489          * <code>UPDATE_JAVA_VIEWS</code>
490          * 
491          * @see #UPDATE_JAVA_VIEWS
492          */
493         public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$
494
495         /**
496          * A named preference that holds the path of the Javadoc command used by the
497          * Javadoc creation wizard.
498          * <p>
499          * Value is of type <code>String</code>.
500          * </p>
501          */
502         public static final String JAVADOC_COMMAND = "command"; //$NON-NLS-1$
503
504         /**
505          * A named preference that defines whether hint to make hover sticky should
506          * be shown.
507          * 
508          * @see JavaUI
509          * @since 3.0
510          */
511         public static final String EDITOR_SHOW_TEXT_HOVER_AFFORDANCE = "PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE"; //$NON-NLS-1$
512
513         /**
514          * A named preference that defines the key for the hover modifiers.
515          * 
516          * @see JavaUI
517          * @since 2.1
518          */
519         public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$
520
521         /**
522          * The id of the best match hover contributed for extension point
523          * <code>javaEditorTextHovers</code>.
524          * 
525          * @since 2.1
526          */
527         public static String ID_BESTMATCH_HOVER = "net.sourceforge.phpdt.ui.BestMatchHover"; //$NON-NLS-1$
528
529         /**
530          * The id of the source code hover contributed for extension point
531          * <code>javaEditorTextHovers</code>.
532          * 
533          * @since 2.1
534          */
535         public static String ID_SOURCE_HOVER = "net.sourceforge.phpdt.ui.JavaSourceHover"; //$NON-NLS-1$
536
537         /**
538          * The id of the problem hover contributed for extension point
539          * <code>javaEditorTextHovers</code>.
540          * 
541          * @since 2.1
542          */
543         public static String ID_PROBLEM_HOVER = "net.sourceforge.phpdt.ui.ProblemHover"; //$NON-NLS-1$
544
545         /**
546          * A named preference that controls whether bracket matching highlighting is
547          * turned on or off.
548          * <p>
549          * Value is of type <code>Boolean</code>.
550          * </p>
551          */
552         public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
553
554         /**
555          * A named preference that holds the color used to highlight matching
556          * brackets.
557          * <p>
558          * Value is of type <code>String</code>. A RGB color value encoded as a
559          * string using class <code>PreferenceConverter</code>
560          * </p>
561          * 
562          * @see org.eclipse.jface.resource.StringConverter
563          * @see org.eclipse.jface.preference.PreferenceConverter
564          */
565         public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
566
567         /**
568          * A named preference that controls whether the current line highlighting is
569          * turned on or off.
570          * <p>
571          * Value is of type <code>Boolean</code>.
572          * </p>
573          */
574         public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
575
576         /**
577          * A named preference that holds the color used to highlight the current
578          * line.
579          * <p>
580          * Value is of type <code>String</code>. A RGB color value encoded as a
581          * string using class <code>PreferenceConverter</code>
582          * </p>
583          * 
584          * @see org.eclipse.jface.resource.StringConverter
585          * @see org.eclipse.jface.preference.PreferenceConverter
586          */
587         public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
588
589         /**
590          * A named preference that controls whether the print margin is turned on or
591          * off.
592          * <p>
593          * Value is of type <code>Boolean</code>.
594          * </p>
595          */
596         public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
597
598         /**
599          * A named preference that holds the color used to render the print margin.
600          * <p>
601          * Value is of type <code>String</code>. A RGB color value encoded as a
602          * string using class <code>PreferenceConverter</code>
603          * </p>
604          * 
605          * @see org.eclipse.jface.resource.StringConverter
606          * @see org.eclipse.jface.preference.PreferenceConverter
607          */
608         public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
609
610         /**
611          * Print margin column. Int value.
612          */
613         public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
614
615         /**
616          * A named preference that holds the color used for the find/replace scope.
617          * <p>
618          * Value is of type <code>String</code>. A RGB color value encoded as a
619          * string using class <code>PreferenceConverter</code>
620          * </p>
621          * 
622          * @see org.eclipse.jface.resource.StringConverter
623          * @see org.eclipse.jface.preference.PreferenceConverter
624          */
625         public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
626
627         /**
628          * A named preference that specifies if the editor uses spaces for tabs.
629          * <p>
630          * Value is of type <code>Boolean</code>. If <code>true</code> spaces
631          * instead of tabs are used in the editor. If <code>false</code> the
632          * editor inserts a tab character when pressing the tab key.
633          * </p>
634          */
635         public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
636
637         /**
638          * A named preference that holds the number of spaces used per tab in the
639          * editor.
640          * <p>
641          * Value is of type <code>Int</code>: positive int value specifying the
642          * number of spaces per tab.
643          * </p>
644          */
645         public final static String EDITOR_TAB_WIDTH = AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH; // "net.sourceforge.phpdt.ui.editor.tab.width";
646
647         // //$NON-NLS-1$
648
649         /**
650          * A named preference that controls whether the outline view selection
651          * should stay in sync with with the element at the current cursor position.
652          * <p>
653          * Value is of type <code>Boolean</code>.
654          * </p>
655          * 
656          * @since 2.1
657          */
658         public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
659
660         /**
661          * A named preference that controls if correction indicators are shown in
662          * the UI.
663          * <p>
664          * Value is of type <code>Boolean</code>.
665          * </p>
666          */
667         public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
668
669         /**
670          * A named preference that controls whether the editor shows problem
671          * indicators in text (squiggly lines).
672          * <p>
673          * Value is of type <code>Boolean</code>.
674          * </p>
675          */
676         // public final static String EDITOR_PROBLEM_INDICATION =
677         // "problemIndication"; //$NON-NLS-1$
678         /**
679          * A named preference that holds the color used to render problem
680          * indicators.
681          * <p>
682          * Value is of type <code>String</code>. A RGB color value encoded as a
683          * string using class <code>PreferenceConverter</code>
684          * </p>
685          * 
686          * @see #EDITOR_PROBLEM_INDICATION
687          * @see org.eclipse.jface.resource.StringConverter
688          * @see org.eclipse.jface.preference.PreferenceConverter
689          */
690         // public final static String EDITOR_PROBLEM_INDICATION_COLOR =
691         // "problemIndicationColor"; //$NON-NLS-1$
692         /**
693          * PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR; A named preference
694          * that controls whether the editor shows warning indicators in text
695          * (squiggly lines).
696          * <p>
697          * Value is of type <code>Boolean</code>.
698          * </p>
699          */
700         // public final static String EDITOR_WARNING_INDICATION =
701         // "warningIndication"; //$NON-NLS-1$
702         /**
703          * A named preference that holds the color used to render warning
704          * indicators.
705          * <p>
706          * Value is of type <code>String</code>. A RGB color value encoded as a
707          * string using class <code>PreferenceConverter</code>
708          * </p>
709          * 
710          * @see #EDITOR_WARNING_INDICATION
711          * @see org.eclipse.jface.resource.StringConverter
712          * @see org.eclipse.jface.preference.PreferenceConverter
713          */
714         // public final static String EDITOR_WARNING_INDICATION_COLOR =
715         // "warningIndicationColor"; //$NON-NLS-1$
716         /**
717          * A named preference that controls whether the editor shows task indicators
718          * in text (squiggly lines).
719          * <p>
720          * Value is of type <code>Boolean</code>.
721          * </p>
722          */
723         public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
724
725         /**
726          * A named preference that holds the color used to render task indicators.
727          * <p>
728          * Value is of type <code>String</code>. A RGB color value encoded as a
729          * string using class <code>PreferenceConverter</code>
730          * </p>
731          * 
732          * @see #EDITOR_TASK_INDICATION
733          * @see org.eclipse.jface.resource.StringConverter
734          * @see org.eclipse.jface.preference.PreferenceConverter
735          */
736         public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
737
738         /**
739          * A named preference that controls whether the editor shows bookmark
740          * indicators in text (squiggly lines).
741          * <p>
742          * Value is of type <code>Boolean</code>.
743          * </p>
744          * 
745          * @since 2.1
746          */
747         public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
748
749         /**
750          * A named preference that holds the color used to render bookmark
751          * indicators.
752          * <p>
753          * Value is of type <code>String</code>. A RGB color value encoded as a
754          * string using class <code>PreferenceConverter</code>
755          * </p>
756          * 
757          * @see #EDITOR_BOOKMARK_INDICATION
758          * @see org.eclipse.jface.resource.StringConverter
759          * @see org.eclipse.jface.preference.PreferenceConverter
760          * @since 2.1
761          */
762         public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
763
764         /**
765          * A named preference that controls whether the editor shows search
766          * indicators in text (squiggly lines).
767          * <p>
768          * Value is of type <code>Boolean</code>.
769          * </p>
770          * 
771          * @since 2.1
772          */
773         public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
774
775         /**
776          * A named preference that holds the color used to render search indicators.
777          * <p>
778          * Value is of type <code>String</code>. A RGB color value encoded as a
779          * string using class <code>PreferenceConverter</code>
780          * </p>
781          * 
782          * @see #EDITOR_SEARCH_RESULT_INDICATION
783          * @see org.eclipse.jface.resource.StringConverter
784          * @see org.eclipse.jface.preference.PreferenceConverter
785          * @since 2.1
786          */
787         public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
788
789         /**
790          * A named preference that controls whether the editor shows unknown
791          * indicators in text (squiggly lines).
792          * <p>
793          * Value is of type <code>Boolean</code>.
794          * </p>
795          * 
796          * @since 2.1
797          */
798         public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
799
800         /**
801          * A named preference that holds the color used to render unknown
802          * indicators.
803          * <p>
804          * Value is of type <code>String</code>. A RGB color value encoded as a
805          * string using class <code>PreferenceConverter</code>
806          * </p>
807          * 
808          * @see #EDITOR_UNKNOWN_INDICATION
809          * @see org.eclipse.jface.resource.StringConverter
810          * @see org.eclipse.jface.preference.PreferenceConverter
811          * @since 2.1
812          */
813         public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
814
815         /**
816          * A named preference that controls whether the overview ruler shows error
817          * indicators.
818          * <p>
819          * Value is of type <code>Boolean</code>.
820          * </p>
821          * 
822          * @since 2.1
823          */
824         public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
825
826         /**
827          * A named preference that controls whether the overview ruler shows warning
828          * indicators.
829          * <p>
830          * Value is of type <code>Boolean</code>.
831          * </p>
832          * 
833          * @since 2.1
834          */
835         public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
836
837         /**
838          * A named preference that controls whether the overview ruler shows task
839          * indicators.
840          * <p>
841          * Value is of type <code>Boolean</code>.
842          * </p>
843          * 
844          * @since 2.1
845          */
846         public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
847
848         /**
849          * A named preference that controls whether the overview ruler shows
850          * bookmark indicators.
851          * <p>
852          * Value is of type <code>Boolean</code>.
853          * </p>
854          * 
855          * @since 2.1
856          */
857         public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
858
859         /**
860          * A named preference that controls whether the overview ruler shows search
861          * result indicators.
862          * <p>
863          * Value is of type <code>Boolean</code>.
864          * </p>
865          * 
866          * @since 2.1
867          */
868         public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
869
870         /**
871          * A named preference that controls whether the overview ruler shows unknown
872          * indicators.
873          * <p>
874          * Value is of type <code>Boolean</code>.
875          * </p>
876          * 
877          * @since 2.1
878          */
879         public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
880
881         /**
882          * A named preference that controls whether the 'close strings' feature is
883          * enabled in PHP mode
884          * <p>
885          * Value is of type <code>Boolean</code>.
886          * </p>
887          */
888         public final static String EDITOR_CLOSE_STRINGS_DQ_PHP = "closeStringsPHPDQ"; //$NON-NLS-1$
889
890         /**
891          * A named preference that controls whether the 'close strings' feature is
892          * enabled in PHP mode
893          * <p>
894          * Value is of type <code>Boolean</code>.
895          * </p>
896          */
897         public final static String EDITOR_CLOSE_STRINGS_SQ_PHP = "closeStringsPHPSQ"; //$NON-NLS-1$
898
899         /**
900          * A named preference that controls whether the 'close brackets' feature is
901          * enabled in PHP mode
902          * <p>
903          * Value is of type <code>Boolean</code>.
904          * </p>
905          * 
906          * @since 2.1
907          */
908         public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$
909
910         /**
911          * A named preference that controls whether the 'wrap words' feature is
912          * enabled.
913          * <p>
914          * Value is of type <code>Boolean</code>.
915          * </p>
916          * 
917          * @since 2.1
918          */
919         public final static String EDITOR_WRAP_WORDS = "wrapWords"; //$NON-NLS-1$
920
921         /**
922          * A named preference that controls whether the 'wrap strings' feature is
923          * enabled.
924          * <p>
925          * Value is of type <code>Boolean</code>.
926          * </p>
927          * 
928          * @since 2.1
929          */
930         public final static String EDITOR_WRAP_STRINGS_DQ = "wrapStringsDQ"; //$NON-NLS-1$
931
932         /**
933          * A named preference that controls whether the 'escape strings' feature is
934          * enabled.
935          * <p>
936          * Value is of type <code>Boolean</code>.
937          * </p>
938          * 
939          * @since 3.0
940          */
941         public final static String EDITOR_ESCAPE_STRINGS_DQ = "escapeStringsDQ"; //$NON-NLS-1$
942
943         /**
944          * A named preference that controls whether the 'wrap strings' feature is
945          * enabled.
946          * <p>
947          * Value is of type <code>Boolean</code>.
948          * </p>
949          * 
950          * @since 2.1
951          */
952         public final static String EDITOR_WRAP_STRINGS_SQ = "wrapStringsSQ"; //$NON-NLS-1$
953
954         /**
955          * A named preference that controls whether the 'escape strings' feature is
956          * enabled.
957          * <p>
958          * Value is of type <code>Boolean</code>.
959          * </p>
960          * 
961          * @since 3.0
962          */
963         public final static String EDITOR_ESCAPE_STRINGS_SQ = "escapeStringsSQ"; //$NON-NLS-1$
964
965         /**
966          * A named preference that controls if content assist inserts the common
967          * prefix of all proposals before presenting choices.
968          * <p>
969          * Value is of type <code>Boolean</code>.
970          * </p>
971          * 
972          * @since 3.0
973          */
974         public final static String CODEASSIST_PREFIX_COMPLETION = "content_assist_prefix_completion"; //$NON-NLS-1$
975
976         /**
977          * A named preference that controls whether the 'close braces' feature is
978          * enabled.
979          * <p>
980          * Value is of type <code>Boolean</code>.
981          * </p>
982          * 
983          * @since 2.1
984          */
985         public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
986
987         /**
988          * A named preference that controls whether the 'close php docs' feature is
989          * enabled.
990          * <p>
991          * Value is of type <code>Boolean</code>.
992          * </p>
993          * 
994          * @since 2.1
995          */
996         public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
997
998         /**
999          * A named preference that controls whether the 'add JavaDoc tags' feature
1000          * is enabled.
1001          * <p>
1002          * Value is of type <code>Boolean</code>.
1003          * </p>
1004          * 
1005          * @since 2.1
1006          */
1007         public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
1008
1009         /**
1010          * A named preference that controls whether the 'format Javadoc tags'
1011          * feature is enabled.
1012          * <p>
1013          * Value is of type <code>Boolean</code>.
1014          * </p>
1015          * 
1016          * @since 2.1
1017          */
1018         public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$
1019
1020         /**
1021          * A named preference that controls whether the 'smart paste' feature is
1022          * enabled.
1023          * <p>
1024          * Value is of type <code>Boolean</code>.
1025          * </p>
1026          * 
1027          * @since 2.1
1028          */
1029         public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
1030
1031         /**
1032          * A named preference that controls whether the 'close strings' feature is
1033          * enabled in HTML mode
1034          * <p>
1035          * Value is of type <code>Boolean</code>.
1036          * </p>
1037          * 
1038          * @since 2.1
1039          */
1040         public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$
1041
1042         /**
1043          * A named preference that controls whether the 'close brackets' feature is
1044          * enabled in HTML mode
1045          * <p>
1046          * Value is of type <code>Boolean</code>.
1047          * </p>
1048          * 
1049          * @since 2.1
1050          */
1051         public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$
1052
1053         /**
1054          * A named preference that controls whether the 'smart home-end' feature is
1055          * enabled.
1056          * <p>
1057          * Value is of type <code>Boolean</code>.
1058          * </p>
1059          * 
1060          * @since 2.1
1061          */
1062         public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
1063
1064         /**
1065          * A named preference that controls whether the 'sub-word navigation'
1066          * feature is enabled.
1067          * <p>
1068          * Value is of type <code>Boolean</code>.
1069          * </p>
1070          * 
1071          * @since 2.1
1072          */
1073         public final static String EDITOR_SUB_WORD_NAVIGATION = "subWordNavigation"; //$NON-NLS-1$
1074
1075         /**
1076          * A named preference that controls if temporary problems are evaluated and
1077          * shown in the UI.
1078          * <p>
1079          * Value is of type <code>Boolean</code>.
1080          * </p>
1081          */
1082         public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
1083
1084         /**
1085          * A named preference that controls if the overview ruler is shown in the
1086          * UI.
1087          * <p>
1088          * Value is of type <code>Boolean</code>.
1089          * </p>
1090          */
1091         public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
1092
1093         /**
1094          * A named preference that controls if the line number ruler is shown in the
1095          * UI.
1096          * <p>
1097          * Value is of type <code>Boolean</code>.
1098          * </p>
1099          */
1100         public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$
1101
1102         /**
1103          * A named preference that holds the color used to render line numbers
1104          * inside the line number ruler.
1105          * <p>
1106          * Value is of type <code>String</code>. A RGB color value encoded as a
1107          * string using class <code>PreferenceConverter</code>
1108          * </p>
1109          * 
1110          * @see org.eclipse.jface.resource.StringConverter
1111          * @see org.eclipse.jface.preference.PreferenceConverter
1112          * @see #EDITOR_LINE_NUMBER_RULER
1113          */
1114         public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$
1115
1116         /**
1117          * A named preference that holds the color used to render linked positions
1118          * inside code templates.
1119          * <p>
1120          * Value is of type <code>String</code>. A RGB color value encoded as a
1121          * string using class <code>PreferenceConverter</code>
1122          * </p>
1123          * 
1124          * @see org.eclipse.jface.resource.StringConverter
1125          * @see org.eclipse.jface.preference.PreferenceConverter
1126          */
1127         public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
1128
1129         /**
1130          * A named preference that holds the color used as the text foreground.
1131          * <p>
1132          * Value is of type <code>String</code>. A RGB color value encoded as a
1133          * string using class <code>PreferenceConverter</code>
1134          * </p>
1135          * 
1136          * @see org.eclipse.jface.resource.StringConverter
1137          * @see org.eclipse.jface.preference.PreferenceConverter
1138          */
1139         public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
1140
1141         /**
1142          * A named preference that describes if the system default foreground color
1143          * is used as the text foreground.
1144          * <p>
1145          * Value is of type <code>Boolean</code>.
1146          * </p>
1147          */
1148         public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
1149
1150         /**
1151          * A named preference that holds the color used as the text background.
1152          * <p>
1153          * Value is of type <code>String</code>. A RGB color value encoded as a
1154          * string using class <code>PreferenceConverter</code>
1155          * </p>
1156          * 
1157          * @see org.eclipse.jface.resource.StringConverter
1158          * @see org.eclipse.jface.preference.PreferenceConverter
1159          */
1160         public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
1161
1162         /**
1163          * A named preference that describes if the system default background color
1164          * is used as the text foreground.
1165          * <p>
1166          * Value is of type <code>Boolean</code>.
1167          * </p>
1168          */
1169         public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
1170
1171         /**
1172          * Preference key suffix for bold text style preference keys.
1173          */
1174         public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
1175
1176         /**
1177          * Preference key suffix for bold text style preference keys.
1178          */
1179         public static final String EDITOR_ITALIC_SUFFIX = "_italic"; //$NON-NLS-1$
1180
1181         /**
1182          * A named preference that holds the color used to render multi line
1183          * comments.
1184          * <p>
1185          * Value is of type <code>String</code>. A RGB color value encoded as a
1186          * string using class <code>PreferenceConverter</code>
1187          * </p>
1188          * 
1189          * @see org.eclipse.jface.resource.StringConverter
1190          * @see org.eclipse.jface.preference.PreferenceConverter
1191          */
1192         public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT;
1193
1194         /**
1195          * The symbolic font name for the Java editor text font (value
1196          * <code>"net.sourceforge.phpdt.ui.editors.textfont"</code>).
1197          * 
1198          * @since 2.1
1199          */
1200         public final static String EDITOR_TEXT_FONT = "net.sourceforge.phpdt.ui.editors.textfont"; //$NON-NLS-1$
1201
1202         /**
1203          * A named preference that controls whether multi line comments are rendered
1204          * in bold.
1205          * <p>
1206          * Value is of type <code>Boolean</code>. If <code>true</code> multi
1207          * line comments are rendered in bold. If <code>false</code> the are
1208          * rendered using no font style attribute.
1209          * </p>
1210          */
1211         public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT
1212                         + EDITOR_BOLD_SUFFIX;
1213
1214         /**
1215          * A named preference that holds the color used to render single line
1216          * comments.
1217          * <p>
1218          * Value is of type <code>String</code>. A RGB color value encoded as a
1219          * string using class <code>PreferenceConverter</code>
1220          * </p>
1221          * 
1222          * @see org.eclipse.jface.resource.StringConverter
1223          * @see org.eclipse.jface.preference.PreferenceConverter
1224          */
1225         public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT;
1226
1227         /**
1228          * A named preference that controls whether sinle line comments are rendered
1229          * in bold.
1230          * <p>
1231          * Value is of type <code>Boolean</code>. If <code>true</code> single
1232          * line comments are rendered in bold. If <code>false</code> the are
1233          * rendered using no font style attribute.
1234          * </p>
1235          */
1236         public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT
1237                         + EDITOR_BOLD_SUFFIX;
1238
1239         /**
1240          * A named preference that holds the color used to render operators and
1241          * brackets.
1242          * <p>
1243          * Value is of type <code>String</code>. A RGB color value encoded as a
1244          * string using class <code>PreferenceConverter</code>
1245          * </p>
1246          * 
1247          * @see org.eclipse.jface.resource.StringConverter
1248          * @see org.eclipse.jface.preference.PreferenceConverter
1249          * @since 3.0
1250          */
1251         public final static String EDITOR_PHP_OPERATOR_COLOR = IPreferenceConstants.PHP_OPERATOR;
1252
1253         /**
1254          * A named preference that controls whether operators and brackets are
1255          * rendered in bold.
1256          * <p>
1257          * Value is of type <code>Boolean</code>.
1258          * </p>
1259          * 
1260          * @since 3.0
1261          */
1262         public final static String EDITOR_PHP_OPERATOR_BOLD = IPreferenceConstants.PHP_OPERATOR
1263                         + EDITOR_BOLD_SUFFIX;
1264
1265         /**
1266          * A named preference that controls whether operators and brackets are
1267          * rendered in italic.
1268          * <p>
1269          * Value is of type <code>Boolean</code>.
1270          * </p>
1271          * 
1272          * @since 3.0
1273          */
1274         public final static String EDITOR_PHP_OPERATOR_ITALIC = IPreferenceConstants.PHP_OPERATOR
1275                         + EDITOR_ITALIC_SUFFIX;
1276
1277         /**
1278          * A named preference that holds the color used to render operators and
1279          * brackets.
1280          * <p>
1281          * Value is of type <code>String</code>. A RGB color value encoded as a
1282          * string using class <code>PreferenceConverter</code>
1283          * </p>
1284          * 
1285          * @see org.eclipse.jface.resource.StringConverter
1286          * @see org.eclipse.jface.preference.PreferenceConverter
1287          * @since 3.0
1288          */
1289         public final static String EDITOR_PHP_BRACE_OPERATOR_COLOR = IPreferenceConstants.PHP_BRACE_OPERATOR;
1290
1291         /**
1292          * A named preference that controls whether operators and brackets are
1293          * rendered in bold.
1294          * <p>
1295          * Value is of type <code>Boolean</code>.
1296          * </p>
1297          * 
1298          * @since 3.0
1299          */
1300         public final static String EDITOR_PHP_BRACE_OPERATOR_BOLD = IPreferenceConstants.PHP_BRACE_OPERATOR
1301                         + EDITOR_BOLD_SUFFIX;
1302
1303         /**
1304          * A named preference that controls whether operators and brackets are
1305          * rendered in italic.
1306          * <p>
1307          * Value is of type <code>Boolean</code>.
1308          * </p>
1309          * 
1310          * @since 3.0
1311          */
1312         public final static String EDITOR_PHP_BRACE_OPERATOR_ITALIC = IPreferenceConstants.PHP_BRACE_OPERATOR
1313                         + EDITOR_ITALIC_SUFFIX;
1314
1315         /**
1316          * A named preference that holds the color used to render the 'return'
1317          * keyword.
1318          * <p>
1319          * Value is of type <code>String</code>. A RGB color value encoded as a
1320          * string using class <code>PreferenceConverter</code>
1321          * </p>
1322          * 
1323          * @see org.eclipse.jface.resource.StringConverter
1324          * @see org.eclipse.jface.preference.PreferenceConverter
1325          * @since 3.0
1326          */
1327         public final static String EDITOR_PHP_KEYWORD_RETURN_COLOR = IPreferenceConstants.PHP_KEYWORD_RETURN;
1328
1329         /**
1330          * A named preference that controls whether 'return' keyword is rendered in
1331          * bold.
1332          * <p>
1333          * Value is of type <code>Boolean</code>.
1334          * </p>
1335          * 
1336          * @since 3.0
1337          */
1338         public final static String EDITOR_PHP_KEYWORD_RETURN_BOLD = IPreferenceConstants.PHP_KEYWORD_RETURN
1339                         + EDITOR_BOLD_SUFFIX;
1340
1341         /**
1342          * A named preference that controls whether 'return' keyword is rendered in
1343          * italic.
1344          * <p>
1345          * Value is of type <code>Boolean</code>.
1346          * </p>
1347          * 
1348          * @since 3.0
1349          */
1350         public final static String EDITOR_PHP_KEYWORD_RETURN_ITALIC = IPreferenceConstants.PHP_KEYWORD_RETURN
1351                         + EDITOR_ITALIC_SUFFIX;
1352
1353         /**
1354          * A named preference that holds the color used to render php start and stop
1355          * tags.
1356          * <p>
1357          * Value is of type <code>String</code>. A RGB color value encoded as a
1358          * string using class <code>PreferenceConverter</code>
1359          * </p>
1360          * 
1361          * @see org.eclipse.jface.resource.StringConverter
1362          * @see org.eclipse.jface.preference.PreferenceConverter
1363          */
1364         public final static String EDITOR_PHP_TAG_COLOR = IPreferenceConstants.PHP_TAG;
1365
1366         /**
1367          * A named preference that controls whether php start and stop tags are
1368          * rendered in bold.
1369          * <p>
1370          * Value is of type <code>Boolean</code>.
1371          * </p>
1372          */
1373         public final static String EDITOR_PHP_TAG_BOLD = IPreferenceConstants.PHP_TAG
1374                         + EDITOR_BOLD_SUFFIX;
1375
1376         /**
1377          * A named preference that holds the color used to render php keywords.
1378          * <p>
1379          * Value is of type <code>String</code>. A RGB color value encoded as a
1380          * string using class <code>PreferenceConverter</code>
1381          * </p>
1382          * 
1383          * @see org.eclipse.jface.resource.StringConverter
1384          * @see org.eclipse.jface.preference.PreferenceConverter
1385          */
1386         public final static String EDITOR_JAVA_KEYWORD_COLOR = IPreferenceConstants.PHP_KEYWORD;
1387
1388         /**
1389          * A named preference that controls whether keywords are rendered in bold.
1390          * <p>
1391          * Value is of type <code>Boolean</code>.
1392          * </p>
1393          */
1394         public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD
1395                         + EDITOR_BOLD_SUFFIX;
1396
1397         /**
1398          * A named preference that holds the color used to render predefined php
1399          * function names.
1400          * <p>
1401          * Value is of type <code>String</code>. A RGB color value encoded as a
1402          * string using class <code>PreferenceConverter</code>
1403          * </p>
1404          * 
1405          * @see org.eclipse.jface.resource.StringConverter
1406          * @see org.eclipse.jface.preference.PreferenceConverter
1407          */
1408         public final static String EDITOR_PHP_FUNCTIONNAME_COLOR = IPreferenceConstants.PHP_FUNCTIONNAME;
1409
1410         /**
1411          * A named preference that controls whether function names are rendered in
1412          * bold.
1413          * <p>
1414          * Value is of type <code>Boolean</code>.
1415          * </p>
1416          */
1417         public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME
1418                         + EDITOR_BOLD_SUFFIX;
1419
1420         /**
1421          * A named preference that holds the color used to render php variables with
1422          * prefix '$_'.
1423          * <p>
1424          * Value is of type <code>String</code>. A RGB color value encoded as a
1425          * string using class <code>PreferenceConverter</code>
1426          * </p>
1427          * 
1428          * @see org.eclipse.jface.resource.StringConverter
1429          * @see org.eclipse.jface.preference.PreferenceConverter
1430          */
1431         public final static String EDITOR_PHP_VARIABLE_DOLLAR_COLOR = IPreferenceConstants.PHP_VARIABLE_DOLLAR;
1432
1433         /**
1434          * A named preference that controls whether variables with prefix '$_' are
1435          * rendered in bold.
1436          * <p>
1437          * Value is of type <code>Boolean</code>.
1438          * </p>
1439          */
1440         public final static String EDITOR_PHP_VARIABLE_DOLLAR_BOLD = IPreferenceConstants.PHP_VARIABLE_DOLLAR
1441                         + EDITOR_BOLD_SUFFIX;
1442
1443         /**
1444          * A named preference that holds the color used to render php variables.
1445          * <p>
1446          * Value is of type <code>String</code>. A RGB color value encoded as a
1447          * string using class <code>PreferenceConverter</code>
1448          * </p>
1449          * 
1450          * @see org.eclipse.jface.resource.StringConverter
1451          * @see org.eclipse.jface.preference.PreferenceConverter
1452          */
1453         public final static String EDITOR_PHP_VARIABLE_COLOR = IPreferenceConstants.PHP_VARIABLE;
1454
1455         /**
1456          * A named preference that controls whether variables are rendered in bold.
1457          * <p>
1458          * Value is of type <code>Boolean</code>.
1459          * </p>
1460          */
1461         public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE
1462                         + EDITOR_BOLD_SUFFIX;
1463
1464         /**
1465          * A named preference that holds the color used to render php constants.
1466          * <p>
1467          * Value is of type <code>String</code>. A RGB color value encoded as a
1468          * string using class <code>PreferenceConverter</code>
1469          * </p>
1470          * 
1471          * @see org.eclipse.jface.resource.StringConverter
1472          * @see org.eclipse.jface.preference.PreferenceConverter
1473          */
1474         public final static String EDITOR_PHP_CONSTANT_COLOR = IPreferenceConstants.PHP_CONSTANT;
1475
1476         /**
1477          * A named preference that controls whether constants are rendered in bold.
1478          * <p>
1479          * Value is of type <code>Boolean</code>.
1480          * </p>
1481          */
1482         public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT
1483                         + EDITOR_BOLD_SUFFIX;
1484
1485         /**
1486          * A named preference that holds the color used to render php types.
1487          * <p>
1488          * Value is of type <code>String</code>. A RGB color value encoded as a
1489          * string using class <code>PreferenceConverter</code>
1490          * </p>
1491          * 
1492          * @see org.eclipse.jface.resource.StringConverter
1493          * @see org.eclipse.jface.preference.PreferenceConverter
1494          */
1495         public final static String EDITOR_PHP_TYPE_COLOR = IPreferenceConstants.PHP_TYPE;
1496
1497         /**
1498          * A named preference that controls whether types are rendered in bold.
1499          * <p>
1500          * Value is of type <code>Boolean</code>.
1501          * </p>
1502          */
1503         public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE
1504                         + EDITOR_BOLD_SUFFIX;
1505
1506         /**
1507          * A named preference that holds the color used to render string constants.
1508          * <p>
1509          * Value is of type <code>String</code>. A RGB color value encoded as a
1510          * string using class <code>PreferenceConverter</code>
1511          * </p>
1512          * 
1513          * @see org.eclipse.jface.resource.StringConverter
1514          * @see org.eclipse.jface.preference.PreferenceConverter
1515          */
1516         public final static String EDITOR_STRING_COLOR_DQ = IPreferenceConstants.PHP_STRING_DQ;
1517
1518         /**
1519          * A named preference that controls whether string constants are rendered in
1520          * bold.
1521          * <p>
1522          * Value is of type <code>Boolean</code>.
1523          * </p>
1524          */
1525         public final static String EDITOR_STRING_BOLD_DQ = IPreferenceConstants.PHP_STRING_DQ
1526                         + EDITOR_BOLD_SUFFIX;
1527
1528         public final static String EDITOR_STRING_COLOR_SQ = IPreferenceConstants.PHP_STRING_SQ;
1529
1530         /**
1531          * A named preference that controls whether string constants are rendered in
1532          * bold.
1533          * <p>
1534          * Value is of type <code>Boolean</code>.
1535          * </p>
1536          */
1537         public final static String EDITOR_STRING_BOLD_SQ = IPreferenceConstants.PHP_STRING_SQ
1538                         + EDITOR_BOLD_SUFFIX;
1539
1540         /**
1541          * A named preference that holds the color used to render php default text.
1542          * <p>
1543          * Value is of type <code>String</code>. A RGB color value encoded as a
1544          * string using class <code>PreferenceConverter</code>
1545          * </p>
1546          * 
1547          * @see org.eclipse.jface.resource.StringConverter
1548          * @see org.eclipse.jface.preference.PreferenceConverter
1549          */
1550         public final static String EDITOR_JAVA_DEFAULT_COLOR = IPreferenceConstants.PHP_DEFAULT;
1551
1552         /**
1553          * A named preference that controls whether Java default text is rendered in
1554          * bold.
1555          * <p>
1556          * Value is of type <code>Boolean</code>.
1557          * </p>
1558          */
1559         public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT
1560                         + EDITOR_BOLD_SUFFIX;
1561
1562         /**
1563          * A named preference that holds the color used to render task tags.
1564          * <p>
1565          * Value is of type <code>String</code>. A RGB color value encoded as a
1566          * string using class <code>PreferenceConverter</code>
1567          * </p>
1568          * 
1569          * @see org.eclipse.jface.resource.StringConverter
1570          * @see org.eclipse.jface.preference.PreferenceConverter
1571          * @since 2.1
1572          */
1573         public final static String EDITOR_TASK_TAG_COLOR = IPreferenceConstants.TASK_TAG;
1574
1575         /**
1576          * A named preference that controls whether task tags are rendered in bold.
1577          * <p>
1578          * Value is of type <code>Boolean</code>.
1579          * </p>
1580          * 
1581          * @since 2.1
1582          */
1583         public final static String EDITOR_TASK_TAG_BOLD = IPreferenceConstants.TASK_TAG
1584                         + EDITOR_BOLD_SUFFIX;
1585
1586         /**
1587          * A named preference that holds the color used to render phpdoc keywords.
1588          * <p>
1589          * Value is of type <code>String</code>. A RGB color value encoded as a
1590          * string using class <code>PreferenceConverter</code>
1591          * </p>
1592          * 
1593          * @see org.eclipse.jface.resource.StringConverter
1594          * @see org.eclipse.jface.preference.PreferenceConverter
1595          */
1596         public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IPreferenceConstants.PHPDOC_KEYWORD;
1597
1598         /**
1599          * A named preference that controls whether phpdoc keywords are rendered in
1600          * bold.
1601          * <p>
1602          * Value is of type <code>Boolean</code>.
1603          * </p>
1604          */
1605         public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD
1606                         + EDITOR_BOLD_SUFFIX;
1607
1608         /**
1609          * A named preference that holds the color used to render phpdoc tags.
1610          * <p>
1611          * Value is of type <code>String</code>. A RGB color value encoded as a
1612          * string using class <code>PreferenceConverter</code>
1613          * </p>
1614          * 
1615          * @see org.eclipse.jface.resource.StringConverter
1616          * @see org.eclipse.jface.preference.PreferenceConverter
1617          */
1618         public final static String EDITOR_JAVADOC_TAG_COLOR = IPreferenceConstants.PHPDOC_TAG;
1619
1620         /**
1621          * A named preference that controls whether phpdoc tags are rendered in
1622          * bold.
1623          * <p>
1624          * Value is of type <code>Boolean</code>.
1625          * </p>
1626          */
1627         public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG
1628                         + EDITOR_BOLD_SUFFIX;
1629
1630         /**
1631          * A named preference that holds the color used to render phpdoc links.
1632          * <p>
1633          * Value is of type <code>String</code>. A RGB color value encoded as a
1634          * string using class <code>PreferenceConverter</code>
1635          * </p>
1636          * 
1637          * @see org.eclipse.jface.resource.StringConverter
1638          * @see org.eclipse.jface.preference.PreferenceConverter
1639          */
1640         public final static String EDITOR_JAVADOC_LINKS_COLOR = IPreferenceConstants.PHPDOC_LINK;
1641
1642         /**
1643          * A named preference that controls whether phpdoc links are rendered in
1644          * bold.
1645          * <p>
1646          * Value is of type <code>Boolean</code>.
1647          * </p>
1648          */
1649         public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK
1650                         + EDITOR_BOLD_SUFFIX;
1651
1652         /**
1653          * A named preference that holds the color used to render phpdoc default
1654          * text.
1655          * <p>
1656          * Value is of type <code>String</code>. A RGB color value encoded as a
1657          * string using class <code>PreferenceConverter</code>
1658          * </p>
1659          * 
1660          * @see org.eclipse.jface.resource.StringConverter
1661          * @see org.eclipse.jface.preference.PreferenceConverter
1662          */
1663         public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IPreferenceConstants.PHPDOC_DEFAULT;
1664
1665         /**
1666          * A named preference that controls whether phpdoc default text is rendered
1667          * in bold.
1668          * <p>
1669          * Value is of type <code>Boolean</code>.
1670          * </p>
1671          */
1672         public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT
1673                         + EDITOR_BOLD_SUFFIX;
1674
1675         /**
1676          * A named preference that holds the color used for 'linked-mode' underline.
1677          * <p>
1678          * Value is of type <code>String</code>. A RGB color value encoded as a
1679          * string using class <code>PreferenceConverter</code>
1680          * </p>
1681          * 
1682          * @see org.eclipse.jface.resource.StringConverter
1683          * @see org.eclipse.jface.preference.PreferenceConverter
1684          * @since 2.1
1685          */
1686         public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1687
1688         /**
1689          * A named preference that controls whether hover tooltips in the editor are
1690          * turned on or off.
1691          * <p>
1692          * Value is of type <code>Boolean</code>.
1693          * </p>
1694          */
1695         public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1696
1697         /**
1698          * A named preference that defines the hover shown when no control key is
1699          * pressed.
1700          * <p>
1701          * Value is of type <code>String</code>: possible values are <code>
1702          * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1703          * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1704          * hover contributed as <code>phpEditorTextHovers</code>.
1705          * </p>
1706          * 
1707          * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1708          * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1709          * @see JavaUI
1710          * @since 2.1
1711          */
1712         public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1713
1714         /**
1715          * A named preference that defines the hover shown when the
1716          * <code>CTRL</code> modifier key is pressed.
1717          * <p>
1718          * Value is of type <code>String</code>: possible values are <code>
1719          * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1720          * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1721          * hover contributed as <code>phpEditorTextHovers</code>.
1722          * </p>
1723          * 
1724          * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1725          * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1726          * @see JavaUI
1727          * @since 2.1
1728          */
1729         public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1730
1731         /**
1732          * A named preference that defines the hover shown when the
1733          * <code>SHIFT</code> modifier key is pressed.
1734          * <p>
1735          * Value is of type <code>String</code>: possible values are <code>
1736          * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1737          * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1738          * hover contributed as <code>phpEditorTextHovers</code>.
1739          * </p>
1740          * 
1741          * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1742          * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1743          * @see JavaUI ID_*_HOVER
1744          * @since 2.1
1745          */
1746         public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1747
1748         /**
1749          * A named preference that defines the hover shown when the
1750          * <code>CTRL + ALT</code> modifier keys is pressed.
1751          * <p>
1752          * Value is of type <code>String</code>: possible values are <code>
1753          * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1754          * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1755          * hover contributed as <code>phpEditorTextHovers</code>.
1756          * </p>
1757          * 
1758          * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1759          * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1760          * @see JavaUI ID_*_HOVER
1761          * @since 2.1
1762          */
1763         public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1764
1765         /**
1766          * A named preference that defines the hover shown when the
1767          * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1768          * <p>
1769          * Value is of type <code>String</code>: possible values are <code>
1770          * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1771          * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1772          * hover contributed as <code>phpEditorTextHovers</code>.
1773          * </p>
1774          * 
1775          * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1776          * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1777          * @see JavaUI ID_*_HOVER
1778          * @since 2.1
1779          */
1780         public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1781
1782         /**
1783          * A named preference that defines the hover shown when the
1784          * <code>CTRL + SHIFT</code> modifier keys is pressed.
1785          * <p>
1786          * Value is of type <code>String</code>: possible values are <code>
1787          * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1788          * or <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1789          * hover contributed as <code>phpEditorTextHovers</code>.
1790          * </p>
1791          * 
1792          * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1793          * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1794          * @see JavaUI ID_*_HOVER
1795          * @since 2.1
1796          */
1797         public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1798
1799         /**
1800          * A named preference that defines the hover shown when the <code>ALT</code>
1801          * modifier key is pressed.
1802          * <p>
1803          * Value is of type <code>String</code>: possible values are <code>
1804          * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1805          * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1806          * hover contributed as <code>phpEditorTextHovers</code>.
1807          * </p>
1808          * 
1809          * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1810          * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1811          * @see JavaUI ID_*_HOVER
1812          * @since 2.1
1813          */
1814         public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1815
1816         /**
1817          * A string value used by the named preferences for hover configuration to
1818          * descibe that no hover should be shown for the given key modifiers.
1819          * 
1820          * @since 2.1
1821          */
1822         public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1823
1824         /**
1825          * A string value used by the named preferences for hover configuration to
1826          * descibe that the default hover should be shown for the given key
1827          * modifiers. The default hover is described by the
1828          * <code>EDITOR_DEFAULT_HOVER</code> property.
1829          * 
1830          * @since 2.1
1831          */
1832         public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1833
1834         /**
1835          * A named preference that defines the hover named the 'default hover'.
1836          * Value is of type <code>String</code>: possible values are <code>
1837          * EDITOR_NO_HOVER_CONFIGURED_ID</code>
1838          * or <code> the hover id of a hover
1839          * contributed as <code>phpEditorTextHovers</code>.
1840          * </p>
1841          *@since 2.1
1842          */
1843         public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1844
1845         /**
1846          * A named preference that controls if segmented view (show selected element
1847          * only) is turned on or off.
1848          * <p>
1849          * Value is of type <code>Boolean</code>.
1850          * </p>
1851          */
1852         public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1853
1854         /**
1855          * A named preference that controls if browser like links are turned on or
1856          * off.
1857          * <p>
1858          * Value is of type <code>Boolean</code>.
1859          * </p>
1860          * 
1861          * @since 2.1
1862          */
1863         public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
1864
1865         /**
1866          * A named preference that controls the key modifier for browser like links.
1867          * <p>
1868          * Value is of type <code>String</code>.
1869          * </p>
1870          * 
1871          * @since 2.1
1872          */
1873         public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
1874
1875         /**
1876          * A named preference that controls whether occurrences are marked in the
1877          * editor.
1878          * <p>
1879          * Value is of type <code>Boolean</code>.
1880          * </p>
1881          * 
1882          * @since 3.0
1883          */
1884         public static final String EDITOR_MARK_OCCURRENCES = "markOccurrences"; //$NON-NLS-1$
1885
1886         /**
1887          * A named preference that controls whether occurrences are sticky in the
1888          * editor.
1889          * <p>
1890          * Value is of type <code>Boolean</code>.
1891          * </p>
1892          * 
1893          * @since 3.0
1894          */
1895         public static final String EDITOR_STICKY_OCCURRENCES = "stickyOccurrences"; //$NON-NLS-1$
1896
1897         /**
1898          * A named preference that controls disabling of the overwrite mode.
1899          * <p>
1900          * Value is of type <code>Boolean</code>.
1901          * </p>
1902          * 
1903          * @since 3.0
1904          */
1905         public static final String EDITOR_DISABLE_OVERWRITE_MODE = "disable_overwrite_mode"; //$NON-NLS-1$
1906
1907         /**
1908          * A named preference that controls saving of a file on loss of editor focus.
1909          * <p>
1910          * Value is of type <code>Boolean</code>.
1911          * </p>
1912          * 
1913          * @since 3.0
1914          */
1915         public static final String EDITOR_SAVE_ON_BLUR = "save_on_blur"; //$NON-NLS-1$
1916
1917         /**
1918          * A named preference that controls the "smart semicolon" smart typing
1919          * handler
1920          * <p>
1921          * Value is of type <code>Boolean</code>.
1922          * </p>
1923          * 
1924          * @since 3.0
1925          */
1926         public static final String EDITOR_SMART_SEMICOLON = "smart_semicolon"; //$NON-NLS-1$
1927
1928         /**
1929          * A named preference that controls the smart backspace behavior.
1930          * <p>
1931          * Value is of type <code>Boolean</code>.
1932          * 
1933          * @since 3.0
1934          */
1935         public static final String EDITOR_SMART_BACKSPACE = "smart_backspace"; //$NON-NLS-1$
1936
1937         /**
1938          * A named preference that controls the "smart opening brace" smart typing
1939          * handler
1940          * <p>
1941          * Value is of type <code>Boolean</code>.
1942          * </p>
1943          * 
1944          * @since 3.0
1945          */
1946         public static final String EDITOR_SMART_OPENING_BRACE = "smart_opening_brace"; //$NON-NLS-1$
1947
1948         /**
1949          * A named preference that controls the smart tab behaviour.
1950          * <p>
1951          * Value is of type <code>Boolean</code>.
1952          * 
1953          * @since 3.0
1954          */
1955         public static final String EDITOR_SMART_TAB = "smart_tab"; //$NON-NLS-1$
1956
1957         public static final String EDITOR_P_RTRIM_ON_SAVE = "editor_p_trim_on_save"; //$NON-NLS-1$
1958
1959         /**
1960          * A named preference that controls whether Java comments should be
1961          * spell-checked.
1962          * <p>
1963          * Value is of type <code>Boolean</code>.
1964          * </p>
1965          * 
1966          * @since 3.0
1967          */
1968         public final static String SPELLING_CHECK_SPELLING = ISpellCheckPreferenceKeys.SPELLING_CHECK_SPELLING;
1969
1970         /**
1971          * A named preference that controls whether words containing digits should
1972          * be skipped during spell-checking.
1973          * <p>
1974          * Value is of type <code>Boolean</code>.
1975          * </p>
1976          * 
1977          * @since 3.0
1978          */
1979         public final static String SPELLING_IGNORE_DIGITS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_DIGITS;
1980
1981         /**
1982          * A named preference that controls whether mixed case words should be
1983          * skipped during spell-checking.
1984          * <p>
1985          * Value is of type <code>Boolean</code>.
1986          * </p>
1987          * 
1988          * @since 3.0
1989          */
1990         public final static String SPELLING_IGNORE_MIXED = ISpellCheckPreferenceKeys.SPELLING_IGNORE_MIXED;
1991
1992         /**
1993          * A named preference that controls whether sentence capitalization should
1994          * be ignored during spell-checking.
1995          * <p>
1996          * Value is of type <code>Boolean</code>.
1997          * </p>
1998          * 
1999          * @since 3.0
2000          */
2001         public final static String SPELLING_IGNORE_SENTENCE = ISpellCheckPreferenceKeys.SPELLING_IGNORE_SENTENCE;
2002
2003         /**
2004          * A named preference that controls whether upper case words should be
2005          * skipped during spell-checking.
2006          * <p>
2007          * Value is of type <code>Boolean</code>.
2008          * </p>
2009          * 
2010          * @since 3.0
2011          */
2012         public final static String SPELLING_IGNORE_UPPER = ISpellCheckPreferenceKeys.SPELLING_IGNORE_UPPER;
2013
2014         /**
2015          * A named preference that controls whether urls should be ignored during
2016          * spell-checking.
2017          * <p>
2018          * Value is of type <code>Boolean</code>.
2019          * </p>
2020          * 
2021          * @since 3.0
2022          */
2023         public final static String SPELLING_IGNORE_URLS = ISpellCheckPreferenceKeys.SPELLING_IGNORE_URLS;
2024
2025         /**
2026          * A named preference that controls the locale used for spell-checking.
2027          * <p>
2028          * Value is of type <code>String</code>.
2029          * </p>
2030          * 
2031          * @since 3.0
2032          */
2033         public final static String SPELLING_LOCALE = ISpellCheckPreferenceKeys.SPELLING_LOCALE;
2034
2035         /**
2036          * A named preference that controls the number of proposals offered during
2037          * spell-checking.
2038          * <p>
2039          * Value is of type <code>Integer</code>.
2040          * </p>
2041          * 
2042          * @since 3.0
2043          */
2044         public final static String SPELLING_PROPOSAL_THRESHOLD = ISpellCheckPreferenceKeys.SPELLING_PROPOSAL_THRESHOLD;
2045
2046         /**
2047          * A named preference that specifies the workspace user dictionary.
2048          * <p>
2049          * Value is of type <code>Integer</code>.
2050          * </p>
2051          * 
2052          * @since 3.0
2053          */
2054         public final static String SPELLING_USER_DICTIONARY = ISpellCheckPreferenceKeys.SPELLING_USER_DICTIONARY;
2055
2056         /**
2057          * A named preference that specifies whether spelling dictionaries are
2058          * available to content assist.
2059          * <p>
2060          * Value is of type <code>Boolean</code>.
2061          * </p>
2062          * 
2063          * @since 3.0
2064          */
2065         public final static String SPELLING_ENABLE_CONTENTASSIST = ISpellCheckPreferenceKeys.SPELLING_ENABLE_CONTENTASSIST;
2066
2067         /**
2068          * A named preference that controls whether code snippets are formatted in
2069          * Javadoc comments.
2070          * <p>
2071          * Value is of type <code>Boolean</code>.
2072          * </p>
2073          * 
2074          * @since 3.0
2075          */
2076         public final static String FORMATTER_COMMENT_FORMATSOURCE = "comment_format_source_code"; //$NON-NLS-1$
2077
2078         /**
2079          * A named preference that controls whether description of Javadoc
2080          * parameters are indented.
2081          * <p>
2082          * Value is of type <code>Boolean</code>.
2083          * </p>
2084          * 
2085          * @since 3.0
2086          */
2087         public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION = "comment_indent_parameter_description"; //$NON-NLS-1$
2088
2089         /**
2090          * A named preference that controls whether the header comment of a Java
2091          * source file is formatted.
2092          * <p>
2093          * Value is of type <code>Boolean</code>.
2094          * </p>
2095          * 
2096          * @since 3.0
2097          */
2098         public final static String FORMATTER_COMMENT_FORMATHEADER = "comment_format_header"; //$NON-NLS-1$
2099
2100         /**
2101          * A named preference that controls whether Javadoc root tags are indented.
2102          * <p>
2103          * Value is of type <code>Boolean</code>.
2104          * </p>
2105          * 
2106          * @since 3.0
2107          */
2108         public final static String FORMATTER_COMMENT_INDENTROOTTAGS = "comment_indent_root_tags"; //$NON-NLS-1$
2109
2110         /**
2111          * A named preference that controls whether Javadoc comments are formatted
2112          * by the content formatter.
2113          * <p>
2114          * Value is of type <code>Boolean</code>.
2115          * </p>
2116          * 
2117          * @since 3.0
2118          */
2119         public final static String FORMATTER_COMMENT_FORMAT = "comment_format_comments"; //$NON-NLS-1$
2120
2121         /**
2122          * A named preference that controls whether a new line is inserted after
2123          * Javadoc root tag parameters.
2124          * <p>
2125          * Value is of type <code>Boolean</code>.
2126          * </p>
2127          * 
2128          * @since 3.0
2129          */
2130         public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER = "comment_new_line_for_parameter"; //$NON-NLS-1$
2131
2132         /**
2133          * A named preference that controls whether an empty line is inserted before
2134          * the Javadoc root tag block.
2135          * <p>
2136          * Value is of type <code>Boolean</code>.
2137          * </p>
2138          * 
2139          * @since 3.0
2140          */
2141         public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS = "comment_separate_root_tags"; //$NON-NLS-1$
2142
2143         /**
2144          * A named preference that controls whether blank lines are cleared during
2145          * formatting
2146          * <p>
2147          * Value is of type <code>Boolean</code>.
2148          * </p>
2149          * 
2150          * @since 3.0
2151          */
2152         public final static String FORMATTER_COMMENT_CLEARBLANKLINES = "comment_clear_blank_lines"; //$NON-NLS-1$
2153
2154         /**
2155          * A named preference that controls the line length of comments.
2156          * <p>
2157          * Value is of type <code>Integer</code>. The value must be at least 4
2158          * for reasonable formatting.
2159          * </p>
2160          * 
2161          * @since 3.0
2162          */
2163         public final static String FORMATTER_COMMENT_LINELENGTH = "comment_line_length"; //$NON-NLS-1$
2164
2165         /**
2166          * A named preference that controls whether html tags are formatted.
2167          * <p>
2168          * Value is of type <code>Boolean</code>.
2169          * </p>
2170          * 
2171          * @since 3.0
2172          */
2173         public final static String FORMATTER_COMMENT_FORMATHTML = "comment_format_html"; //$NON-NLS-1$
2174
2175         /**
2176          * A named preference that controls if the Java code assist gets auto
2177          * activated.
2178          * <p>
2179          * Value is of type <code>Boolean</code>.
2180          * </p>
2181          */
2182         public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
2183
2184         /**
2185          * A name preference that holds the auto activation delay time in milli
2186          * seconds.
2187          * <p>
2188          * Value is of type <code>Int</code>.
2189          * </p>
2190          */
2191         public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
2192
2193         /**
2194          * A named preference that controls if code assist contains only visible
2195          * proposals.
2196          * <p>
2197          * Value is of type <code>Boolean</code>. if
2198          * <code>true<code> code assist only contains visible members. If
2199          * <code>false</code> all members are included.
2200          * </p>
2201          */
2202         public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
2203
2204         /**
2205          * A named preference that controls if the Java code assist inserts a
2206          * proposal automatically if only one proposal is available.
2207          * <p>
2208          * Value is of type <code>Boolean</code>.
2209          * </p>
2210          * 
2211          * @since 2.1
2212          */
2213         public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
2214
2215         /**
2216          * A named preference that controls if the Java code assist adds import
2217          * statements.
2218          * <p>
2219          * Value is of type <code>Boolean</code>.
2220          * </p>
2221          * 
2222          * @since 2.1
2223          */
2224         public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
2225
2226         /**
2227          * A named preference that controls if the Java code assist only inserts
2228          * completions. If set to false the proposals can also _replace_ code.
2229          * <p>
2230          * Value is of type <code>Boolean</code>.
2231          * </p>
2232          * 
2233          * @since 2.1
2234          */
2235         public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$
2236
2237         /**
2238          * A named preference that controls whether code assist proposals filtering
2239          * is case sensitive or not.
2240          * <p>
2241          * Value is of type <code>Boolean</code>.
2242          * </p>
2243          */
2244         public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
2245
2246         /**
2247          * A named preference that defines if code assist proposals are sorted in
2248          * alphabetical order.
2249          * <p>
2250          * Value is of type <code>Boolean</code>. If <code>true</code> that are
2251          * sorted in alphabetical order. If <code>false</code> that are unsorted.
2252          * </p>
2253          */
2254         public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
2255
2256         /**
2257          * A named preference that controls if argument names are filled in when a
2258          * method is selected from as list of code assist proposal.
2259          * <p>
2260          * Value is of type <code>Boolean</code>.
2261          * </p>
2262          */
2263         public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
2264
2265         /**
2266          * A named preference that controls if method arguments are guessed when a
2267          * method is selected from as list of code assist proposal.
2268          * <p>
2269          * Value is of type <code>Boolean</code>.
2270          * </p>
2271          * 
2272          * @since 2.1
2273          */
2274         public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
2275
2276         /**
2277          * A named preference that holds the characters that auto activate code
2278          * assist in PHP code.
2279          * <p>
2280          * Value is of type <code>Sring</code>. All characters that trigger auto
2281          * code assist in PHP code.
2282          * </p>
2283          */
2284         public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
2285
2286         /**
2287          * A named preference that holds the characters that auto activate code
2288          * assist in PHPDoc.
2289          * <p>
2290          * Value is of type <code>Sring</code>. All characters that trigger auto
2291          * code assist in PHPDoc.
2292          * </p>
2293          */
2294         public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
2295
2296         /**
2297          * A named preference that holds the characters that auto activate code
2298          * assist in HTML.
2299          * <p>
2300          * Value is of type <code>Sring</code>. All characters that trigger auto
2301          * code assist in HTML.
2302          * </p>
2303          */
2304         public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
2305
2306         /**
2307          * A named preference that holds the background color used in the code
2308          * assist selection dialog.
2309          * <p>
2310          * Value is of type <code>String</code>. A RGB color value encoded as a
2311          * string using class <code>PreferenceConverter</code>
2312          * </p>
2313          * 
2314          * @see org.eclipse.jface.resource.StringConverter
2315          * @see org.eclipse.jface.preference.PreferenceConverter
2316          */
2317         public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
2318
2319         /**
2320          * A named preference that holds the foreground color used in the code
2321          * assist selection dialog.
2322          * <p>
2323          * Value is of type <code>String</code>. A RGB color value encoded as a
2324          * string using class <code>PreferenceConverter</code>
2325          * </p>
2326          * 
2327          * @see org.eclipse.jface.resource.StringConverter
2328          * @see org.eclipse.jface.preference.PreferenceConverter
2329          */
2330         public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
2331
2332         /**
2333          * A named preference that holds the background color used for parameter
2334          * hints.
2335          * <p>
2336          * Value is of type <code>String</code>. A RGB color value encoded as a
2337          * string using class <code>PreferenceConverter</code>
2338          * </p>
2339          * 
2340          * @see org.eclipse.jface.resource.StringConverter
2341          * @see org.eclipse.jface.preference.PreferenceConverter
2342          */
2343         public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
2344
2345         /**
2346          * A named preference that holds the foreground color used in the code
2347          * assist selection dialog
2348          * <p>
2349          * Value is of type <code>String</code>. A RGB color value encoded as a
2350          * string using class <code>PreferenceConverter</code>
2351          * </p>
2352          * 
2353          * @see org.eclipse.jface.resource.StringConverter
2354          * @see org.eclipse.jface.preference.PreferenceConverter
2355          */
2356         public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
2357
2358         /**
2359          * A named preference that holds the background color used in the code
2360          * assist selection dialog to mark replaced code.
2361          * <p>
2362          * Value is of type <code>String</code>. A RGB color value encoded as a
2363          * string using class <code>PreferenceConverter</code>
2364          * </p>
2365          * 
2366          * @see org.eclipse.jface.resource.StringConverter
2367          * @see org.eclipse.jface.preference.PreferenceConverter
2368          * @since 2.1
2369          */
2370         public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
2371
2372         /**
2373          * A named preference that holds the foreground color used in the code
2374          * assist selection dialog to mark replaced code.
2375          * <p>
2376          * Value is of type <code>String</code>. A RGB color value encoded as a
2377          * string using class <code>PreferenceConverter</code>
2378          * </p>
2379          * 
2380          * @see org.eclipse.jface.resource.StringConverter
2381          * @see org.eclipse.jface.preference.PreferenceConverter
2382          * @since 2.1
2383          */
2384         public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
2385
2386         /**
2387          * A named preference that controls the behaviour of the refactoring wizard
2388          * for showing the error page.
2389          * <p>
2390          * Value is of type <code>String</code>. Valid values are:
2391          * <code>REFACTOR_FATAL_SEVERITY</code>,
2392          * <code>REFACTOR_ERROR_SEVERITY</code>,<code>REFACTOR_WARNING_SEVERITY</code>
2393          * <code>REFACTOR_INFO_SEVERITY</code>,
2394          * <code>REFACTOR_OK_SEVERITY</code>.
2395          * </p>
2396          * 
2397          * @see #REFACTOR_FATAL_SEVERITY
2398          * @see #REFACTOR_ERROR_SEVERITY
2399          * @see #REFACTOR_WARNING_SEVERITY
2400          * @see #REFACTOR_INFO_SEVERITY
2401          * @see #REFACTOR_OK_SEVERITY
2402          */
2403         public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
2404
2405         /**
2406          * A string value used by the named preference
2407          * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2408          * 
2409          * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2410          */
2411         public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
2412
2413         /**
2414          * A string value used by the named preference
2415          * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2416          * 
2417          * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2418          */
2419         public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
2420
2421         /**
2422          * A string value used by the named preference
2423          * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2424          * 
2425          * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2426          */
2427         public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
2428
2429         /**
2430          * A string value used by the named preference
2431          * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2432          * 
2433          * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2434          */
2435         public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
2436
2437         /**
2438          * A string value used by the named preference
2439          * <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
2440          * 
2441          * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
2442          */
2443         public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
2444
2445         /**
2446          * A named preference thet controls whether all dirty editors are
2447          * automatically saved before a refactoring is executed.
2448          * <p>
2449          * Value is of type <code>Boolean</code>.
2450          * </p>
2451          */
2452         public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
2453
2454         /**
2455          * A named preference that controls if the Java Browsing views are linked to
2456          * the active editor.
2457          * <p>
2458          * Value is of type <code>Boolean</code>.
2459          * </p>
2460          * 
2461          * @see #LINK_PACKAGES_TO_EDITOR
2462          */
2463         public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
2464
2465         /**
2466          * A named preference that controls the layout of the Java Browsing views
2467          * vertically. Boolean value.
2468          * <p>
2469          * Value is of type <code>Boolean</code>. If
2470          * <code>true<code> the views are stacked vertical.
2471          * If <code>false</code> they are stacked horizontal.
2472          * </p>
2473          */
2474         public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
2475
2476         /**
2477          * A named preference that controls if templates are formatted when applied.
2478          * <p>
2479          * Value is of type <code>Boolean</code>.
2480          * </p>
2481          * 
2482          * @since 2.1
2483          */
2484         public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
2485
2486         /**
2487          * A named preference that controls whether annotation roll over is used or
2488          * not.
2489          * <p>
2490          * Value is of type <code>Boolean</code>. If
2491          * <code>true<code> the annotation ruler column
2492          * uses a roll over to display multiple annotations
2493          * </p>
2494          *
2495          * @since 3.0
2496          */
2497         public static final String EDITOR_ANNOTATION_ROLL_OVER = "editor_annotation_roll_over"; //$NON-NLS-1$
2498
2499         /**
2500          * A named preference that controls the key modifier mask for browser like
2501          * links. The value is only used if the value of
2502          * <code>EDITOR_BROWSER_LIKE_LINKS</code> cannot be resolved to valid SWT
2503          * modifier bits.
2504          * <p>
2505          * Value is of type <code>String</code>.
2506          * </p>
2507          * 
2508          * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2509          * @since 2.1.1
2510          */
2511         public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2512
2513         /**
2514          * A named preference that defines the key for the hover modifier state
2515          * masks. The value is only used if the value of
2516          * <code>EDITOR_TEXT_HOVER_MODIFIERS</code> cannot be resolved to valid
2517          * SWT modifier bits.
2518          * 
2519          * @see JavaUI
2520          * @see #EDITOR_TEXT_HOVER_MODIFIERS
2521          * @since 2.1.1
2522          */
2523         public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
2524
2525         /**
2526          * A named preference that controls whether folding is enabled in the Java
2527          * editor.
2528          * <p>
2529          * Value is of type <code>Boolean</code>.
2530          * </p>
2531          * 
2532          * @since 3.0
2533          */
2534         public static final String EDITOR_FOLDING_ENABLED = "editor_folding_enabled"; //$NON-NLS-1$
2535
2536         /**
2537          * A named preference that stores the configured folding provider.
2538          * <p>
2539          * Value is of type <code>String</code>.
2540          * </p>
2541          * 
2542          * @since 3.0
2543          */
2544         public static final String EDITOR_FOLDING_PROVIDER = "editor_folding_provider"; //$NON-NLS-1$
2545
2546         /**
2547          * A named preference that stores the value for Javadoc folding for the
2548          * default folding provider.
2549          * <p>
2550          * Value is of type <code>Boolean</code>.
2551          * </p>
2552          * 
2553          * @since 3.0
2554          */
2555         public static final String EDITOR_FOLDING_JAVADOC = "editor_folding_default_javadoc"; //$NON-NLS-1$
2556
2557         /**
2558          * A named preference that stores the value for inner type folding for the
2559          * default folding provider.
2560          * <p>
2561          * Value is of type <code>Boolean</code>.
2562          * </p>
2563          * 
2564          * @since 3.0
2565          */
2566         public static final String EDITOR_FOLDING_INNERTYPES = "editor_folding_default_innertypes"; //$NON-NLS-1$
2567
2568         /**
2569          * A named preference that stores the value for method folding for the
2570          * default folding provider.
2571          * <p>
2572          * Value is of type <code>Boolean</code>.
2573          * </p>
2574          * 
2575          * @since 3.0
2576          */
2577         public static final String EDITOR_FOLDING_METHODS = "editor_folding_default_methods"; //$NON-NLS-1$
2578
2579         /**
2580          * A named preference that stores the value for imports folding for the
2581          * default folding provider.
2582          * <p>
2583          * Value is of type <code>Boolean</code>.
2584          * </p>
2585          * 
2586          * @since 3.0
2587          */
2588         // public static final String EDITOR_FOLDING_IMPORTS =
2589         // "editor_folding_default_imports"; //$NON-NLS-1$
2590         /**
2591          * A named preference that stores the value for header comment folding for
2592          * the default folding provider.
2593          * <p>
2594          * Value is of type <code>Boolean</code>.
2595          * </p>
2596          * 
2597          * @since 3.1
2598          */
2599         public static final String EDITOR_FOLDING_HEADERS = "editor_folding_default_headers"; //$NON-NLS-1$
2600
2601         public static void initializeDefaultValues(IPreferenceStore store) {
2602                 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
2603
2604                 // JavaBasePreferencePage
2605                 store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
2606                 store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR,
2607                                 false);
2608                 store
2609                                 .setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR,
2610                                                 true);
2611                 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY,
2612                                 PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
2613                 store.setDefault(PreferenceConstants.DOUBLE_CLICK,
2614                                 PreferenceConstants.DOUBLE_CLICK_EXPANDS);
2615                 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS,
2616                                 PreferenceConstants.UPDATE_WHILE_EDITING);
2617
2618                 // AppearancePreferencePage
2619                 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES,
2620                                 false);
2621                 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE,
2622                                 false);
2623                 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
2624                 store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR,
2625                                 true);
2626                 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
2627                 store.setDefault(
2628                                 PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW,
2629                                 ""); //$NON-NLS-1$
2630                 store
2631                                 .setDefault(
2632                                                 PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER,
2633                                                 true);
2634
2635                 // ImportOrganizePreferencePage
2636                 // store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER,
2637                 // "php;phpx;org;com"); //$NON-NLS-1$
2638                 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
2639                 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
2640
2641                 // ClasspathVariablesPreferencePage
2642                 // CodeFormatterPreferencePage
2643                 // CompilerPreferencePage
2644                 // no initialization needed
2645
2646                 // RefactoringPreferencePage
2647                 store.setDefault(
2648                                 PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD,
2649                                 PreferenceConstants.REFACTOR_ERROR_SEVERITY);
2650                 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
2651                 store.setDefault("RefactoringUI", "dialog");
2652
2653                 // TemplatePreferencePage
2654                 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
2655
2656                 // CodeGenerationPreferencePage
2657                 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX,
2658                                 false);
2659                 store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX,
2660                                 false);
2661                 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX,
2662                                 "fg, f, _$, _, m_"); //$NON-NLS-1$
2663                 store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
2664
2665                 store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS, false);
2666                 store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true);
2667                 store.setDefault(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$
2668                 store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, true);
2669                 store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS,
2670                                 false);
2671                 store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
2672
2673                 // MembersOrderPreferencePage
2674                 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER,
2675                                 "T,SF,SI,SM,I,F,C,M"); //$NON-NLS-1$
2676                 store.setDefault(PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER,
2677                                 "B,V,R,D"); //$NON-NLS-1$
2678                 store.setDefault(
2679                                 PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER,
2680                                 false);
2681                 // must add here to guarantee that it is the first in the listener list
2682                 store.addPropertyChangeListener(PHPeclipsePlugin.getDefault()
2683                                 .getMemberOrderPreferenceCache());
2684
2685                 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
2686                 PreferenceConverter.setDefault(store,
2687                                 PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, new RGB(
2688                                                 192, 192, 192));
2689
2690                 store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
2691                 PreferenceConverter.setDefault(store,
2692                                 PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225,
2693                                                 235, 224));
2694
2695                 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
2696                 store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
2697                 PreferenceConverter.setDefault(store,
2698                                 PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176,
2699                                                 180, 185));
2700
2701                 PreferenceConverter.setDefault(store,
2702                                 PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176,
2703                                                 180));
2704
2705                 // store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION,
2706                 // true);
2707                 // PreferenceConverter.setDefault(store,
2708                 // PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0,
2709                 // 128));
2710                 // store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER,
2711                 // true);
2712                 //
2713                 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION,
2714                 // true);
2715                 // PreferenceConverter.setDefault(store,
2716                 // PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244,
2717                 // 200, 45));
2718                 // store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER,
2719                 // true);
2720                 //
2721                 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
2722                 // PreferenceConverter.setDefault(store,
2723                 // PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128,
2724                 // 255));
2725                 // store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER,
2726                 // false);
2727                 //
2728                 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION,
2729                 // false);
2730                 // PreferenceConverter.setDefault(store,
2731                 // PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34,
2732                 // 164, 99));
2733                 // store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER,
2734                 // false);
2735                 //
2736                 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION,
2737                 // false);
2738                 // PreferenceConverter.setDefault(store,
2739                 // PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new
2740                 // RGB(192, 192, 192));
2741                 // store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER,
2742                 // false);
2743                 //
2744                 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION,
2745                 // false);
2746                 // PreferenceConverter.setDefault(store,
2747                 // PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0,
2748                 // 0));
2749                 // store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER,
2750                 // false);
2751
2752                 store
2753                                 .setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION,
2754                                                 true);
2755                 store.setDefault(
2756                                 PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true);
2757
2758                 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS,
2759                                 true);
2760
2761                 store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
2762
2763                 store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false);
2764                 PreferenceConverter.setDefault(store,
2765                                 PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0,
2766                                                 0, 0));
2767
2768                 // WorkbenchChainedTextFontFieldEditor.startPropagate(store,
2769                 // JFaceResources.TEXT_FONT);
2770
2771                 PreferenceConverter.setDefault(store,
2772                                 PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0,
2773                                                 200, 100));
2774                 PreferenceConverter.setDefault(store,
2775                                 PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
2776
2777                 store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR,
2778                                 true);
2779
2780                 store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR,
2781                                 true);
2782
2783                 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
2784                 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
2785
2786                 PreferenceConverter.setDefault(store,
2787                                 PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(
2788                                                 63, 127, 95));
2789                 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD,
2790                                 false);
2791
2792                 PreferenceConverter.setDefault(store,
2793                                 PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(
2794                                                 63, 127, 95));
2795                 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD,
2796                                 false);
2797
2798                 PreferenceConverter.setDefault(store,
2799                                 PreferenceConstants.EDITOR_PHP_TAG_COLOR, new RGB(255, 0, 128));
2800                 store.setDefault(PreferenceConstants.EDITOR_PHP_TAG_BOLD, true);
2801
2802                 PreferenceConverter.setDefault(store,
2803                                 PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0,
2804                                                 85));
2805                 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
2806
2807                 PreferenceConverter.setDefault(store,
2808                                 PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127,
2809                                                 127, 159));
2810                 store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD,
2811                                 false);
2812
2813                 PreferenceConverter.setDefault(store,
2814                                 PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127,
2815                                                 159, 191));
2816                 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
2817
2818                 PreferenceConverter.setDefault(store,
2819                                 PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_COLOR, new RGB(
2820                                                 127, 159, 191));
2821                 store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_BOLD,
2822                                 false);
2823
2824                 PreferenceConverter.setDefault(store,
2825                                 PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0,
2826                                                 85));
2827                 store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
2828
2829                 PreferenceConverter.setDefault(store,
2830                                 PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
2831                 store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
2832
2833                 PreferenceConverter.setDefault(store,
2834                                 PreferenceConstants.EDITOR_STRING_COLOR_DQ,
2835                                 PHPColorProvider.STRING_DQ);
2836                 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_DQ, false);
2837
2838                 PreferenceConverter.setDefault(store,
2839                                 PreferenceConstants.EDITOR_STRING_COLOR_SQ,
2840                                 PHPColorProvider.STRING_SQ);
2841                 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD_SQ, true);
2842
2843                 PreferenceConverter
2844                                 .setDefault(store,
2845                                                 PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(
2846                                                                 0, 0, 0));
2847                 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
2848
2849                 PreferenceConverter.setDefault(store,
2850                                 PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127,
2851                                                 159, 191));
2852                 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
2853
2854                 PreferenceConverter.setDefault(store,
2855                                 PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127,
2856                                                 159));
2857                 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
2858
2859                 PreferenceConverter.setDefault(store,
2860                                 PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63,
2861                                                 191));
2862                 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
2863
2864                 PreferenceConverter.setDefault(store,
2865                                 PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63,
2866                                                 95, 191));
2867                 store
2868                                 .setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD,
2869                                                 false);
2870
2871                 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
2872                 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY,
2873                                 500);
2874
2875                 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
2876                 PreferenceConverter.setDefault(store,
2877                                 PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(
2878                                                 254, 241, 233));
2879                 PreferenceConverter.setDefault(store,
2880                                 PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0,
2881                                                 0, 0));
2882                 PreferenceConverter.setDefault(store,
2883                                 PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(
2884                                                 254, 241, 233));
2885                 PreferenceConverter.setDefault(store,
2886                                 PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(
2887                                                 0, 0, 0));
2888                 PreferenceConverter.setDefault(store,
2889                                 PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(
2890                                                 255, 255, 0));
2891                 PreferenceConverter.setDefault(store,
2892                                 PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(
2893                                                 255, 0, 0));
2894                 store.setDefault(
2895                                 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA,
2896                                 "$>"); //$NON-NLS-1$
2897                 store.setDefault(
2898                                 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC,
2899                                 "@"); //$NON-NLS-1$
2900                 store.setDefault(
2901                                 PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML,
2902                                 "<&#"); //$NON-NLS-1$
2903                 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS,
2904                                 true);
2905                 store
2906                                 .setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY,
2907                                                 false);
2908                 store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
2909                 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
2910                 store
2911                                 .setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION,
2912                                                 true);
2913                 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES,
2914                                 false);
2915                 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS,
2916                                 true);
2917                 store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION,
2918                                 false);
2919
2920                 store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
2921                 store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
2922                 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
2923                 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_DQ_PHP, true);
2924                 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_SQ_PHP, true);
2925                 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
2926                 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
2927                 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
2928                 store.setDefault(PreferenceConstants.EDITOR_WRAP_WORDS, false);
2929                 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_DQ, true);
2930                 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_DQ, false);
2931                 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS_SQ, true);
2932                 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS_SQ, false);
2933                 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
2934                 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, false);
2935                 store.setDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE,
2936                                 false);
2937
2938                 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
2939                 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
2940
2941                 // store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER,
2942                 // JavaPlugin.ID_BESTMATCH_HOVER);
2943                 store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER,
2944                                 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2945                 // store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER,
2946                 // JavaPlugin.ID_SOURCE_HOVER);
2947                 store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER,
2948                                 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2949                 store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER,
2950                                 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2951                 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER,
2952                                 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2953                 store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER,
2954                                 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2955                 store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER,
2956                                 PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2957
2958                 int modifier = SWT.CTRL;
2959                 if (Platform.getOS().equals(Platform.OS_MACOSX))
2960                         modifier = SWT.COMMAND;
2961                 String ctrl = Action.findModifierString(modifier);
2962                 store
2963                                 .setDefault(
2964                                                 PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS,
2965                                                 "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$
2966                 store
2967                                 .setDefault(
2968                                                 PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS,
2969                                                 "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + modifier); //$NON-NLS-1$
2970                 store.setDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE,
2971                                 true);
2972
2973                 store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true);
2974                 store.setDefault(
2975                                 PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER,
2976                                 ctrl);
2977                 store
2978                                 .setDefault(
2979                                                 PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK,
2980                                                 modifier);
2981
2982                 // mark occurrences
2983                 store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true);
2984                 store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true);
2985                 // store.setDefault(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES,
2986                 // true);
2987                 // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES,
2988                 // true);
2989                 // store.setDefault(PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES,
2990                 // true);
2991                 // store.setDefault(PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES,
2992                 // true);
2993                 // store.setDefault(PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES,
2994                 // true);
2995                 // store.setDefault(PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES,
2996                 // true);
2997                 // store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS,
2998                 // true);
2999                 // store.setDefault(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, true);
3000
3001                 // spell checking
3002                 store.setDefault(PreferenceConstants.SPELLING_CHECK_SPELLING, false);
3003                 store.setDefault(PreferenceConstants.SPELLING_LOCALE, SpellCheckEngine
3004                                 .getDefaultLocale().toString());
3005                 store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS, true);
3006                 store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED, true);
3007                 store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE, true);
3008                 store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER, true);
3009                 store.setDefault(PreferenceConstants.SPELLING_IGNORE_URLS, true);
3010                 store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$
3011                 store.setDefault(PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20);
3012                 store.setDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST,
3013                                 false);
3014
3015                 // folding
3016                 store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
3017                 store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER,
3018                                 "net.sourceforge.phpdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
3019                 store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, true);
3020                 store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, true);
3021                 store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false);
3022                 // store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, false);
3023                 store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS, true);
3024
3025                 store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE, true);
3026                 store.setDefault(PreferenceConstants.EDITOR_P_RTRIM_ON_SAVE, false);
3027                 // do more complicated stuff
3028                 // NewJavaProjectPreferencePage.initDefaults(store);
3029         }
3030
3031         /**
3032          * Returns the JDT-UI preference store.
3033          * 
3034          * @return the JDT-UI preference store
3035          */
3036         public static IPreferenceStore getPreferenceStore() {
3037                 return PHPeclipsePlugin.getDefault().getPreferenceStore();
3038         }
3039
3040         // /**
3041         // * Encodes a JRE library to be used in the named preference
3042         // <code>NEWPROJECT_JRELIBRARY_LIST</code>.
3043         // *
3044         // * @param description a string value describing the JRE library. The
3045         // description is used
3046         // * to indentify the JDR library in the UI
3047         // * @param entries an array of classpath entries to be encoded
3048         // *
3049         // * @return the encoded string.
3050         // */
3051         // public static String encodeJRELibrary(String description,
3052         // IClasspathEntry[] entries) {
3053         // return NewJavaProjectPreferencePage.encodeJRELibrary(description,
3054         // entries);
3055         // }
3056         //
3057         // /**
3058         // * Decodes an encoded JRE library and returns its description string.
3059         // *
3060         // * @return the description of an encoded JRE library
3061         // *
3062         // * @see #encodeJRELibrary(String, IClasspathEntry[])
3063         // */
3064         // public static String decodeJRELibraryDescription(String encodedLibrary) {
3065         // return
3066         // NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
3067         // }
3068         //
3069         // /**
3070         // * Decodes an encoded JRE library and returns its classpath entries.
3071         // *
3072         // * @return the array of classpath entries of an encoded JRE library.
3073         // *
3074         // * @see #encodeJRELibrary(String, IClasspathEntry[])
3075         // */
3076         // public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String
3077         // encodedLibrary) {
3078         // return
3079         // NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
3080         // }
3081         //
3082         // /**
3083         // * Returns the current configuration for the JRE to be used as default in
3084         // new Java projects.
3085         // * This is a convenience method to access the named preference
3086         // <code>NEWPROJECT_JRELIBRARY_LIST
3087         // * </code> with the index defined by <code>
3088         // NEWPROJECT_JRELIBRARY_INDEX</code>.
3089         // *
3090         // * @return the current default set of classpath entries
3091         // *
3092         // * @see #NEWPROJECT_JRELIBRARY_LIST
3093         // * @see #NEWPROJECT_JRELIBRARY_INDEX
3094         // */
3095         // public static IClasspathEntry[] getDefaultJRELibrary() {
3096         // return NewJavaProjectPreferencePage.getDefaultJRELibrary();
3097         // }
3098 }