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