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