56c2e4ee130edd95f77bf54937e50e1e0b8073bb
[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.phpeclipse.IPreferenceConstants;
15 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
16
17 import org.eclipse.jface.action.Action;
18 import org.eclipse.jface.preference.IPreferenceStore;
19 import org.eclipse.jface.preference.PreferenceConverter;
20 import org.eclipse.swt.SWT;
21 import org.eclipse.swt.graphics.Color;
22 import org.eclipse.swt.graphics.RGB;
23 import org.eclipse.swt.widgets.Display;
24 import org.eclipse.ui.texteditor.AbstractTextEditor;
25 //
26 //import org.phpeclipse.phpdt.internal.ui.JavaPlugin;
27 //import org.phpeclipse.phpdt.internal.ui.preferences.NewJavaProjectPreferencePage;
28
29 /**
30  * Preference constants used in the JDT-UI preference store. Clients should only read the
31  * JDT-UI preference store using these values. Clients are not allowed to modify the 
32  * preference store programmatically.
33  * 
34  * @since 2.0
35   */
36 public class PreferenceConstants {
37
38   private PreferenceConstants() {
39   }
40
41   /**
42    * A named preference that controls return type rendering of methods in the UI.
43    * <p>
44    * Value is of type <code>Boolean</code>: if <code>true</code> return types
45    * are rendered
46    * </p>
47    */
48   public static final String APPEARANCE_METHOD_RETURNTYPE = "net.sourceforge.phpdt.ui.methodreturntype"; //$NON-NLS-1$
49
50   /**
51    * A named preference that controls if override indicators are rendered in the UI.
52    * <p>
53    * Value is of type <code>Boolean</code>: if <code>true</code> override 
54    * indicators are rendered
55    * </p>
56      */
57   public static final String APPEARANCE_OVERRIDE_INDICATOR = "net.sourceforge.phpdt.ui.overrideindicator"; //$NON-NLS-1$
58
59   /**
60    * A named preference that defines the pattern used for package name compression.
61    * <p>
62    * Value is of type <code>String</code>. For example foe the given package name 'org.eclipse.jdt' pattern
63    * '.' will compress it to '..jdt', '1~' to 'o~.e~.jdt'.
64    * </p>
65    */
66   public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW = "PackagesView.pkgNamePatternForPackagesView"; //$NON-NLS-1$
67
68   /**
69    * A named preference that controls if package name compression is turned on or off.
70    * <p>
71    * Value is of type <code>Boolean</code>.
72    * </p>
73    * 
74    * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
75    */
76   public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES = "net.sourceforge.phpdt.ui.compresspackagenames"; //$NON-NLS-1$
77
78   /**
79    * A named preference that controls if empty inner packages are folded in
80    * the hierarchical mode of the package explorer.
81    * <p>
82    * Value is of type <code>Boolean</code>: if <code>true</code> empty
83    * inner packages are folded.
84    * </p>
85    * @since 2.1
86    */
87   public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER = "net.sourceforge.phpdt.ui.flatPackagesInPackageExplorer"; //$NON-NLS-1$
88
89   /**
90    * A named preference that defines how member elements are ordered by the
91    * Java views using the <code>JavaElementSorter</code>.
92    * <p>
93    * Value is of type <code>String</code>: A comma separated list of the
94    * following entries. Each entry must be in the list, no duplication. List
95    * order defines the sort order.
96    * <ul>
97    * <li><b>T</b>: Types</li>
98    * <li><b>C</b>: Constructors</li>
99    * <li><b>I</b>: Initializers</li>
100    * <li><b>M</b>: Methods</li>
101    * <li><b>F</b>: Fields</li>
102    * <li><b>SI</b>: Static Initializers</li>
103    * <li><b>SM</b>: Static Methods</li>
104    * <li><b>SF</b>: Static Fields</li>
105    * </ul>
106    * </p>
107    * @since 2.1
108    */
109   public static final String APPEARANCE_MEMBER_SORT_ORDER = "outlinesortoption"; //$NON-NLS-1$
110
111   /**
112    * A named preference that controls if prefix removal during setter/getter generation is turned on or off. 
113    * <p>
114    * Value is of type <code>Boolean</code>.
115    * </p>
116    */
117   public static final String CODEGEN_USE_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.enable"; //$NON-NLS-1$
118
119   /**
120    * A named preference that holds a list of prefixes to be removed from a local variable to compute setter 
121    * and gettter names.
122    * <p>
123    * Value is of type <code>String</code>: comma separated list of prefixed
124    * </p>
125    * 
126    * @see #CODEGEN_USE_GETTERSETTER_PREFIX
127    */
128   public static final String CODEGEN_GETTERSETTER_PREFIX = "net.sourceforge.phpdt.ui.gettersetter.prefix.list"; //$NON-NLS-1$
129
130   /**
131    * A named preference that controls if suffix removal during setter/getter generation is turned on or off.
132    * <p>
133    * Value is of type <code>Boolean</code>.
134    * </p>
135    */
136   public static final String CODEGEN_USE_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.enable"; //$NON-NLS-1$
137
138   /**
139    * A named preference that holds a list of suffixes to be removed from a local variable to compute setter 
140    * and getter names.
141    * <p>
142    * Value is of type <code>String</code>: comma separated list of suffixes
143    * </p>
144    * 
145    * @see #CODEGEN_USE_GETTERSETTER_SUFFIX
146    */
147   public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
148
149   /**
150    * A name preference that controls if a JavaDoc stub gets added to newly created types and methods.
151    * <p>
152    * Value is of type <code>Boolean</code>.
153    * </p>
154    */
155   public static final String CODEGEN__JAVADOC_STUBS = "net.sourceforge.phpdt.ui.phpdoc"; //$NON-NLS-1$
156
157   /**
158    * A named preference that controls if a non-phpdoc comment gets added to methods generated via the 
159    * "Override Methods" operation.
160    * <p>
161    * Value is of type <code>Boolean</code>.
162    * </p>
163    */
164   public static final String CODEGEN__NON_JAVADOC_COMMENTS = "net.sourceforge.phpdt.ui.seecomments"; //$NON-NLS-1$
165
166   /**
167    * A named preference that controls if a file comment gets added to newly created files.
168    * <p>
169    * Value is of type <code>Boolean</code>.
170    * </p>
171    */
172   public static final String CODEGEN__FILE_COMMENTS = "net.sourceforge.phpdt.ui.filecomments"; //$NON-NLS-1$
173
174   /**
175    * A named preference that holds a list of comma separated package names. The list specifies the import order used by
176    * the "Organize Imports" opeation.
177    * <p>
178    * Value is of type <code>String</code>: semicolon separated list of package
179    * names
180    * </p>
181    */
182   public static final String ORGIMPORTS_IMPORTORDER = "net.sourceforge.phpdt.ui.importorder"; //$NON-NLS-1$
183
184   /**
185    * A named preference that specifies the number of imports added before a star-import declaration is used.
186    * <p>
187    * Value is of type <code>Int</code>: positive value specifing the number of non star-import is used
188    * </p>
189    */
190   public static final String ORGIMPORTS_ONDEMANDTHRESHOLD = "net.sourceforge.phpdt.ui.ondemandthreshold"; //$NON-NLS-1$
191
192   /**
193    * A named preferences that controls if types that start with a lower case letters get added by the
194    * "Organize Import" operation.
195    * <p>
196    * Value is of type <code>Boolean</code>.
197    * </p>
198    */
199   public static final String ORGIMPORTS_IGNORELOWERCASE = "net.sourceforge.phpdt.ui.ignorelowercasenames"; //$NON-NLS-1$
200
201   /**
202    * A named preference that speficies whether children of a compilation unit are shown in the package explorer.
203    * <p>
204    * Value is of type <code>Boolean</code>.
205    * </p>
206    */
207   public static final String SHOW_CU_CHILDREN = "net.sourceforge.phpdt.ui.packages.cuchildren"; //$NON-NLS-1$
208
209   /**
210    * A named preference that controls whether the package explorer's selection is linked to the active editor.
211    * <p>
212    * Value is of type <code>Boolean</code>.
213    * </p>
214    */
215   public static final String LINK_PACKAGES_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktoeditor"; //$NON-NLS-1$
216
217   /**
218    * A named preference that controls whether the hierarchy view's selection is linked to the active editor.
219    * <p>
220    * Value is of type <code>Boolean</code>.
221    * </p>
222    */
223   public static final String LINK_TYPEHIERARCHY_TO_EDITOR = "net.sourceforge.phpdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
224
225   /**
226    * A named preference that controls whether the browsing view's selection is
227    * linked to the active editor.
228    * <p>
229    * Value is of type <code>Boolean</code>.
230    * </p>
231    * @since 2.1
232    */
233   public static final String LINK_BROWSING_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
234
235   /**
236    * A named preference that controls whether new projects are generated using source and output folder.
237    * <p>
238    * Value is of type <code>Boolean</code>. if <code>true</code> new projects are created with a source and
239    * output folder. If <code>false</code> source and output folder equals to the project.
240    * </p>
241    */
242   public static final String SRCBIN_FOLDERS_IN_NEWPROJ = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
243
244   /**
245    * A named preference that specifies the source folder name used when creating a new Java project. Value is inactive
246    * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
247    * <p>
248    * Value is of type <code>String</code>. 
249    * </p>
250    * 
251    * @see #SRCBIN_FOLDERS_IN_NEWPROJ
252    */
253   public static final String SRCBIN_SRCNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
254
255   /**
256    * A named preference that specifies the output folder name used when creating a new Java project. Value is inactive
257    * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
258    * <p>
259    * Value is of type <code>String</code>. 
260    * </p>
261    * 
262    * @see #SRCBIN_FOLDERS_IN_NEWPROJ
263    */
264   public static final String SRCBIN_BINNAME = "net.sourceforge.phpdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
265
266   /**
267    * A named preference that holds a list of possible JRE libraries used by the New Java Project wizard. An library 
268    * consists of a description and an arbitrary number of <code>IClasspathEntry</code>s, that will represent the 
269    * JRE on the new project's classpath. 
270    * <p>
271    * Value is of type <code>String</code>: a semicolon separated list of encoded JRE libraries. 
272    * <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines the currently used library. Clients
273    * should use the method <code>encodeJRELibrary</code> to encode a JRE library into a string
274    * and the methods <code>decodeJRELibraryDescription(String)</code> and <code>
275    * decodeJRELibraryClasspathEntries(String)</code> to decode the description and the array
276    * of classpath entries from an encoded string.
277    * </p>
278    * 
279    * @see #NEWPROJECT_JRELIBRARY_INDEX
280    * @see #encodeJRELibrary(String, IClasspathEntry[])
281    * @see #decodeJRELibraryDescription(String)
282    * @see #decodeJRELibraryClasspathEntries(String)
283    */
284   public static final String NEWPROJECT_JRELIBRARY_LIST = "net.sourceforge.phpdt.ui.wizards.jre.list"; //$NON-NLS-1$
285
286   /**
287    * A named preferences that specifies the current active JRE library.
288    * <p>
289    * Value is of type <code>Int</code>: an index into the list of possible JRE libraries.
290    * </p>
291    * 
292    * @see #NEWPROJECT_JRELIBRARY_LIST
293    */
294   public static final String NEWPROJECT_JRELIBRARY_INDEX = "net.sourceforge.phpdt.ui.wizards.jre.index"; //$NON-NLS-1$
295
296   /**
297    * A named preference that controls if a new type hierarchy gets opened in a 
298    * new type hierarchy perspective or inside the type hierarchy view part.
299    * <p>
300    * Value is of type <code>String</code>: possible values are <code>
301    * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code> or <code>
302    * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
303    * </p>
304    * 
305    * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
306    * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
307    */
308   public static final String OPEN_TYPE_HIERARCHY = "net.sourceforge.phpdt.ui.openTypeHierarchy"; //$NON-NLS-1$
309
310   /**
311    * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
312    * 
313    * @see #OPEN_TYPE_HIERARCHY
314    */
315   public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE = "perspective"; //$NON-NLS-1$
316
317   /**
318    * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
319    * 
320    * @see #OPEN_TYPE_HIERARCHY
321    */
322   public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART = "viewPart"; //$NON-NLS-1$
323
324   /**
325    * A named preference that controls the behaviour when double clicking on a container in the packages view. 
326    * <p>
327    * Value is of type <code>String</code>: possible values are <code>
328    * DOUBLE_CLICK_GOES_INTO</code> or <code>
329    * DOUBLE_CLICK_EXPANDS</code>.
330    * </p>
331    * 
332    * @see #DOUBLE_CLICK_EXPANDS
333    * @see #DOUBLE_CLICK_GOES_INTO
334    */
335   public static final String DOUBLE_CLICK = "packageview.doubleclick"; //$NON-NLS-1$
336
337   /**
338    * A string value used by the named preference <code>DOUBLE_CLICK</code>.
339    * 
340    * @see #DOUBLE_CLICK
341    */
342   public static final String DOUBLE_CLICK_GOES_INTO = "packageview.gointo"; //$NON-NLS-1$
343
344   /**
345    * A string value used by the named preference <code>DOUBLE_CLICK</code>.
346    * 
347    * @see #DOUBLE_CLICK
348    */
349   public static final String DOUBLE_CLICK_EXPANDS = "packageview.doubleclick.expands"; //$NON-NLS-1$
350
351   /**
352    * A named preference that controls whether Java views update their presentation while editing or when saving the
353    * content of an editor. 
354    * <p>
355    * Value is of type <code>String</code>: possible values are <code>
356    * UPDATE_ON_SAVE</code> or <code>
357    * UPDATE_WHILE_EDITING</code>.
358    * </p>
359    * 
360    * @see #UPDATE_ON_SAVE
361    * @see #UPDATE_WHILE_EDITING
362    */
363   public static final String UPDATE_JAVA_VIEWS = "JavaUI.update"; //$NON-NLS-1$
364
365   /**
366    * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
367    * 
368    * @see #UPDATE_JAVA_VIEWS
369    */
370   public static final String UPDATE_ON_SAVE = "JavaUI.update.onSave"; //$NON-NLS-1$
371
372   /**
373    * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
374    * 
375    * @see #UPDATE_JAVA_VIEWS
376    */
377   public static final String UPDATE_WHILE_EDITING = "JavaUI.update.whileEditing"; //$NON-NLS-1$
378
379   /**
380    * A named preference that holds the path of the Javadoc command used by the Javadoc creation wizard.
381    * <p>
382    * Value is of type <code>String</code>.
383    * </p>
384    */
385   public static final String JAVADOC_COMMAND = "command"; //$NON-NLS-1$
386   /**
387          * A named preference that defines the key for the hover modifiers.
388          *
389          * @see JavaUI
390          * @since 2.1
391          */
392   public static final String EDITOR_TEXT_HOVER_MODIFIERS = "hoverModifiers"; //$NON-NLS-1$
393         /**
394          * The id of the best match hover contributed for extension point
395          * <code>javaEditorTextHovers</code>.
396          *
397          * @since 2.1
398          */
399         public static String ID_BESTMATCH_HOVER= "net.sourceforge.phpdt.ui.BestMatchHover"; //$NON-NLS-1$
400
401         /**
402          * The id of the source code hover contributed for extension point
403          * <code>javaEditorTextHovers</code>.
404          *
405          * @since 2.1
406          */
407         public static String ID_SOURCE_HOVER= "net.sourceforge.phpdt.ui.JavaSourceHover"; //$NON-NLS-1$
408
409   /**
410          * The id of the problem hover contributed for extension point
411          * <code>javaEditorTextHovers</code>.
412          *
413          * @since 2.1
414          */
415   public static String ID_PROBLEM_HOVER = "net.sourceforge.phpdt.ui.ProblemHover"; //$NON-NLS-1$
416
417   /**
418    * A named preference that controls whether bracket matching highlighting is turned on or off.
419    * <p>
420    * Value is of type <code>Boolean</code>.
421    * </p>
422    */
423   public final static String EDITOR_MATCHING_BRACKETS = "matchingBrackets"; //$NON-NLS-1$
424
425   /**
426    * A named preference that holds the color used to highlight matching brackets.
427    * <p>
428    * Value is of type <code>String</code>. A RGB color value encoded as a string 
429    * using class <code>PreferenceConverter</code>
430    * </p>
431    * 
432    * @see org.eclipse.jface.resource.StringConverter
433    * @see org.eclipse.jface.preference.PreferenceConverter
434    */
435   public final static String EDITOR_MATCHING_BRACKETS_COLOR = "matchingBracketsColor"; //$NON-NLS-1$
436
437   /**
438    * A named preference that controls whether the current line highlighting is turned on or off.
439    * <p>
440    * Value is of type <code>Boolean</code>.
441    * </p>
442    */
443   public final static String EDITOR_CURRENT_LINE = "currentLine"; //$NON-NLS-1$
444
445   /**
446    * A named preference that holds the color used to highlight the current line.
447    * <p>
448    * Value is of type <code>String</code>. A RGB color value encoded as a string
449    * using class <code>PreferenceConverter</code>
450    * </p>
451    * 
452    * @see org.eclipse.jface.resource.StringConverter
453    * @see org.eclipse.jface.preference.PreferenceConverter
454    */
455   public final static String EDITOR_CURRENT_LINE_COLOR = "currentLineColor"; //$NON-NLS-1$
456
457   /**
458    * A named preference that controls whether the print margin is turned on or off.
459    * <p>
460    * Value is of type <code>Boolean</code>.
461    * </p>
462    */
463   public final static String EDITOR_PRINT_MARGIN = "printMargin"; //$NON-NLS-1$
464
465   /**
466    * A named preference that holds the color used to render the print margin.
467    * <p>
468    * Value is of type <code>String</code>. A RGB color value encoded as a string
469    * using class <code>PreferenceConverter</code>
470    * </p>
471    * 
472    * @see org.eclipse.jface.resource.StringConverter
473    * @see org.eclipse.jface.preference.PreferenceConverter
474    */
475   public final static String EDITOR_PRINT_MARGIN_COLOR = "printMarginColor"; //$NON-NLS-1$
476
477   /**
478    * Print margin column. Int value.
479    */
480   public final static String EDITOR_PRINT_MARGIN_COLUMN = "printMarginColumn"; //$NON-NLS-1$
481
482   /**
483    * A named preference that holds the color used for the find/replace scope.
484    * <p>
485    * Value is of type <code>String</code>. A RGB color value encoded as a string
486    * using class <code>PreferenceConverter</code>
487    * </p>
488    * 
489    * @see org.eclipse.jface.resource.StringConverter
490    * @see org.eclipse.jface.preference.PreferenceConverter
491    */
492   public final static String EDITOR_FIND_SCOPE_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
493
494   /**
495    * A named preference that specifies if the editor uses spaces for tabs.
496    * <p>
497    * Value is of type <code>Boolean</code>. If <code>true</code>spaces instead of tabs are used
498    * in the editor. If <code>false</code> the editor inserts a tab character when pressing the tab
499    * key.
500    * </p>
501    */
502   public final static String EDITOR_SPACES_FOR_TABS = "spacesForTabs"; //$NON-NLS-1$
503
504   /**
505    * A named preference that holds the number of spaces used per tab in the editor.
506    * <p>
507    * Value is of type <code>Int</code>: positive int value specifying the number of
508    * spaces per tab.
509    * </p>
510    */
511   public final static String EDITOR_TAB_WIDTH = "net.sourceforge.phpdt.ui.editor.tab.width"; //$NON-NLS-1$
512
513   /**
514    * A named preference that controls whether the outline view selection
515    * should stay in sync with with the element at the current cursor position.
516    * <p>
517    * Value is of type <code>Boolean</code>.
518    * </p>
519    * @since 2.1
520    */
521   public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE = "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
522
523   /**
524    * A named preference that controls if correction indicators are shown in the UI.
525    * <p>
526    * Value is of type <code>Boolean</code>.
527    * </p>
528    */
529   public final static String EDITOR_CORRECTION_INDICATION = "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
530
531   /**
532    * A named preference that controls whether the editor shows problem indicators in text (squiggly lines). 
533    * <p>
534    * Value is of type <code>Boolean</code>.
535    * </p>
536    */
537 //  public final static String EDITOR_PROBLEM_INDICATION = "problemIndication"; //$NON-NLS-1$
538
539   /**
540    * A named preference that holds the color used to render problem indicators.
541    * <p>
542    * Value is of type <code>String</code>. A RGB color value encoded as a string
543    * using class <code>PreferenceConverter</code>
544    * </p>
545    * 
546    * @see #EDITOR_PROBLEM_INDICATION
547    * @see org.eclipse.jface.resource.StringConverter
548    * @see org.eclipse.jface.preference.PreferenceConverter
549    */
550 //  public final static String EDITOR_PROBLEM_INDICATION_COLOR = "problemIndicationColor"; //$NON-NLS-1$
551
552   /**PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR;
553    * A named preference that controls whether the editor shows warning indicators in text (squiggly lines). 
554    * <p>
555    * Value is of type <code>Boolean</code>.
556    * </p>
557    */
558 //  public final static String EDITOR_WARNING_INDICATION = "warningIndication"; //$NON-NLS-1$
559
560   /**
561    * A named preference that holds the color used to render warning indicators.
562    * <p>
563    * Value is of type <code>String</code>. A RGB color value encoded as a string
564    * using class <code>PreferenceConverter</code>
565    * </p>
566    * 
567    * @see #EDITOR_WARNING_INDICATION
568    * @see org.eclipse.jface.resource.StringConverter
569    * @see org.eclipse.jface.preference.PreferenceConverter
570    */
571 //  public final static String EDITOR_WARNING_INDICATION_COLOR = "warningIndicationColor"; //$NON-NLS-1$
572
573   /**
574    * A named preference that controls whether the editor shows task indicators in text (squiggly lines). 
575    * <p>
576    * Value is of type <code>Boolean</code>.
577    * </p>
578    */
579   public final static String EDITOR_TASK_INDICATION = "taskIndication"; //$NON-NLS-1$
580
581   /**
582    * A named preference that holds the color used to render task indicators.
583    * <p>
584    * Value is of type <code>String</code>. A RGB color value encoded as a string
585    * using class <code>PreferenceConverter</code>
586    * </p>
587    * 
588    * @see #EDITOR_TASK_INDICATION
589    * @see org.eclipse.jface.resource.StringConverter
590    * @see org.eclipse.jface.preference.PreferenceConverter
591    */
592   public final static String EDITOR_TASK_INDICATION_COLOR = "taskIndicationColor"; //$NON-NLS-1$
593
594   /**
595    * A named preference that controls whether the editor shows bookmark
596    * indicators in text (squiggly lines).
597    * <p>
598    * Value is of type <code>Boolean</code>.
599    * </p>
600    * @since 2.1
601    */
602   public final static String EDITOR_BOOKMARK_INDICATION = "bookmarkIndication"; //$NON-NLS-1$
603
604   /**
605    * A named preference that holds the color used to render bookmark indicators.
606    * <p>
607    * Value is of type <code>String</code>. A RGB color value encoded as a string
608    * using class <code>PreferenceConverter</code>
609    * </p>
610    *
611    * @see #EDITOR_BOOKMARK_INDICATION
612    * @see org.eclipse.jface.resource.StringConverter
613    * @see org.eclipse.jface.preference.PreferenceConverter
614    * @since 2.1
615    */
616   public final static String EDITOR_BOOKMARK_INDICATION_COLOR = "bookmarkIndicationColor"; //$NON-NLS-1$
617
618   /**
619    * A named preference that controls whether the editor shows search
620    * indicators in text (squiggly lines).
621    * <p>
622    * Value is of type <code>Boolean</code>.
623    * </p>
624    * @since 2.1
625    */
626   public final static String EDITOR_SEARCH_RESULT_INDICATION = "searchResultIndication"; //$NON-NLS-1$
627
628   /**
629    * A named preference that holds the color used to render search indicators.
630    * <p>
631    * Value is of type <code>String</code>. A RGB color value encoded as a string
632    * using class <code>PreferenceConverter</code>
633    * </p>
634    *
635    * @see #EDITOR_SEARCH_RESULT_INDICATION
636    * @see org.eclipse.jface.resource.StringConverter
637    * @see org.eclipse.jface.preference.PreferenceConverter
638    * @since 2.1
639    */
640   public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR = "searchResultIndicationColor"; //$NON-NLS-1$
641
642   /**
643    * A named preference that controls whether the editor shows unknown
644    * indicators in text (squiggly lines).
645    * <p>
646    * Value is of type <code>Boolean</code>.
647    * </p>
648    * @since 2.1
649    */
650   public final static String EDITOR_UNKNOWN_INDICATION = "othersIndication"; //$NON-NLS-1$
651
652   /**
653    * A named preference that holds the color used to render unknown
654    * indicators.
655    * <p>
656    * Value is of type <code>String</code>. A RGB color value encoded as a string
657    * using class <code>PreferenceConverter</code>
658    * </p>
659    *
660    * @see #EDITOR_UNKNOWN_INDICATION
661    * @see org.eclipse.jface.resource.StringConverter
662    * @see org.eclipse.jface.preference.PreferenceConverter
663    * @since 2.1
664    */
665   public final static String EDITOR_UNKNOWN_INDICATION_COLOR = "othersIndicationColor"; //$NON-NLS-1$
666
667   /**
668    * A named preference that controls whether the overview ruler shows error
669    * indicators.
670    * <p>
671    * Value is of type <code>Boolean</code>.
672    * </p>
673    * @since 2.1
674    */
675   public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER = "errorIndicationInOverviewRuler"; //$NON-NLS-1$
676
677   /**
678    * A named preference that controls whether the overview ruler shows warning
679    * indicators.
680    * <p>
681    * Value is of type <code>Boolean</code>.
682    * </p>
683    * @since 2.1
684    */
685   public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER = "warningIndicationInOverviewRuler"; //$NON-NLS-1$
686
687   /**
688    * A named preference that controls whether the overview ruler shows task
689    * indicators.
690    * <p>
691    * Value is of type <code>Boolean</code>.
692    * </p>
693    * @since 2.1
694    */
695   public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER = "taskIndicationInOverviewRuler"; //$NON-NLS-1$
696
697   /**
698    * A named preference that controls whether the overview ruler shows
699    * bookmark indicators.
700    * <p>
701    * Value is of type <code>Boolean</code>.
702    * </p>
703    * @since 2.1
704    */
705   public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER = "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
706
707   /**
708    * A named preference that controls whether the overview ruler shows
709    * search result indicators.
710    * <p>
711    * Value is of type <code>Boolean</code>.
712    * </p>
713    * @since 2.1
714    */
715   public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER = "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
716
717   /**
718    * A named preference that controls whether the overview ruler shows
719    * unknown indicators.
720    * <p>
721    * Value is of type <code>Boolean</code>.
722    * </p>
723    * @since 2.1
724    */
725   public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER = "othersIndicationInOverviewRuler"; //$NON-NLS-1$
726
727   /**
728    * A named preference that controls whether the 'close strings' feature
729    *  is   enabled in PHP mode
730    * <p>
731    * Value is of type <code>Boolean</code>.
732    * </p>
733    * @since 2.1
734    */
735   public final static String EDITOR_CLOSE_STRINGS_PHP = "closeStringsPHP"; //$NON-NLS-1$
736
737   /**
738    * A named preference that controls whether the 'close brackets' feature is
739    * enabled in PHP mode
740    * <p>
741    * Value is of type <code>Boolean</code>.
742    * </p>
743    * @since 2.1
744    */
745   public final static String EDITOR_CLOSE_BRACKETS_PHP = "closeBracketsPHP"; //$NON-NLS-1$
746
747         /**
748          * A named preference that controls whether the 'wrap strings' feature is
749          * enabled.
750          * <p>
751          * Value is of type <code>Boolean</code>.
752          * </p>
753          * @since 2.1
754          */
755         public final static String EDITOR_WRAP_STRINGS= "wrapStrings"; //$NON-NLS-1$
756
757         /**
758          * A named preference that controls whether the 'escape strings' feature is
759          * enabled.
760          * <p>
761          * Value is of type <code>Boolean</code>.
762          * </p>
763          * @since 3.0
764          */
765         public final static String EDITOR_ESCAPE_STRINGS= "escapeStrings"; //$NON-NLS-1$
766         
767   /**
768    * A named preference that controls whether the 'close braces' feature is
769    * enabled.
770    * <p>
771    * Value is of type <code>Boolean</code>.
772    * </p>
773    * @since 2.1
774    */
775   public final static String EDITOR_CLOSE_BRACES = "closeBraces"; //$NON-NLS-1$
776
777   /**
778    * A named preference that controls whether the 'close php docs' feature is
779    * enabled.
780    * <p>
781    * Value is of type <code>Boolean</code>.
782    * </p>
783    * @since 2.1
784    */
785   public final static String EDITOR_CLOSE_JAVADOCS = "closeJavaDocs"; //$NON-NLS-1$
786
787   /**
788    * A named preference that controls whether the 'add JavaDoc tags' feature
789    * is enabled.
790    * <p>
791    * Value is of type <code>Boolean</code>.
792    * </p>
793    * @since 2.1
794    */
795   public final static String EDITOR_ADD_JAVADOC_TAGS = "addJavaDocTags"; //$NON-NLS-1$
796
797   /**
798    * A named preference that controls whether the 'format Javadoc tags'
799    * feature is enabled.
800    * <p>
801    * Value is of type <code>Boolean</code>.
802    * </p>
803    * @since 2.1
804    */
805   public final static String EDITOR_FORMAT_JAVADOCS = "formatJavaDocs"; //$NON-NLS-1$
806
807   /**
808    * A named preference that controls whether the 'smart paste' feature is
809    * enabled.
810    * <p>
811    * Value is of type <code>Boolean</code>.
812    * </p>
813    * @since 2.1
814    */
815   public final static String EDITOR_SMART_PASTE = "smartPaste"; //$NON-NLS-1$
816
817   /**
818    * A named preference that controls whether the 'close strings' feature
819    *  is   enabled in HTML mode
820    * <p>
821    * Value is of type <code>Boolean</code>.
822    * </p>
823    * @since 2.1
824    */
825   public final static String EDITOR_CLOSE_STRINGS_HTML = "closeStringsHTML"; //$NON-NLS-1$
826
827   /**
828    * A named preference that controls whether the 'close brackets' feature is
829    * enabled in HTML mode
830    * <p>
831    * Value is of type <code>Boolean</code>.
832    * </p>
833    * @since 2.1
834    */
835   public final static String EDITOR_CLOSE_BRACKETS_HTML = "closeBracketsHTML"; //$NON-NLS-1$
836
837   /**
838    * A named preference that controls whether the 'smart home-end' feature is
839    * enabled.
840    * <p>
841    * Value is of type <code>Boolean</code>.
842    * </p>
843    * @since 2.1
844    */
845   public final static String EDITOR_SMART_HOME_END = AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
846   
847   /**
848          * A named preference that controls whether the 'sub-word navigation' feature is
849          * enabled.
850          * <p>
851          * Value is of type <code>Boolean</code>.
852          * </p>
853          * @since 2.1
854          */
855         public final static String EDITOR_SUB_WORD_NAVIGATION= "subWordNavigation"; //$NON-NLS-1$
856   /**
857    * A named preference that controls if temporary problems are evaluated and shown in the UI.
858    * <p>
859    * Value is of type <code>Boolean</code>.
860    * </p>
861    */
862   public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS = "handleTemporaryProblems"; //$NON-NLS-1$
863
864   /**
865    * A named preference that controls if the overview ruler is shown in the UI.
866    * <p>
867    * Value is of type <code>Boolean</code>.
868    * </p>
869    */
870   public final static String EDITOR_OVERVIEW_RULER = "overviewRuler"; //$NON-NLS-1$
871
872   /**
873    * A named preference that controls if the line number ruler is shown in the UI.
874    * <p>
875    * Value is of type <code>Boolean</code>.
876    * </p>
877    */
878   public final static String EDITOR_LINE_NUMBER_RULER = "lineNumberRuler"; //$NON-NLS-1$
879
880   /**
881    * A named preference that holds the color used to render line numbers inside the line number ruler.
882    * <p>
883    * Value is of type <code>String</code>. A RGB color value encoded as a string
884    * using class <code>PreferenceConverter</code>
885    * </p>
886    * 
887    * @see org.eclipse.jface.resource.StringConverter
888    * @see org.eclipse.jface.preference.PreferenceConverter
889    * @see #EDITOR_LINE_NUMBER_RULER
890    */
891   public final static String EDITOR_LINE_NUMBER_RULER_COLOR = "lineNumberColor"; //$NON-NLS-1$
892
893   /**
894    * A named preference that holds the color used to render linked positions inside code templates.
895    * <p>
896    * Value is of type <code>String</code>. A RGB color value encoded as a string
897    * using class <code>PreferenceConverter</code>
898    * </p>
899    * 
900    * @see org.eclipse.jface.resource.StringConverter
901    * @see org.eclipse.jface.preference.PreferenceConverter
902    */
903   public final static String EDITOR_LINKED_POSITION_COLOR = "linkedPositionColor"; //$NON-NLS-1$
904
905   /**
906    * A named preference that holds the color used as the text foreground.
907    * <p>
908    * Value is of type <code>String</code>. A RGB color value encoded as a string
909    * using class <code>PreferenceConverter</code>
910    * </p>
911    * 
912    * @see org.eclipse.jface.resource.StringConverter
913    * @see org.eclipse.jface.preference.PreferenceConverter
914    */
915   public final static String EDITOR_FOREGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
916
917   /**
918    * A named preference that describes if the system default foreground color
919    * is used as the text foreground.
920    * <p>
921    * Value is of type <code>Boolean</code>.
922    * </p>
923    */
924   public final static String EDITOR_FOREGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
925
926   /**
927    * A named preference that holds the color used as the text background.
928    * <p>
929    * Value is of type <code>String</code>. A RGB color value encoded as a string
930    * using class <code>PreferenceConverter</code>
931    * </p>
932    * 
933    * @see org.eclipse.jface.resource.StringConverter
934    * @see org.eclipse.jface.preference.PreferenceConverter
935    */
936   public final static String EDITOR_BACKGROUND_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
937
938   /**
939    * A named preference that describes if the system default background color
940    * is used as the text foreground.
941    * <p>
942    * Value is of type <code>Boolean</code>. 
943    * </p>
944    */
945   public final static String EDITOR_BACKGROUND_DEFAULT_COLOR = AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
946
947   /**
948    * Preference key suffix for bold text style preference keys.
949    */
950   public static final String EDITOR_BOLD_SUFFIX = "_bold"; //$NON-NLS-1$
951
952   /**
953    * A named preference that holds the color used to render multi line comments.
954    * <p>
955    * Value is of type <code>String</code>. A RGB color value encoded as a string
956    * using class <code>PreferenceConverter</code>
957    * </p>
958    * 
959    * @see org.eclipse.jface.resource.StringConverter
960    * @see org.eclipse.jface.preference.PreferenceConverter
961    */
962   public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT;
963
964   /**
965          * The symbolic font name for the Java editor text font 
966          * (value <code>"org.eclipse.jdt.ui.editors.textfont"</code>).
967          * 
968          * @since 2.1
969          */
970 public final static String EDITOR_TEXT_FONT= "net.sourceforge.phpdt.ui.editors.textfont"; //$NON-NLS-1$
971
972   /**
973    * A named preference that controls whether multi line comments are rendered in bold.
974    * <p>
975    * Value is of type <code>Boolean</code>. If <code>true</code> multi line comments are rendered
976    * in bold. If <code>false</code> the are rendered using no font style attribute.
977    * </p>
978    */
979   public final static String EDITOR_MULTI_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_MULTILINE_COMMENT + EDITOR_BOLD_SUFFIX;
980
981   /**
982    * A named preference that holds the color used to render single line comments.
983    * <p>
984    * Value is of type <code>String</code>. A RGB color value encoded as a string
985    * using class <code>PreferenceConverter</code>
986    * </p>
987    * 
988    * @see org.eclipse.jface.resource.StringConverter
989    * @see org.eclipse.jface.preference.PreferenceConverter
990    */
991   public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_SINGLELINE_COMMENT;
992
993   /**
994    * A named preference that controls whether sinle line comments are rendered in bold.
995    * <p>
996    * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
997    * in bold. If <code>false</code> the are rendered using no font style attribute.
998    * </p>
999    */
1000   public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = IPreferenceConstants.PHP_SINGLELINE_COMMENT + EDITOR_BOLD_SUFFIX;
1001
1002   /**
1003          * A named preference that holds the color used to render php start and stop tags.
1004          * <p>
1005          * Value is of type <code>String</code>. A RGB color value encoded as a string
1006          * using class <code>PreferenceConverter</code>
1007          * </p>
1008          * 
1009          * @see org.eclipse.jface.resource.StringConverter
1010          * @see org.eclipse.jface.preference.PreferenceConverter
1011          */
1012   public final static String EDITOR_JAVA_TAG_COLOR = IPreferenceConstants.PHP_TAG;
1013
1014   /**
1015    * A named preference that controls whether php start and stop tags are rendered in bold.
1016    * <p>
1017    * Value is of type <code>Boolean</code>.
1018    * </p>
1019    */
1020   public final static String EDITOR_JAVA_TAG_BOLD = IPreferenceConstants.PHP_TAG + EDITOR_BOLD_SUFFIX;
1021
1022   /**
1023    * A named preference that holds the color used to render php keywords.
1024    * <p>
1025    * Value is of type <code>String</code>. A RGB color value encoded as a string
1026    * using class <code>PreferenceConverter</code>
1027    * </p>
1028    * 
1029    * @see org.eclipse.jface.resource.StringConverter
1030    * @see org.eclipse.jface.preference.PreferenceConverter
1031    */
1032   public final static String EDITOR_JAVA_KEYWORD_COLOR = IPreferenceConstants.PHP_KEYWORD;
1033
1034   /**
1035    * A named preference that controls whether keywords are rendered in bold.
1036    * <p>
1037    * Value is of type <code>Boolean</code>.
1038    * </p>
1039    */
1040   public final static String EDITOR_JAVA_KEYWORD_BOLD = IPreferenceConstants.PHP_KEYWORD + EDITOR_BOLD_SUFFIX;
1041
1042   /**
1043    * A named preference that holds the color used to render predefined php
1044    * function names.
1045    * <p>
1046    * Value is of type <code>String</code>. A RGB color value encoded as a string
1047    * using class <code>PreferenceConverter</code>
1048    * </p>
1049    * 
1050    * @see org.eclipse.jface.resource.StringConverter
1051    * @see org.eclipse.jface.preference.PreferenceConverter
1052    */
1053   public final static String EDITOR_PHP_FUNCTIONNAME_COLOR = IPreferenceConstants.PHP_FUNCTIONNAME;
1054
1055   /**
1056    * A named preference that controls whether function names are rendered in
1057    * bold.
1058    * <p>
1059    * Value is of type <code>Boolean</code>.
1060    * </p>
1061    */
1062   public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_BOLD_SUFFIX;
1063
1064   /**
1065    * A named preference that holds the color used to render php
1066    * variables.
1067    * <p>
1068    * Value is of type <code>String</code>. A RGB color value encoded as a string
1069    * using class <code>PreferenceConverter</code>
1070    * </p>
1071    * 
1072    * @see org.eclipse.jface.resource.StringConverter
1073    * @see org.eclipse.jface.preference.PreferenceConverter
1074    */
1075   public final static String EDITOR_PHP_VARIABLE_COLOR = IPreferenceConstants.PHP_VARIABLE;
1076
1077   /**
1078    * A named preference that controls whether variables are rendered in bold.
1079    * <p>
1080    * Value is of type <code>Boolean</code>.
1081    * </p>
1082    */
1083   public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE + EDITOR_BOLD_SUFFIX;
1084
1085   /**
1086    * A named preference that holds the color used to render php constants.
1087    * <p>
1088    * Value is of type <code>String</code>. A RGB color value encoded as a string
1089    * using class <code>PreferenceConverter</code>
1090    * </p>
1091    * 
1092    * @see org.eclipse.jface.resource.StringConverter
1093    * @see org.eclipse.jface.preference.PreferenceConverter
1094    */
1095   public final static String EDITOR_PHP_CONSTANT_COLOR = IPreferenceConstants.PHP_CONSTANT;
1096
1097   /**
1098    * A named preference that controls whether constants are rendered in bold.
1099    * <p>
1100    * Value is of type <code>Boolean</code>.
1101    * </p>
1102    */
1103   public final static String EDITOR_PHP_CONSTANT_BOLD = IPreferenceConstants.PHP_CONSTANT + EDITOR_BOLD_SUFFIX;
1104
1105   /**
1106    * A named preference that holds the color used to render php types.
1107    * <p>
1108    * Value is of type <code>String</code>. A RGB color value encoded as a string
1109    * using class <code>PreferenceConverter</code>
1110    * </p>
1111    * 
1112    * @see org.eclipse.jface.resource.StringConverter
1113    * @see org.eclipse.jface.preference.PreferenceConverter
1114    */
1115   public final static String EDITOR_PHP_TYPE_COLOR = IPreferenceConstants.PHP_TYPE;
1116
1117   /**
1118    * A named preference that controls whether types are rendered in bold.
1119    * <p>
1120    * Value is of type <code>Boolean</code>.
1121    * </p>
1122    */
1123   public final static String EDITOR_PHP_TYPE_BOLD = IPreferenceConstants.PHP_TYPE + EDITOR_BOLD_SUFFIX;
1124
1125   /**
1126    * A named preference that holds the color used to render string constants.
1127    * <p>
1128    * Value is of type <code>String</code>. A RGB color value encoded as a string
1129    * using class <code>PreferenceConverter</code>
1130    * </p>
1131    * 
1132    * @see org.eclipse.jface.resource.StringConverter
1133    * @see org.eclipse.jface.preference.PreferenceConverter
1134    */
1135   public final static String EDITOR_STRING_COLOR = IPreferenceConstants.PHP_STRING;
1136
1137   /**
1138    * A named preference that controls whether string constants are rendered in bold.
1139    * <p>
1140    * Value is of type <code>Boolean</code>.
1141    * </p>
1142    */
1143   public final static String EDITOR_STRING_BOLD = IPreferenceConstants.PHP_STRING + EDITOR_BOLD_SUFFIX;
1144
1145   /**
1146    * A named preference that holds the color used to render php default text.
1147    * <p>
1148    * Value is of type <code>String</code>. A RGB color value encoded as a string
1149    * using class <code>PreferenceConverter</code>
1150    * </p>
1151    * 
1152    * @see org.eclipse.jface.resource.StringConverter
1153    * @see org.eclipse.jface.preference.PreferenceConverter
1154    */
1155   public final static String EDITOR_JAVA_DEFAULT_COLOR = IPreferenceConstants.PHP_DEFAULT;
1156
1157   /**
1158    * A named preference that controls whether Java default text is rendered in bold.
1159    * <p>
1160    * Value is of type <code>Boolean</code>.
1161    * </p>
1162    */
1163   public final static String EDITOR_JAVA_DEFAULT_BOLD = IPreferenceConstants.PHP_DEFAULT + EDITOR_BOLD_SUFFIX;
1164
1165   /**
1166          * A named preference that holds the color used to render task tags.
1167          * <p>
1168          * Value is of type <code>String</code>. A RGB color value encoded as a string
1169          * using class <code>PreferenceConverter</code>
1170          * </p>
1171          * 
1172          * @see org.eclipse.jface.resource.StringConverter
1173          * @see org.eclipse.jface.preference.PreferenceConverter
1174          * @since 2.1
1175          */
1176         public final static String EDITOR_TASK_TAG_COLOR= IPreferenceConstants.TASK_TAG;
1177
1178         /**
1179          * A named preference that controls whether task tags are rendered in bold.
1180          * <p>
1181          * Value is of type <code>Boolean</code>.
1182          * </p>
1183          * @since 2.1
1184          */
1185         public final static String EDITOR_TASK_TAG_BOLD= IPreferenceConstants.TASK_TAG + EDITOR_BOLD_SUFFIX;
1186
1187   /**
1188    * A named preference that holds the color used to render phpdoc keywords.
1189    * <p>
1190    * Value is of type <code>String</code>. A RGB color value encoded as a string
1191    * using class <code>PreferenceConverter</code>
1192    * </p>
1193    * 
1194    * @see org.eclipse.jface.resource.StringConverter
1195    * @see org.eclipse.jface.preference.PreferenceConverter
1196    */
1197   public final static String EDITOR_JAVADOC_KEYWORD_COLOR = IPreferenceConstants.PHPDOC_KEYWORD;
1198
1199   /**
1200    * A named preference that controls whether phpdoc keywords are rendered in bold.
1201    * <p>
1202    * Value is of type <code>Boolean</code>.
1203    * </p>
1204    */
1205   public final static String EDITOR_JAVADOC_KEYWORD_BOLD = IPreferenceConstants.PHPDOC_KEYWORD + EDITOR_BOLD_SUFFIX;
1206
1207   /**
1208    * A named preference that holds the color used to render phpdoc tags.
1209    * <p>
1210    * Value is of type <code>String</code>. A RGB color value encoded as a string
1211    * using class <code>PreferenceConverter</code>
1212    * </p>
1213    * 
1214    * @see org.eclipse.jface.resource.StringConverter
1215    * @see org.eclipse.jface.preference.PreferenceConverter
1216    */
1217   public final static String EDITOR_JAVADOC_TAG_COLOR = IPreferenceConstants.PHPDOC_TAG;
1218
1219   /**
1220    * A named preference that controls whether phpdoc tags are rendered in bold.
1221    * <p>
1222    * Value is of type <code>Boolean</code>.
1223    * </p>
1224    */
1225   public final static String EDITOR_JAVADOC_TAG_BOLD = IPreferenceConstants.PHPDOC_TAG + EDITOR_BOLD_SUFFIX;
1226
1227   /**
1228    * A named preference that holds the color used to render phpdoc links.
1229    * <p>
1230    * Value is of type <code>String</code>. A RGB color value encoded as a string
1231    * using class <code>PreferenceConverter</code>
1232    * </p>
1233    * 
1234    * @see org.eclipse.jface.resource.StringConverter
1235    * @see org.eclipse.jface.preference.PreferenceConverter
1236    */
1237   public final static String EDITOR_JAVADOC_LINKS_COLOR = IPreferenceConstants.PHPDOC_LINK;
1238
1239   /**
1240    * A named preference that controls whether phpdoc links are rendered in bold.
1241    * <p>
1242    * Value is of type <code>Boolean</code>.
1243    * </p>
1244    */
1245   public final static String EDITOR_JAVADOC_LINKS_BOLD = IPreferenceConstants.PHPDOC_LINK + EDITOR_BOLD_SUFFIX;
1246
1247   /**
1248    * A named preference that holds the color used to render phpdoc default text.
1249    * <p>
1250    * Value is of type <code>String</code>. A RGB color value encoded as a string
1251    * using class <code>PreferenceConverter</code>
1252    * </p>
1253    * 
1254    * @see org.eclipse.jface.resource.StringConverter
1255    * @see org.eclipse.jface.preference.PreferenceConverter
1256    */
1257   public final static String EDITOR_JAVADOC_DEFAULT_COLOR = IPreferenceConstants.PHPDOC_DEFAULT;
1258
1259   /**
1260    * A named preference that controls whether phpdoc default text is rendered in bold.
1261    * <p>
1262    * Value is of type <code>Boolean</code>.
1263    * </p>
1264    */
1265   public final static String EDITOR_JAVADOC_DEFAULT_BOLD = IPreferenceConstants.PHPDOC_DEFAULT + EDITOR_BOLD_SUFFIX;
1266
1267   /**
1268    * A named preference that holds the color used for 'linked-mode' underline.
1269    * <p>
1270    * Value is of type <code>String</code>. A RGB color value encoded as a string
1271    * using class <code>PreferenceConverter</code>
1272    * </p>
1273    *
1274    * @see org.eclipse.jface.resource.StringConverter
1275    * @see org.eclipse.jface.preference.PreferenceConverter
1276    * @since 2.1
1277    */
1278   public final static String EDITOR_LINK_COLOR = "linkColor"; //$NON-NLS-1$
1279
1280   /**
1281    * A named preference that controls whether hover tooltips in the editor are turned on or off.
1282    * <p>
1283    * Value is of type <code>Boolean</code>.
1284    * </p>
1285    */
1286   public static final String EDITOR_SHOW_HOVER = "net.sourceforge.phpdt.ui.editor.showHover"; //$NON-NLS-1$
1287
1288   /**
1289    * A named preference that defines the hover shown when no control key is
1290    * pressed.
1291    * <p>Value is of type <code>String</code>: possible values are <code>
1292    * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1293    * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a hover
1294    * contributed as <code>phpEditorTextHovers</code>.
1295    * </p>
1296    * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1297    * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1298    * @see JavaUI
1299    * @since 2.1
1300    */
1301   public static final String EDITOR_NONE_HOVER = "noneHover"; //$NON-NLS-1$
1302
1303   /**
1304    * A named preference that defines the hover shown when the
1305    * <code>CTRL</code> modifier key is pressed.
1306    * <p>Value is of type <code>String</code>: possible values are <code>
1307    * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1308    * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1309    * hover contributed as <code>phpEditorTextHovers</code>.
1310    * </p>
1311    * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1312    * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1313    * @see JavaUI
1314    * @since 2.1
1315    */
1316   public static final String EDITOR_CTRL_HOVER = "ctrlHover"; //$NON-NLS-1$
1317
1318   /**
1319    * A named preference that defines the hover shown when the
1320    * <code>SHIFT</code> modifier key is pressed.
1321    * <p>Value is of type <code>String</code>: possible values are <code>
1322    * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1323    * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1324    * hover contributed as <code>phpEditorTextHovers</code>.
1325    * </p>
1326    * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1327    * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1328    * @see JavaUI ID_*_HOVER
1329    * @since 2.1
1330    */
1331   public static final String EDITOR_SHIFT_HOVER = "shiftHover"; //$NON-NLS-1$
1332
1333   /**
1334    * A named preference that defines the hover shown when the
1335    * <code>CTRL + ALT</code> modifier keys is pressed.
1336    * <p>Value is of type <code>String</code>: possible values are <code>
1337    * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1338    * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1339    * hover contributed as <code>phpEditorTextHovers</code>.
1340    * </p>
1341    * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1342    * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1343    * @see JavaUI ID_*_HOVER
1344    * @since 2.1
1345    */
1346   public static final String EDITOR_CTRL_ALT_HOVER = "ctrlAltHover"; //$NON-NLS-1$
1347
1348   /**
1349    * A named preference that defines the hover shown when the
1350    * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
1351    * <p>Value is of type <code>String</code>: possible values are <code>
1352    * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1353    * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1354    * hover contributed as <code>phpEditorTextHovers</code>.
1355    * </p>
1356    * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1357    * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1358    * @see JavaUI ID_*_HOVER
1359    * @since 2.1
1360    */
1361   public static final String EDITOR_CTRL_ALT_SHIFT_HOVER = "ctrlAltShiftHover"; //$NON-NLS-1$
1362
1363   /**
1364    * A named preference that defines the hover shown when the
1365    * <code>CTRL + SHIFT</code> modifier keys is pressed.
1366    * <p>Value is of type <code>String</code>: possible values are <code>
1367    * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
1368    * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
1369    * hover contributed as <code>phpEditorTextHovers</code>.
1370    * </p>
1371    * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1372    * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1373    * @see JavaUI ID_*_HOVER
1374    * @since 2.1
1375    */
1376   public static final String EDITOR_CTRL_SHIFT_HOVER = "ctrlShiftHover"; //$NON-NLS-1$
1377
1378   /**
1379    * A named preference that defines the hover shown when the
1380    * <code>ALT</code> modifier key is pressed.
1381    * <p>Value is of type <code>String</code>: possible values are <code>
1382    * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
1383    * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code>  or the hover id of a
1384    * hover contributed as <code>phpEditorTextHovers</code>.
1385    * </p>
1386    * @see #EDITOR_NO_HOVER_CONFIGURED_ID
1387    * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
1388    * @see JavaUI ID_*_HOVER
1389    * @since 2.1
1390    */
1391   public static final String EDITOR_ALT_SHIFT_HOVER = "altShiftHover"; //$NON-NLS-1$
1392
1393   /**
1394    * A string value used by the named preferences for hover configuration to
1395    * descibe that no hover should be shown for the given key modifiers.
1396    * @since 2.1
1397    */
1398   public static final String EDITOR_NO_HOVER_CONFIGURED_ID = "noHoverConfiguredId"; //$NON-NLS-1$
1399
1400   /**
1401    * A string value used by the named preferences for hover configuration to
1402    * descibe that the default hover should be shown for the given key
1403    * modifiers. The default hover is described by the
1404    * <code>EDITOR_DEFAULT_HOVER</code> property.
1405    * @since 2.1
1406    */
1407   public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID = "defaultHoverConfiguredId"; //$NON-NLS-1$
1408
1409   /**
1410    * A named preference that defines the hover named the 'default hover'.
1411    * Value is of type <code>String</code>: possible values are <code>
1412    * EDITOR_NO_HOVER_CONFIGURED_ID</code> or <code> the hover id of a hover
1413    * contributed as <code>phpEditorTextHovers</code>.
1414    * </p>
1415    *@since 2.1
1416    */
1417   public static final String EDITOR_DEFAULT_HOVER = "defaultHover"; //$NON-NLS-1$
1418
1419   /**
1420    * A named preference that controls if segmented view (show selected element only) is turned on or off.
1421    * <p>
1422    * Value is of type <code>Boolean</code>.
1423    * </p>
1424    */
1425   public static final String EDITOR_SHOW_SEGMENTS = "net.sourceforge.phpdt.ui.editor.showSegments"; //$NON-NLS-1$
1426   /**
1427          * A named preference that controls if browser like links are turned on or off.
1428          * <p>
1429          * Value is of type <code>Boolean</code>.
1430          * </p>
1431          * 
1432          * @since 2.1
1433          */
1434   public static final String EDITOR_BROWSER_LIKE_LINKS = "browserLikeLinks"; //$NON-NLS-1$
1435
1436   /**
1437    * A named preference that controls the key modifier for browser like links.
1438    * <p>
1439    * Value is of type <code>String</code>.
1440    * </p>
1441    * 
1442    * @since 2.1
1443    */
1444   public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER = "browserLikeLinksKeyModifier"; //$NON-NLS-1$
1445   /**
1446          * A named preference that controls whether occurrences are marked in the editor.
1447          * <p>
1448          * Value is of type <code>Boolean</code>.
1449          * </p>
1450          *
1451          * @since 3.0
1452          */     
1453         public static final String EDITOR_MARK_OCCURRENCES= "markOccurrences"; //$NON-NLS-1$
1454
1455         /**
1456          * A named preference that controls whether occurrences are sticky in the editor.
1457          * <p>
1458          * Value is of type <code>Boolean</code>.
1459          * </p>
1460          *
1461          * @since 3.0
1462          */     
1463         public static final String EDITOR_STICKY_OCCURRENCES= "stickyOccurrences"; //$NON-NLS-1$
1464
1465         /**
1466          * A named preference that controls disabling of the overwrite mode.
1467          * <p>
1468          * Value is of type <code>Boolean</code>.
1469          * </p>
1470          *
1471          * @since 3.0
1472          */     
1473         public static final String EDITOR_DISABLE_OVERWRITE_MODE= "disable_overwrite_mode"; //$NON-NLS-1$
1474
1475         /**
1476          * A named preference that controls the "smart semicolon" smart typing handler
1477          * <p>
1478          * Value is of type <code>Boolean</code>.
1479          * </p>
1480          *
1481          * @since 3.0
1482          */     
1483         public static final String EDITOR_SMART_SEMICOLON= "smart_semicolon"; //$NON-NLS-1$
1484         
1485         /**
1486          * A named preference that controls the "smart opening brace" smart typing handler
1487          * <p>
1488          * Value is of type <code>Boolean</code>.
1489          * </p>
1490          *
1491          * @since 3.0
1492          */     
1493         public static final String EDITOR_SMART_OPENING_BRACE= "smart_opening_brace"; //$NON-NLS-1$
1494
1495         /**
1496          * A named preference that controls the smart tab behaviour.
1497          * <p>
1498          * Value is of type <code>Boolean</code>.
1499          * 
1500          * @since 3.0
1501          */
1502         public static final String EDITOR_SMART_TAB= "smart_tab"; //$NON-NLS-1$
1503
1504         /**
1505          * A named preference that controls whether Java comments should be
1506          * spell-checked.
1507          * <p>
1508          * Value is of type <code>Boolean</code>.
1509          * </p>
1510          * 
1511          * @since 3.0
1512          */
1513 //      public final static String SPELLING_CHECK_SPELLING= ISpellCheckPreferenceKeys.SPELLING_CHECK_SPELLING;
1514
1515         /**
1516          * A named preference that controls whether words containing digits should
1517          * be skipped during spell-checking.
1518          * <p>
1519          * Value is of type <code>Boolean</code>.
1520          * </p>
1521          * 
1522          * @since 3.0
1523          */
1524 //      public final static String SPELLING_IGNORE_DIGITS= ISpellCheckPreferenceKeys.SPELLING_IGNORE_DIGITS;
1525
1526         /**
1527          * A named preference that controls whether mixed case words should be
1528          * skipped during spell-checking.
1529          * <p>
1530          * Value is of type <code>Boolean</code>.
1531          * </p>
1532          * 
1533          * @since 3.0
1534          */
1535 //      public final static String SPELLING_IGNORE_MIXED= ISpellCheckPreferenceKeys.SPELLING_IGNORE_MIXED;
1536
1537         /**
1538          * A named preference that controls whether sentence capitalization should
1539          * be ignored during spell-checking.
1540          * <p>
1541          * Value is of type <code>Boolean</code>.
1542          * </p>
1543          * 
1544          * @since 3.0
1545          */
1546 //      public final static String SPELLING_IGNORE_SENTENCE= ISpellCheckPreferenceKeys.SPELLING_IGNORE_SENTENCE;
1547
1548         /**
1549          * A named preference that controls whether upper case words should be
1550          * skipped during spell-checking.
1551          * <p>
1552          * Value is of type <code>Boolean</code>.
1553          * </p>
1554          * 
1555          * @since 3.0
1556          */
1557 //      public final static String SPELLING_IGNORE_UPPER= ISpellCheckPreferenceKeys.SPELLING_IGNORE_UPPER;
1558
1559         /**
1560          * A named preference that controls whether urls should be ignored during
1561          * spell-checking.
1562          * <p>
1563          * Value is of type <code>Boolean</code>.
1564          * </p>
1565          * 
1566          * @since 3.0
1567          */
1568 //      public final static String SPELLING_IGNORE_URLS= ISpellCheckPreferenceKeys.SPELLING_IGNORE_URLS;
1569
1570         /**
1571          * A named preference that controls the locale used for spell-checking.
1572          * <p>
1573          * Value is of type <code>String</code>.
1574          * </p>
1575          * 
1576          * @since 3.0
1577          */
1578 //      public final static String SPELLING_LOCALE= ISpellCheckPreferenceKeys.SPELLING_LOCALE;
1579
1580         /**
1581          * A named preference that controls the number of proposals offered during
1582          * spell-checking.
1583          * <p>
1584          * Value is of type <code>Integer</code>.
1585          * </p>
1586          * 
1587          * @since 3.0
1588          */
1589 //      public final static String SPELLING_PROPOSAL_THRESHOLD= ISpellCheckPreferenceKeys.SPELLING_PROPOSAL_THRESHOLD;
1590
1591         /**
1592          * A named preference that specifies the workspace user dictionary.
1593          * <p>
1594          * Value is of type <code>Integer</code>.
1595          * </p>
1596          * 
1597          * @since 3.0
1598          */
1599 //      public final static String SPELLING_USER_DICTIONARY= ISpellCheckPreferenceKeys.SPELLING_USER_DICTIONARY;
1600
1601         /**
1602          * A named preference that specifies whether spelling dictionaries are available to content assist.
1603          * <p>
1604          * Value is of type <code>Boolean</code>.
1605          * </p>
1606          * 
1607          * @since 3.0
1608          */
1609 //      public final static String SPELLING_ENABLE_CONTENTASSIST= ISpellCheckPreferenceKeys.SPELLING_ENABLE_CONTENTASSIST;
1610
1611         /**
1612          * A named preference that controls whether code snippets are formatted
1613          * in Javadoc comments.
1614          * <p>
1615          * Value is of type <code>Boolean</code>.
1616          * </p>
1617          *
1618          * @since 3.0
1619          */     
1620         public final static String FORMATTER_COMMENT_FORMATSOURCE= "comment_format_source_code"; //$NON-NLS-1$
1621         
1622         /**
1623          * A named preference that controls whether description of Javadoc
1624          * parameters are indented.
1625          * <p>
1626          * Value is of type <code>Boolean</code>.
1627          * </p>
1628          *
1629          * @since 3.0
1630          */     
1631         public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION= "comment_indent_parameter_description"; //$NON-NLS-1$
1632
1633         /**
1634          * A named preference that controls whether the header comment of
1635          * a Java source file is formatted.
1636          * <p>
1637          * Value is of type <code>Boolean</code>.
1638          * </p>
1639          *
1640          * @since 3.0
1641          */     
1642         public final static String FORMATTER_COMMENT_FORMATHEADER= "comment_format_header"; //$NON-NLS-1$
1643
1644         /**
1645          * A named preference that controls whether Javadoc root tags
1646          * are indented.
1647          * <p>
1648          * Value is of type <code>Boolean</code>.
1649          * </p>
1650          *
1651          * @since 3.0
1652          */     
1653         public final static String FORMATTER_COMMENT_INDENTROOTTAGS= "comment_indent_root_tags"; //$NON-NLS-1$
1654         
1655         /**
1656          * A named preference that controls whether Javadoc comments
1657          * are formatted by the content formatter.
1658          * <p>
1659          * Value is of type <code>Boolean</code>.
1660          * </p>
1661          *
1662          * @since 3.0
1663          */     
1664         public final static String FORMATTER_COMMENT_FORMAT= "comment_format_comments"; //$NON-NLS-1$
1665
1666         /**
1667          * A named preference that controls whether a new line is inserted
1668          * after Javadoc root tag parameters.
1669          * <p>
1670          * Value is of type <code>Boolean</code>.
1671          * </p>
1672          *
1673          * @since 3.0
1674          */     
1675         public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER= "comment_new_line_for_parameter"; //$NON-NLS-1$
1676
1677         /**
1678          * A named preference that controls whether an empty line is inserted before
1679          * the Javadoc root tag block.
1680          * <p>
1681          * Value is of type <code>Boolean</code>.
1682          * </p>
1683          *
1684          * @since 3.0
1685          */     
1686         public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS= "comment_separate_root_tags"; //$NON-NLS-1$
1687
1688         /**
1689          * A named preference that controls whether blank lines are cleared during formatting
1690          * <p>
1691          * Value is of type <code>Boolean</code>.
1692          * </p>
1693          *
1694          * @since 3.0
1695          */     
1696         public final static String FORMATTER_COMMENT_CLEARBLANKLINES= "comment_clear_blank_lines"; //$NON-NLS-1$
1697
1698         /**
1699          * A named preference that controls the line length of comments.
1700          * <p>
1701          * Value is of type <code>Integer</code>. The value must be at least 4 for reasonable formatting.
1702          * </p>
1703          *
1704          * @since 3.0
1705          */     
1706         public final static String FORMATTER_COMMENT_LINELENGTH= "comment_line_length"; //$NON-NLS-1$
1707
1708         /**
1709          * A named preference that controls whether html tags are formatted.
1710          * <p>
1711          * Value is of type <code>Boolean</code>.
1712          * </p>
1713          *
1714          * @since 3.0
1715          */     
1716         public final static String FORMATTER_COMMENT_FORMATHTML= "comment_format_html"; //$NON-NLS-1$
1717
1718   /**
1719    * A named preference that controls if the Java code assist gets auto activated.
1720    * <p>
1721    * Value is of type <code>Boolean</code>.
1722    * </p>
1723    */
1724   public final static String CODEASSIST_AUTOACTIVATION = "content_assist_autoactivation"; //$NON-NLS-1$
1725
1726   /**
1727    * A name preference that holds the auto activation delay time in milli seconds.
1728    * <p>
1729    * Value is of type <code>Int</code>.
1730    * </p>
1731    */
1732   public final static String CODEASSIST_AUTOACTIVATION_DELAY = "content_assist_autoactivation_delay"; //$NON-NLS-1$
1733
1734   /**
1735    * A named preference that controls if code assist contains only visible proposals.
1736    * <p>
1737    * Value is of type <code>Boolean</code>. if <code>true<code> code assist only contains visible members. If 
1738    * <code>false</code> all members are included.
1739    * </p>
1740    */
1741   public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS = "content_assist_show_visible_proposals"; //$NON-NLS-1$
1742
1743   /**
1744    * A named preference that controls if the Java code assist inserts a
1745    * proposal automatically if only one proposal is available.
1746    * <p>
1747    * Value is of type <code>Boolean</code>.
1748    * </p>
1749    * @since 2.1
1750    */
1751   public final static String CODEASSIST_AUTOINSERT = "content_assist_autoinsert"; //$NON-NLS-1$
1752
1753   /**
1754    * A named preference that controls if the Java code assist adds import
1755    * statements.
1756    * <p>
1757    * Value is of type <code>Boolean</code>.
1758    * </p>
1759    * @since 2.1
1760    */
1761   public final static String CODEASSIST_ADDIMPORT = "content_assist_add_import"; //$NON-NLS-1$
1762
1763   /**
1764    * A named preference that controls if the Java code assist only inserts
1765    * completions. If set to false the proposals can also _replace_ code.
1766    * <p>
1767    * Value is of type <code>Boolean</code>.
1768    * </p>
1769    * @since 2.1
1770    */
1771   public final static String CODEASSIST_INSERT_COMPLETION = "content_assist_insert_completion"; //$NON-NLS-1$   
1772
1773   /**
1774    * A named preference that controls whether code assist proposals filtering is case sensitive or not.
1775    * <p>
1776    * Value is of type <code>Boolean</code>.
1777    * </p>
1778    */
1779   public final static String CODEASSIST_CASE_SENSITIVITY = "content_assist_case_sensitivity"; //$NON-NLS-1$
1780
1781   /**
1782    * A named preference that defines if code assist proposals are sorted in alphabetical order.
1783    * <p>
1784    * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical 
1785    * order. If <code>false</code> that are unsorted.
1786    * </p>
1787    */
1788   public final static String CODEASSIST_ORDER_PROPOSALS = "content_assist_order_proposals"; //$NON-NLS-1$
1789
1790   /**
1791    * A named preference that controls if argument names are filled in when a method is selected from as list
1792    * of code assist proposal.
1793    * <p>
1794    * Value is of type <code>Boolean</code>.
1795    * </p>
1796    */
1797   public final static String CODEASSIST_FILL_ARGUMENT_NAMES = "content_assist_fill_method_arguments"; //$NON-NLS-1$
1798
1799   /**
1800    * A named preference that controls if method arguments are guessed when a
1801    * method is selected from as list of code assist proposal.
1802    * <p>
1803    * Value is of type <code>Boolean</code>.
1804    * </p>
1805    * @since 2.1
1806    */
1807   public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS = "content_assist_guess_method_arguments"; //$NON-NLS-1$
1808
1809   /**
1810    * A named preference that holds the characters that auto activate code assist
1811    * in PHP code.
1812    * <p>
1813    * Value is of type <code>Sring</code>. All characters that trigger auto code
1814    * assist in PHP code.
1815    * </p>
1816    */
1817   public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA = "content_assist_autoactivation_triggers_php"; //$NON-NLS-1$
1818
1819   /**
1820    * A named preference that holds the characters that auto activate code assist
1821    * in PHPDoc.
1822    * <p>
1823    * Value is of type <code>Sring</code>. All characters that trigger auto code
1824    * assist in PHPDoc.
1825    * </p>
1826    */
1827   public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC = "content_assist_autoactivation_triggers_phpdoc"; //$NON-NLS-1$
1828
1829   /**
1830    * A named preference that holds the characters that auto activate code assist
1831    * in HTML.
1832    * <p>
1833    * Value is of type <code>Sring</code>. All characters that trigger auto code
1834    * assist in HTML.
1835    * </p>
1836    */
1837   public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML = "content_assist_autoactivation_triggers_html"; //$NON-NLS-1$
1838
1839   /**
1840    * A named preference that holds the background color used in the code assist selection dialog.
1841    * <p>
1842    * Value is of type <code>String</code>. A RGB color value encoded as a string
1843    * using class <code>PreferenceConverter</code>
1844    * </p>
1845    * 
1846    * @see org.eclipse.jface.resource.StringConverter
1847    * @see org.eclipse.jface.preference.PreferenceConverter
1848    */
1849   public final static String CODEASSIST_PROPOSALS_BACKGROUND = "content_assist_proposals_background"; //$NON-NLS-1$
1850
1851   /**
1852    * A named preference that holds the foreground color used in the code assist selection dialog.
1853    * <p>
1854    * Value is of type <code>String</code>. A RGB color value encoded as a string
1855    * using class <code>PreferenceConverter</code>
1856    * </p>
1857    * 
1858    * @see org.eclipse.jface.resource.StringConverter
1859    * @see org.eclipse.jface.preference.PreferenceConverter
1860    */
1861   public final static String CODEASSIST_PROPOSALS_FOREGROUND = "content_assist_proposals_foreground"; //$NON-NLS-1$
1862
1863   /**
1864    * A named preference that holds the background color used for parameter hints.
1865    * <p>
1866    * Value is of type <code>String</code>. A RGB color value encoded as a string
1867    * using class <code>PreferenceConverter</code>
1868    * </p>
1869    * 
1870    * @see org.eclipse.jface.resource.StringConverter
1871    * @see org.eclipse.jface.preference.PreferenceConverter
1872    */
1873   public final static String CODEASSIST_PARAMETERS_BACKGROUND = "content_assist_parameters_background"; //$NON-NLS-1$
1874
1875   /**
1876    * A named preference that holds the foreground color used in the code assist selection dialog
1877    * <p>
1878    * Value is of type <code>String</code>. A RGB color value encoded as a string
1879    * using class <code>PreferenceConverter</code>
1880    * </p>
1881    * 
1882    * @see org.eclipse.jface.resource.StringConverter
1883    * @see org.eclipse.jface.preference.PreferenceConverter
1884    */
1885   public final static String CODEASSIST_PARAMETERS_FOREGROUND = "content_assist_parameters_foreground"; //$NON-NLS-1$
1886
1887   /**
1888    * A named preference that holds the background color used in the code
1889    * assist selection dialog to mark replaced code.
1890    * <p>
1891    * Value is of type <code>String</code>. A RGB color value encoded as a string
1892    * using class <code>PreferenceConverter</code>
1893    * </p>
1894    *
1895    * @see org.eclipse.jface.resource.StringConverter
1896    * @see org.eclipse.jface.preference.PreferenceConverter
1897    * @since 2.1
1898    */
1899   public final static String CODEASSIST_REPLACEMENT_BACKGROUND = "content_assist_completion_replacement_background"; //$NON-NLS-1$
1900
1901   /**
1902    * A named preference that holds the foreground color used in the code
1903    * assist selection dialog to mark replaced code.
1904    * <p>
1905    * Value is of type <code>String</code>. A RGB color value encoded as a string
1906    * using class <code>PreferenceConverter</code>
1907    * </p>
1908    *
1909    * @see org.eclipse.jface.resource.StringConverter
1910    * @see org.eclipse.jface.preference.PreferenceConverter
1911    * @since 2.1
1912    */
1913   public final static String CODEASSIST_REPLACEMENT_FOREGROUND = "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
1914
1915   /**
1916    * A named preference that controls the behaviour of the refactoring wizard for showing the error page. 
1917    * <p>
1918    * Value is of type <code>String</code>. Valid values are: 
1919    * <code>REFACTOR_FATAL_SEVERITY</code>,
1920    * <code>REFACTOR_ERROR_SEVERITY</code>,
1921    * <code>REFACTOR_WARNING_SEVERITY</code>
1922    * <code>REFACTOR_INFO_SEVERITY</code>,
1923    * <code>REFACTOR_OK_SEVERITY</code>.
1924    * </p>
1925    * 
1926    * @see #REFACTOR_FATAL_SEVERITY
1927    * @see #REFACTOR_ERROR_SEVERITY
1928    * @see #REFACTOR_WARNING_SEVERITY
1929    * @see #REFACTOR_INFO_SEVERITY
1930    * @see #REFACTOR_OK_SEVERITY
1931    */
1932   public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD = "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
1933
1934   /**
1935    * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1936    * 
1937    * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1938    */
1939   public static final String REFACTOR_FATAL_SEVERITY = "4"; //$NON-NLS-1$
1940
1941   /**
1942    * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1943    * 
1944    * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1945    */
1946   public static final String REFACTOR_ERROR_SEVERITY = "3"; //$NON-NLS-1$
1947
1948   /**
1949    * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1950    * 
1951    * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1952    */
1953   public static final String REFACTOR_WARNING_SEVERITY = "2"; //$NON-NLS-1$
1954
1955   /**
1956    * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1957    * 
1958    * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1959    */
1960   public static final String REFACTOR_INFO_SEVERITY = "1"; //$NON-NLS-1$
1961
1962   /**
1963    * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
1964    * 
1965    * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
1966    */
1967   public static final String REFACTOR_OK_SEVERITY = "0"; //$NON-NLS-1$
1968
1969   /**
1970    * A named preference thet controls whether all dirty editors are automatically saved before a refactoring is
1971    * executed.
1972    * <p>
1973    * Value is of type <code>Boolean</code>.
1974    * </p>
1975    */
1976   public static final String REFACTOR_SAVE_ALL_EDITORS = "Refactoring.savealleditors"; //$NON-NLS-1$
1977
1978   /**
1979    * A named preference that controls if the Java Browsing views are linked to the active editor.
1980    * <p>
1981    * Value is of type <code>Boolean</code>.
1982    * </p>
1983    * 
1984    * @see #LINK_PACKAGES_TO_EDITOR
1985    */
1986   public static final String BROWSING_LINK_VIEW_TO_EDITOR = "net.sourceforge.phpdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
1987
1988   /**
1989    * A named preference that controls the layout of the Java Browsing views vertically. Boolean value.
1990    * <p>
1991    * Value is of type <code>Boolean</code>. If <code>true<code> the views are stacked vertical.
1992    * If <code>false</code> they are stacked horizontal.
1993    * </p>
1994    */
1995   public static final String BROWSING_STACK_VERTICALLY = "net.sourceforge.phpdt.ui.browsing.stackVertically"; //$NON-NLS-1$
1996
1997   /**
1998    * A named preference that controls if templates are formatted when applied.
1999    * <p>
2000    * Value is of type <code>Boolean</code>.
2001    * </p>
2002    *
2003    * @since 2.1
2004    */
2005   public static final String TEMPLATES_USE_CODEFORMATTER = "net.sourceforge.phpdt.ui.template.format"; //$NON-NLS-1$
2006
2007   /**
2008    * A named preference that controls the key modifier mask for browser like links.
2009    * The value is only used if the value of <code>EDITOR_BROWSER_LIKE_LINKS</code>
2010    * cannot be resolved to valid SWT modifier bits.
2011    * <p>
2012    * Value is of type <code>String</code>.
2013    * </p>
2014    * 
2015    * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2016    * @since 2.1.1
2017    */
2018   public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK = "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2019
2020   /**
2021          * A named preference that defines the key for the hover modifier state masks.
2022          * The value is only used if the value of <code>EDITOR_TEXT_HOVER_MODIFIERS</code>
2023          * cannot be resolved to valid SWT modifier bits.
2024          * 
2025          * @see JavaUI
2026          * @see #EDITOR_TEXT_HOVER_MODIFIERS
2027          * @since 2.1.1
2028          */
2029   public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS = "hoverModifierMasks"; //$NON-NLS-1$
2030
2031   public static void initializeDefaultValues(IPreferenceStore store) {
2032     store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
2033
2034     // JavaBasePreferencePage
2035     store.setDefault(PreferenceConstants.LINK_PACKAGES_TO_EDITOR, true);
2036     store.setDefault(PreferenceConstants.LINK_TYPEHIERARCHY_TO_EDITOR, false);
2037     store.setDefault(PreferenceConstants.LINK_BROWSING_VIEW_TO_EDITOR, true);
2038     store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
2039     store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
2040     store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, PreferenceConstants.UPDATE_WHILE_EDITING);
2041
2042     // AppearancePreferencePage
2043     store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false);
2044     store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, false);
2045     store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
2046     store.setDefault(PreferenceConstants.APPEARANCE_OVERRIDE_INDICATOR, true);
2047     store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
2048     store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
2049     store.setDefault(PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, true);
2050
2051     // ImportOrganizePreferencePage
2052     store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, "php;phpx;org;com"); //$NON-NLS-1$
2053     store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
2054     store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
2055
2056     // ClasspathVariablesPreferencePage
2057     // CodeFormatterPreferencePage
2058     // CompilerPreferencePage
2059     // no initialization needed
2060
2061     // RefactoringPreferencePage
2062     store.setDefault(PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, PreferenceConstants.REFACTOR_ERROR_SEVERITY);
2063     store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
2064     store.setDefault("RefactoringUI", "dialog");
2065
2066     // TemplatePreferencePage
2067     store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
2068
2069     // CodeGenerationPreferencePage
2070     store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX, false);
2071     store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX, false);
2072     store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX, "fg, f, _$, _, m_"); //$NON-NLS-1$
2073     store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$
2074     store.setDefault(PreferenceConstants.CODEGEN__JAVADOC_STUBS, true);
2075     store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS, false);
2076     store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
2077
2078     // MembersOrderPreferencePage
2079     store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SI,SF,SM,I,F,C,M"); //$NON-NLS-1$
2080     // must add here to guarantee that it is the first in the listener list
2081     //  store.addPropertyChangeListener(PHPeclipsePlugin.getDefault().getMemberOrderPreferenceCache());
2082
2083     // PHPEditorPreferencePage
2084     /*
2085      * Ensure that the display is accessed only in the UI thread.
2086      * Ensure that there are no side effects of switching the thread.
2087      */
2088     final RGB[] rgbs = new RGB[3];
2089     final Display display = Display.getDefault();
2090     display.syncExec(new Runnable() {
2091       public void run() {
2092         Color c = display.getSystemColor(SWT.COLOR_GRAY);
2093         rgbs[0] = c.getRGB();
2094         c = display.getSystemColor(SWT.COLOR_LIST_FOREGROUND);
2095         rgbs[1] = c.getRGB();
2096         c = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
2097         rgbs[2] = c.getRGB();
2098       }
2099     });
2100
2101     store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
2102     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR, rgbs[0]);
2103
2104     store.setDefault(PreferenceConstants.EDITOR_CURRENT_LINE, true);
2105     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_CURRENT_LINE_COLOR, new RGB(225, 235, 224));
2106
2107     store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN, false);
2108     store.setDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN, 80);
2109     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, new RGB(176, 180, 185));
2110
2111     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FIND_SCOPE_COLOR, new RGB(185, 176, 180));
2112
2113 //    store.setDefault(PreferenceConstants.EDITOR_PROBLEM_INDICATION, true);
2114 //    PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PROBLEM_INDICATION_COLOR, new RGB(255, 0, 128));
2115 //    store.setDefault(PreferenceConstants.EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER, true);
2116 //
2117 //    store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION, true);
2118 //    PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_WARNING_INDICATION_COLOR, new RGB(244, 200, 45));
2119 //    store.setDefault(PreferenceConstants.EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER, true);
2120 //
2121 //    store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION, false);
2122 //    PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_TASK_INDICATION_COLOR, new RGB(0, 128, 255));
2123 //    store.setDefault(PreferenceConstants.EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER, false);
2124 //
2125 //    store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION, false);
2126 //    PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BOOKMARK_INDICATION_COLOR, new RGB(34, 164, 99));
2127 //    store.setDefault(PreferenceConstants.EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER, false);
2128 //
2129 //    store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION, false);
2130 //    PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_COLOR, new RGB(192, 192, 192));
2131 //    store.setDefault(PreferenceConstants.EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER, false);
2132 //
2133 //    store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION, false);
2134 //    PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_UNKNOWN_INDICATION_COLOR, new RGB(0, 0, 0));
2135 //    store.setDefault(PreferenceConstants.EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER, false);
2136
2137     store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true);
2138     store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, false);
2139
2140     store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true);
2141
2142     store.setDefault(PreferenceConstants.EDITOR_OVERVIEW_RULER, true);
2143
2144     store.setDefault(PreferenceConstants.EDITOR_LINE_NUMBER_RULER, false);
2145     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR, new RGB(0, 0, 0));
2146
2147 //    WorkbenchChainedTextFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT);
2148
2149     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(0, 200, 100));
2150     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINK_COLOR, new RGB(0, 0, 255));
2151
2152     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_FOREGROUND_COLOR, rgbs[1]);
2153     store.setDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR, true);
2154
2155     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_BACKGROUND_COLOR, rgbs[2]);
2156     store.setDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR, true);
2157
2158     store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
2159     store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
2160
2161     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
2162     store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false);
2163
2164     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
2165     store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false);
2166
2167     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_TAG_COLOR, new RGB(255, 0, 128));
2168     store.setDefault(PreferenceConstants.EDITOR_JAVA_TAG_BOLD, true);
2169
2170     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_KEYWORD_COLOR, new RGB(127, 0, 85));
2171     store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
2172
2173     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_COLOR, new RGB(127, 127, 159));
2174     store.setDefault(PreferenceConstants.EDITOR_PHP_FUNCTIONNAME_BOLD, false);
2175
2176     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127, 159, 191));
2177     store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
2178
2179     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0, 85));
2180     store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
2181
2182     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_TYPE_COLOR, new RGB(127, 0, 85));
2183     store.setDefault(PreferenceConstants.EDITOR_PHP_TYPE_BOLD, false);
2184
2185     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_STRING_COLOR, new RGB(42, 0, 255));
2186     store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false);
2187
2188     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_DEFAULT_COLOR, new RGB(0, 0, 0));
2189     store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
2190
2191     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_KEYWORD_COLOR, new RGB(127, 159, 191));
2192     store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
2193
2194     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_TAG_COLOR, new RGB(127, 127, 159));
2195     store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
2196
2197     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_LINKS_COLOR, new RGB(63, 63, 191));
2198     store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
2199
2200     PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVADOC_DEFAULT_COLOR, new RGB(63, 95, 191));
2201     store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false);
2202
2203     store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
2204     store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 500);
2205
2206     store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
2207     PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, new RGB(254, 241, 233));
2208     PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, new RGB(0, 0, 0));
2209     PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND, new RGB(254, 241, 233));
2210     PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND, new RGB(0, 0, 0));
2211     PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND, new RGB(255, 255, 0));
2212     PreferenceConverter.setDefault(store, PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND, new RGB(255, 0, 0));
2213     store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, "$"); //$NON-NLS-1$
2214     store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, "@"); //$NON-NLS-1$
2215     store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_HTML, "<&#"); //$NON-NLS-1$
2216     store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, true);
2217     store.setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false);
2218     store.setDefault(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, false);
2219     store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
2220     store.setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true);
2221     store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, false);
2222     store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, true);
2223         
2224     store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
2225         store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
2226     store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
2227     store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_PHP, true);
2228     store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_PHP, true);
2229     store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
2230     store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
2231     store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
2232     store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS, false);
2233     store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
2234     store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, true);
2235         store.setDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE, false);
2236
2237     store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS_HTML, true);
2238     store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS_HTML, true);
2239
2240     //  store.setDefault(PreferenceConstants.EDITOR_DEFAULT_HOVER, JavaPlugin.ID_BESTMATCH_HOVER);
2241     store.setDefault(PreferenceConstants.EDITOR_NONE_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2242     //          store.setDefault(PreferenceConstants.EDITOR_CTRL_HOVER, JavaPlugin.ID_SOURCE_HOVER);
2243     store.setDefault(PreferenceConstants.EDITOR_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2244     store.setDefault(PreferenceConstants.EDITOR_CTRL_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2245     store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2246     store.setDefault(PreferenceConstants.EDITOR_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2247     store.setDefault(PreferenceConstants.EDITOR_CTRL_ALT_SHIFT_HOVER, PreferenceConstants.EDITOR_DEFAULT_HOVER_CONFIGURED_ID);
2248
2249     String ctrl = Action.findModifierString(SWT.CTRL);
2250     store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS, "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + ctrl); //$NON-NLS-1$
2251     store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS, "net.sourceforge.phpdt.ui.BestMatchHover;0;net.sourceforge.phpdt.ui.JavaSourceHover;" + SWT.CTRL); //$NON-NLS-1$
2252
2253     store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS, true);
2254     store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER, ctrl);
2255     store.setDefault(PreferenceConstants.EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK, SWT.CTRL);
2256
2257     // do more complicated stuff
2258     //  NewJavaProjectPreferencePage.initDefaults(store);       
2259   }
2260
2261   /**
2262    * Returns the JDT-UI preference store.
2263    * 
2264    * @return the JDT-UI preference store
2265    */
2266   public static IPreferenceStore getPreferenceStore() {
2267     return PHPeclipsePlugin.getDefault().getPreferenceStore();
2268   }
2269
2270   //    /**
2271   //     * Encodes a JRE library to be used in the named preference <code>NEWPROJECT_JRELIBRARY_LIST</code>. 
2272   //     * 
2273   //     * @param description a string value describing the JRE library. The description is used
2274   //     * to indentify the JDR library in the UI
2275   //     * @param entries an array of classpath entries to be encoded
2276   //     * 
2277   //     * @return the encoded string.
2278   //    */
2279   //    public static String encodeJRELibrary(String description, IClasspathEntry[] entries) {
2280   //            return NewJavaProjectPreferencePage.encodeJRELibrary(description, entries);
2281   //    }
2282   //    
2283   //    /**
2284   //     * Decodes an encoded JRE library and returns its description string.
2285   //     * 
2286   //     * @return the description of an encoded JRE library
2287   //     * 
2288   //     * @see #encodeJRELibrary(String, IClasspathEntry[])
2289   //     */
2290   //    public static String decodeJRELibraryDescription(String encodedLibrary) {
2291   //            return NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
2292   //    }
2293   //    
2294   //    /**
2295   //     * Decodes an encoded JRE library and returns its classpath entries.
2296   //     * 
2297   //     * @return the array of classpath entries of an encoded JRE library.
2298   //     * 
2299   //     * @see #encodeJRELibrary(String, IClasspathEntry[])
2300   //     */
2301   //    public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String encodedLibrary) {
2302   //            return NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
2303   //    }
2304   //    
2305   //    /**
2306   //     * Returns the current configuration for the JRE to be used as default in new Java projects.
2307   //     * This is a convenience method to access the named preference <code>NEWPROJECT_JRELIBRARY_LIST
2308   //     * </code> with the index defined by <code> NEWPROJECT_JRELIBRARY_INDEX</code>.
2309   //     *
2310   //     * @return the current default set of classpath entries
2311   //     *  
2312   //     * @see #NEWPROJECT_JRELIBRARY_LIST
2313   //     * @see #NEWPROJECT_JRELIBRARY_INDEX
2314   //     */
2315   //    public static IClasspathEntry[] getDefaultJRELibrary() {
2316   //            return NewJavaProjectPreferencePage.getDefaultJRELibrary();
2317   //    }               
2318 }