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