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