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