]> git.uio.no Git - ifi-stolz-refaktor.git/blame - case-study/jdt-after/ui/org/eclipse/jdt/ui/PreferenceConstants.java
Case Study: adding data and statistics
[ifi-stolz-refaktor.git] / case-study / jdt-after / ui / org / eclipse / jdt / ui / PreferenceConstants.java
CommitLineData
1b2798f6
EK
1/*******************************************************************************
2 * Copyright (c) 2000, 2012 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Guven Demir <guven.internet+eclipse@gmail.com> - [package explorer] Alternative package name shortening: abbreviation - https://bugs.eclipse.org/bugs/show_bug.cgi?id=299514
11 *******************************************************************************/
12package org.eclipse.jdt.ui;
13
14import java.util.Arrays;
15import java.util.Locale;
16import java.util.StringTokenizer;
17
18import org.eclipse.swt.SWT;
19import org.eclipse.swt.graphics.RGB;
20
21import org.eclipse.core.runtime.Assert;
22import org.eclipse.core.runtime.preferences.DefaultScope;
23import org.eclipse.core.runtime.preferences.InstanceScope;
24
25import org.eclipse.core.resources.ProjectScope;
26
27import org.eclipse.jface.action.Action;
28import org.eclipse.jface.preference.IPreferenceStore;
29import org.eclipse.jface.preference.JFacePreferences;
30import org.eclipse.jface.preference.PreferenceConverter;
31import org.eclipse.jface.resource.JFaceResources;
32
33import org.eclipse.ui.PlatformUI;
34
35import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
36import org.eclipse.ui.texteditor.AbstractTextEditor;
37
38import org.eclipse.jdt.core.IClasspathEntry;
39import org.eclipse.jdt.core.IJavaProject;
40import org.eclipse.jdt.core.JavaCore;
41
42import org.eclipse.jdt.internal.corext.fix.CleanUpConstants;
43
44import org.eclipse.jdt.ui.text.IJavaColorConstants;
45
46import org.eclipse.jdt.internal.ui.JavaPlugin;
47import org.eclipse.jdt.internal.ui.JavaUIPreferenceInitializer;
48import org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyContentProvider;
49import org.eclipse.jdt.internal.ui.callhierarchy.ExpandWithConstructorsConfigurationBlock;
50import org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings;
51import org.eclipse.jdt.internal.ui.preferences.NewJavaProjectPreferencePage;
52import org.eclipse.jdt.internal.ui.preferences.formatter.FormatterProfileManager;
53import org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerRegistry;
54import org.eclipse.jdt.internal.ui.text.java.ProposalSorterRegistry;
55import org.eclipse.jdt.internal.ui.text.spelling.SpellCheckEngine;
56
57
58/**
59 * Preference constants used in the JDT-UI preference store. Clients should only read the
60 * JDT-UI preference store using these values. Clients are not allowed to modify the
61 * preference store programmatically.
62 * <p>
63 * This class it is not intended to be instantiated or subclassed by clients.
64 * </p>
65 *
66 * @since 2.0
67 *
68 * @noinstantiate This class is not intended to be instantiated by clients.
69 * @noextend This class is not intended to be subclassed by clients.
70 */
71public class PreferenceConstants {
72
73 private PreferenceConstants() {
74 }
75
76 /**
77 * A named preference that controls return type rendering of methods in the UI.
78 * <p>
79 * Value is of type <code>Boolean</code>: if <code>true</code> return types
80 * are rendered
81 * </p>
82 */
83 public static final String APPEARANCE_METHOD_RETURNTYPE= "org.eclipse.jdt.ui.methodreturntype";//$NON-NLS-1$
84
85 /**
86 * A named preference that controls type parameter rendering of methods in the UI.
87 * <p>
88 * Value is of type <code>Boolean</code>: if <code>true</code> return types
89 * are rendered
90 * </p>
91 * @since 3.1
92 */
93 public static final String APPEARANCE_METHOD_TYPEPARAMETERS= "org.eclipse.jdt.ui.methodtypeparametesr";//$NON-NLS-1$
94
95 /**
96 * A named preference that controls if override indicators are rendered in the UI.
97 * <p>
98 * Value is of type <code>Boolean</code>: if <code>true</code> override
99 * indicators are rendered
100 * </p>
101 * @deprecated Override Indicator is now controlled on the platform's decorator preference page
102 */
103 public static final String APPEARANCE_OVERRIDE_INDICATOR= "org.eclipse.jdt.ui.overrideindicator";//$NON-NLS-1$
104
105 /**
106 * A named preference that controls if quick assist light bulbs are shown.
107 * <p>
108 * Value is of type <code>Boolean</code>: if <code>true</code> light bulbs are shown
109 * for quick assists.
110 * </p>
111 *
112 * @since 3.0
113 */
114 public static final String EDITOR_QUICKASSIST_LIGHTBULB="org.eclipse.jdt.quickassist.lightbulb"; //$NON-NLS-1$
115
116
117
118 /**
119 * A named preference that defines the pattern used for package name compression.
120 * <p>
121 * Value is of type <code>String</code>. For example for the given package name 'org.eclipse.jdt' pattern
122 * '.' will compress it to '..jdt', '1~' to 'o~.e~.jdt'.
123 * </p>
124 */
125 public static final String APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW= "PackagesView.pkgNamePatternForPackagesView";//$NON-NLS-1$
126
127 /**
128 * A named preference that controls if package name compression is turned on or off.
129 * <p>
130 * Value is of type <code>Boolean</code>.
131 * </p>
132 *
133 * @see #APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW
134 */
135 public static final String APPEARANCE_COMPRESS_PACKAGE_NAMES= "org.eclipse.jdt.ui.compresspackagenames";//$NON-NLS-1$
136
137 /**
138 * A named preference that defines the patterns used for package name abbreviation.
139 * <p>
140 * Value is of type <code>String</code>. Value is a newline separated list of
141 * packagePrefix=abbreviation pairs. For example, a pattern of 'javax.management=&lt;JMX&gt;'
142 * will abbreviate 'javax.management.monitor' to '&lt;JMX&gt;.monitor'. A '#' at the beginning
143 * of a line disables an entry.
144 * </p>
145 *
146 * @since 3.7
147 */
148 public static final String APPEARANCE_PKG_NAME_ABBREVIATION_PATTERN_FOR_PKG_VIEW= "org.eclipse.jdt.ui.pkgNameAbbreviationPatternForPackagesView"; //$NON-NLS-1$
149
150 /**
151 * A named preference that controls if package name abbreviation is turned on or off.
152 * <p>
153 * Value is of type <code>Boolean</code>.
154 * </p>
155 *
156 * @see #APPEARANCE_PKG_NAME_ABBREVIATION_PATTERN_FOR_PKG_VIEW
157 * @since 3.7
158 */
159 public static final String APPEARANCE_ABBREVIATE_PACKAGE_NAMES= "org.eclipse.jdt.ui.abbreviatepackagenames"; //$NON-NLS-1$
160
161 /**
162 * A named preference that controls if empty inner packages are folded in
163 * the hierarchical mode of the package explorer.
164 * <p>
165 * Value is of type <code>Boolean</code>: if <code>true</code> empty
166 * inner packages are folded.
167 * </p>
168 * @since 2.1
169 */
170 public static final String APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER= "org.eclipse.jdt.ui.flatPackagesInPackageExplorer";//$NON-NLS-1$
171
172 /**
173 * A named preference that defines how member elements are ordered by the
174 * Java views using the <code>JavaElementSorter</code>.
175 * <p>
176 * Value is of type <code>String</code>: A comma separated list of the
177 * following entries. Each entry must be in the list, no duplication. List
178 * order defines the sort order.
179 * <ul>
180 * <li><b>T</b>: Types</li>
181 * <li><b>C</b>: Constructors</li>
182 * <li><b>I</b>: Initializers</li>
183 * <li><b>M</b>: Methods</li>
184 * <li><b>F</b>: Fields</li>
185 * <li><b>SI</b>: Static Initializers</li>
186 * <li><b>SM</b>: Static Methods</li>
187 * <li><b>SF</b>: Static Fields</li>
188 * </ul>
189 * </p>
190 * @since 2.1
191 */
192 public static final String APPEARANCE_MEMBER_SORT_ORDER= "outlinesortoption"; //$NON-NLS-1$
193
194 /**
195 * A named preference that defines how member elements are ordered by visibility in the
196 * Java views using the <code>JavaElementSorter</code>.
197 * <p>
198 * Value is of type <code>String</code>: A comma separated list of the
199 * following entries. Each entry must be in the list, no duplication. List
200 * order defines the sort order.
201 * <ul>
202 * <li><b>B</b>: Public</li>
203 * <li><b>V</b>: Private</li>
204 * <li><b>R</b>: Protected</li>
205 * <li><b>D</b>: Default</li>
206 * </ul>
207 * </p>
208 * @since 3.0
209 */
210 public static final String APPEARANCE_VISIBILITY_SORT_ORDER= "org.eclipse.jdt.ui.visibility.order"; //$NON-NLS-1$
211
212 /**
213 * A named preferences that controls if Java elements are also sorted by
214 * visibility.
215 * <p>
216 * Value is of type <code>Boolean</code>.
217 * </p>
218 * @since 3.0
219 */
220 public static final String APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER= "org.eclipse.jdt.ui.enable.visibility.order"; //$NON-NLS-1$
221
222 /**
223 * A named preference that controls category rendering of Java elements in the UI.
224 * <p>
225 * Value is of type <code>Boolean</code>: if <code>true</code> category is rendered
226 * </p>
227 * @since 3.2
228 */
229 public static final String APPEARANCE_CATEGORY= "org.eclipse.jdt.ui.category";//$NON-NLS-1$
230
231 /**
232 * The symbolic font name for the font used to display Javadoc
233 * (value <code>"org.eclipse.jdt.ui.javadocfont"</code>).
234 *
235 * @since 3.3
236 */
237 public final static String APPEARANCE_JAVADOC_FONT= "org.eclipse.jdt.ui.javadocfont"; //$NON-NLS-1$
238
239 /**
240 * A named preference that controls if prefix removal during setter/getter generation is turned on or off.
241 * <p>
242 * Value is of type <code>Boolean</code>.
243 * </p>
244 * @deprecated Use JavaCore preference store (key JavaCore.
245 * CODEASSIST_FIELD_PREFIXES and CODEASSIST_STATIC_FIELD_PREFIXES)
246 */
247 public static final String CODEGEN_USE_GETTERSETTER_PREFIX= "org.eclipse.jdt.ui.gettersetter.prefix.enable";//$NON-NLS-1$
248
249 /**
250 * A named preference that holds a list of prefixes to be removed from a local variable to compute setter
251 * and getter names.
252 * <p>
253 * Value is of type <code>String</code>: comma separated list of prefixed
254 * </p>
255 *
256 * @deprecated Use JavaCore preference store (key JavaCore.
257 * CODEASSIST_FIELD_PREFIXES and CODEASSIST_STATIC_FIELD_PREFIXES)
258 */
259 public static final String CODEGEN_GETTERSETTER_PREFIX= "org.eclipse.jdt.ui.gettersetter.prefix.list";//$NON-NLS-1$
260
261 /**
262 * A named preference that controls if suffix removal during setter/getter generation is turned on or off.
263 * <p>
264 * Value is of type <code>Boolean</code>.
265 * </p>
266 * @deprecated Use JavaCore preference store (key JavaCore.
267 * CODEASSIST_FIELD_PREFIXES and CODEASSIST_STATIC_FIELD_PREFIXES)
268 */
269 public static final String CODEGEN_USE_GETTERSETTER_SUFFIX= "org.eclipse.jdt.ui.gettersetter.suffix.enable";//$NON-NLS-1$
270
271 /**
272 * A named preference that holds a list of suffixes to be removed from a local variable to compute setter
273 * and getter names.
274 * <p>
275 * Value is of type <code>String</code>: comma separated list of suffixes
276 * </p>
277 * @deprecated Use setting from JavaCore preference store (key JavaCore.
278 * CODEASSIST_FIELD_SUFFIXES and CODEASSIST_STATIC_FIELD_SUFFIXES)
279 */
280 public static final String CODEGEN_GETTERSETTER_SUFFIX= "org.eclipse.jdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$
281
282 /**
283 * A named preference that controls whether the keyword "this" will be added
284 * automatically to field accesses in generated methods.
285 * <p>
286 * Value is of type <code>Boolean</code>.
287 * </p>
288 * @since 3.0
289 */
290 public static final String CODEGEN_KEYWORD_THIS= "org.eclipse.jdt.ui.keywordthis"; //$NON-NLS-1$
291
292 /**
293 * A named preference that controls whether automatically created getters which return a boolean
294 * field should start with "is" or should be prefixed with "get".
295 * <p>
296 * If <code>true</code> and if the field starts with "is" then the created getter name will not
297 * be additionally prefixed and "is" will not be part of the setter name.
298 * </p>
299 * <p>
300 * Value is of type <code>Boolean</code>.
301 * </p>
302 *
303 * @since 3.0
304 */
305 public static final String CODEGEN_IS_FOR_GETTERS= "org.eclipse.jdt.ui.gettersetter.use.is"; //$NON-NLS-1$
306
307
308 /**
309 * A named preference that defines the preferred variable names for exceptions in
310 * catch clauses.
311 * <p>
312 * Value is of type <code>String</code>.
313 * </p>
314 * @since 3.0
315 */
316 public static final String CODEGEN_EXCEPTION_VAR_NAME= "org.eclipse.jdt.ui.exception.name"; //$NON-NLS-1$
317
318 /**
319 * A named preference that controls if comment stubs will be added
320 * automatically to newly created types and methods.
321 * <p>
322 * Value is of type <code>Boolean</code>.
323 * </p>
324 * @since 2.1
325 */
326 public static final String CODEGEN_ADD_COMMENTS= "org.eclipse.jdt.ui.javadoc"; //$NON-NLS-1$
327
328 /**
329 * A named preference that controls if a comment stubs will be added
330 * automatically to newly created types and methods.
331 * <p>
332 * Value is of type <code>Boolean</code>.
333 * </p>
334 * @deprecated Use CODEGEN_ADD_COMMENTS instead (Name is more precise).
335 */
336 public static final String CODEGEN__JAVADOC_STUBS= CODEGEN_ADD_COMMENTS;
337
338 /**
339 * A named preference that controls if a non-javadoc comment gets added to methods generated via the
340 * "Override Methods" operation.
341 * <p>
342 * Value is of type <code>Boolean</code>.
343 * </p>
344 * @deprecated New code template story: user can
345 * specify the overriding method comment.
346 */
347 public static final String CODEGEN__NON_JAVADOC_COMMENTS= "org.eclipse.jdt.ui.seecomments"; //$NON-NLS-1$
348
349 /**
350 * A named preference that controls if a file comment gets added to newly created files.
351 * <p>
352 * Value is of type <code>Boolean</code>.
353 * </p>
354 * @deprecated New code template story: user can
355 * specify the new file code template.
356 */
357 public static final String CODEGEN__FILE_COMMENTS= "org.eclipse.jdt.ui.filecomments"; //$NON-NLS-1$
358
359 /**
360 * A named preference that controls whether to add a override annotation for newly created methods
361 * <p>
362 * Value is of type <code>Boolean</code>.
363 * </p>
364 * @since 3.1
365 */
366 public static final String CODEGEN_USE_OVERRIDE_ANNOTATION= "org.eclipse.jdt.ui.overrideannotation"; //$NON-NLS-1$
367
368 /**
369 * A named preference that holds a list of semicolon separated fully qualified type names with wild card characters.
370 * @since 3.0
371 */
372 public static final String TYPEFILTER_ENABLED= "org.eclipse.jdt.ui.typefilter.enabled"; //$NON-NLS-1$
373
374 /**
375 * A named preference that holds a list of semicolon separated fully qualified type names with wild card characters.
376 * @since 3.0
377 */
378 public static final String TYPEFILTER_DISABLED= "org.eclipse.jdt.ui.typefilter.disabled"; //$NON-NLS-1$
379
380
381 /**
382 * A named preference that holds a list of semicolon separated package names. The list specifies the import order used by
383 * the "Organize Imports" operation.
384 * <p>
385 * Value is of type <code>String</code>: semicolon separated list of package
386 * names
387 * </p>
388 */
389 public static final String ORGIMPORTS_IMPORTORDER= "org.eclipse.jdt.ui.importorder"; //$NON-NLS-1$
390
391 /**
392 * A named preference that specifies the number of imports added before a star-import declaration is used.
393 * <p>
394 * Value is of type <code>Integer</code>: positive value specifying the number of non star-import is used
395 * </p>
396 */
397 public static final String ORGIMPORTS_ONDEMANDTHRESHOLD= "org.eclipse.jdt.ui.ondemandthreshold"; //$NON-NLS-1$
398
399 /**
400 * A named preference that specifies the number of static imports added before a star-import declaration is used.
401 * <p>
402 * Value is of type <code>Integer</code>: positive value specifying the number of non star-import is used
403 * </p>
404 * @since 3.2
405 */
406 public static final String ORGIMPORTS_STATIC_ONDEMANDTHRESHOLD= "org.eclipse.jdt.ui.staticondemandthreshold"; //$NON-NLS-1$
407
408 /**
409 * A named preferences that controls if types that start with a lower case letters get added by the
410 * "Organize Import" operation.
411 * <p>
412 * Value is of type <code>Boolean</code>.
413 * </p>
414 */
415 public static final String ORGIMPORTS_IGNORELOWERCASE= "org.eclipse.jdt.ui.ignorelowercasenames"; //$NON-NLS-1$
416
417 /**
418 * A named preference that specifies whether children of a compilation unit are shown in the package explorer.
419 * <p>
420 * Value is of type <code>Boolean</code>.
421 * </p>
422 */
423 public static final String SHOW_CU_CHILDREN= "org.eclipse.jdt.ui.packages.cuchildren"; //$NON-NLS-1$
424
425 /**
426 * A named preference that controls whether the package explorer's selection is linked to the active editor.
427 * <p>
428 * Value is of type <code>Boolean</code>.
429 * </p>
430 * @deprecated Since 3.3. Not used anymore. Package view always restores with the last recently used setting.
431 */
432 public static final String LINK_PACKAGES_TO_EDITOR= "org.eclipse.jdt.ui.packages.linktoeditor"; //$NON-NLS-1$
433
434 /**
435 * A named preference that controls whether the hierarchy view's selection is linked to the active editor.
436 * <p>
437 * Value is of type <code>Boolean</code>.
438 * </p>
439 * @deprecated Since 3.3. Not used anymore. Type hierarchy view always restores with the last recently used setting.
440 */
441 public static final String LINK_TYPEHIERARCHY_TO_EDITOR= "org.eclipse.jdt.ui.packages.linktypehierarchytoeditor"; //$NON-NLS-1$
442
443 /**
444 * A named preference that controls whether the projects view's selection is
445 * linked to the active editor.
446 * <p>
447 * Value is of type <code>Boolean</code>.
448 * </p>
449 * @since 2.1
450 */
451 public static final String LINK_BROWSING_PROJECTS_TO_EDITOR= "org.eclipse.jdt.ui.browsing.projectstoeditor"; //$NON-NLS-1$
452
453 /**
454 * A named preference that controls whether the packages view's selection is
455 * linked to the active editor.
456 * <p>
457 * Value is of type <code>Boolean</code>.
458 * </p>
459 * @since 2.1
460 */
461 public static final String LINK_BROWSING_PACKAGES_TO_EDITOR= "org.eclipse.jdt.ui.browsing.packagestoeditor"; //$NON-NLS-1$
462
463
464
465 /**
466 * A named preference that controls whether the types view's selection is
467 * linked to the active editor.
468 * <p>
469 * Value is of type <code>Boolean</code>.
470 * </p>
471 * @since 2.1
472 */
473 public static final String LINK_BROWSING_TYPES_TO_EDITOR= "org.eclipse.jdt.ui.browsing.typestoeditor"; //$NON-NLS-1$
474
475 /**
476 * A named preference that controls whether the members view's selection is
477 * linked to the active editor.
478 * <p>
479 * Value is of type <code>Boolean</code>.
480 * </p>
481 * @since 2.1
482 */
483 public static final String LINK_BROWSING_MEMBERS_TO_EDITOR= "org.eclipse.jdt.ui.browsing.memberstoeditor"; //$NON-NLS-1$
484 /**
485 * A named preference that controls whether new projects are generated using source and output folder.
486 * <p>
487 * Value is of type <code>Boolean</code>. if <code>true</code> new projects are created with a source and
488 * output folder. If <code>false</code> source and output folder equals to the project.
489 * </p>
490 */
491 public static final String SRCBIN_FOLDERS_IN_NEWPROJ= "org.eclipse.jdt.ui.wizards.srcBinFoldersInNewProjects"; //$NON-NLS-1$
492
493 /**
494 * A named preference that specifies the source folder name used when creating a new Java project. Value is inactive
495 * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
496 * <p>
497 * Value is of type <code>String</code>.
498 * </p>
499 *
500 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
501 */
502 public static final String SRCBIN_SRCNAME= "org.eclipse.jdt.ui.wizards.srcBinFoldersSrcName"; //$NON-NLS-1$
503
504 /**
505 * A named preference that specifies the output folder name used when creating a new Java project. Value is inactive
506 * if <code>SRCBIN_FOLDERS_IN_NEWPROJ</code> is set to <code>false</code>.
507 * <p>
508 * Value is of type <code>String</code>.
509 * </p>
510 *
511 * @see #SRCBIN_FOLDERS_IN_NEWPROJ
512 */
513 public static final String SRCBIN_BINNAME= "org.eclipse.jdt.ui.wizards.srcBinFoldersBinName"; //$NON-NLS-1$
514
515 /**
516 * A named preference that holds a list of possible JRE libraries used by the New Java Project wizard. A library
517 * consists of a description and an arbitrary number of <code>IClasspathEntry</code>s, that will represent the
518 * JRE on the new project's class path.
519 * <p>
520 * Value is of type <code>String</code>: a semicolon separated list of encoded JRE libraries.
521 * <code>NEWPROJECT_JRELIBRARY_INDEX</code> defines the currently used library. Clients
522 * should use the method <code>encodeJRELibrary</code> to encode a JRE library into a string
523 * and the methods <code>decodeJRELibraryDescription(String)</code> and <code>
524 * decodeJRELibraryClasspathEntries(String)</code> to decode the description and the array
525 * of class path entries from an encoded string.
526 * </p>
527 *
528 * @see #NEWPROJECT_JRELIBRARY_INDEX
529 * @see #encodeJRELibrary(String, IClasspathEntry[])
530 * @see #decodeJRELibraryDescription(String)
531 * @see #decodeJRELibraryClasspathEntries(String)
532 */
533 public static final String NEWPROJECT_JRELIBRARY_LIST= "org.eclipse.jdt.ui.wizards.jre.list"; //$NON-NLS-1$
534
535 /**
536 * A named preferences that specifies the current active JRE library.
537 * <p>
538 * Value is of type <code>Integer</code>: an index into the list of possible JRE libraries.
539 * </p>
540 *
541 * @see #NEWPROJECT_JRELIBRARY_LIST
542 */
543 public static final String NEWPROJECT_JRELIBRARY_INDEX= "org.eclipse.jdt.ui.wizards.jre.index"; //$NON-NLS-1$
544
545 /**
546 * A named preference that controls if a new type hierarchy gets opened in a
547 * new type hierarchy perspective or inside the type hierarchy view part.
548 * <p>
549 * Value is of type <code>String</code>: possible values are <code>
550 * OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE</code> or <code>
551 * OPEN_TYPE_HIERARCHY_IN_VIEW_PART</code>.
552 * </p>
553 *
554 * @see #OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE
555 * @see #OPEN_TYPE_HIERARCHY_IN_VIEW_PART
556 */
557 public static final String OPEN_TYPE_HIERARCHY= "org.eclipse.jdt.ui.openTypeHierarchy"; //$NON-NLS-1$
558
559 /**
560 * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
561 *
562 * @see #OPEN_TYPE_HIERARCHY
563 */
564 public static final String OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE= "perspective"; //$NON-NLS-1$
565
566 /**
567 * A string value used by the named preference <code>OPEN_TYPE_HIERARCHY</code>.
568 *
569 * @see #OPEN_TYPE_HIERARCHY
570 */
571 public static final String OPEN_TYPE_HIERARCHY_IN_VIEW_PART= "viewPart"; //$NON-NLS-1$
572
573 /**
574 * A named preference that controls the behavior when double clicking on a container in the packages view.
575 * <p>
576 * Value is of type <code>String</code>: possible values are <code>
577 * DOUBLE_CLICK_GOES_INTO</code> or <code>
578 * DOUBLE_CLICK_EXPANDS</code>.
579 * </p>
580 *
581 * @see #DOUBLE_CLICK_EXPANDS
582 * @see #DOUBLE_CLICK_GOES_INTO
583 */
584 public static final String DOUBLE_CLICK= "packageview.doubleclick"; //$NON-NLS-1$
585
586 /**
587 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
588 *
589 * @see #DOUBLE_CLICK
590 */
591 public static final String DOUBLE_CLICK_GOES_INTO= "packageview.gointo"; //$NON-NLS-1$
592
593 /**
594 * A string value used by the named preference <code>DOUBLE_CLICK</code>.
595 *
596 * @see #DOUBLE_CLICK
597 */
598 public static final String DOUBLE_CLICK_EXPANDS= "packageview.doubleclick.expands"; //$NON-NLS-1$
599
600 /**
601 * A named preference that controls whether Java views update their presentation while editing or when saving the
602 * content of an editor.
603 * <p>
604 * Value is of type <code>String</code>: possible values are <code>
605 * UPDATE_ON_SAVE</code> or <code>
606 * UPDATE_WHILE_EDITING</code>.
607 * </p>
608 *
609 * @see #UPDATE_ON_SAVE
610 * @see #UPDATE_WHILE_EDITING
611 * @deprecated Since 3.0, views now always update while editing
612 */
613 public static final String UPDATE_JAVA_VIEWS= "JavaUI.update"; //$NON-NLS-1$
614
615 /**
616 * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
617 *
618 * @see #UPDATE_JAVA_VIEWS
619 * @deprecated Since 3.0, views now always update while editing
620 */
621 public static final String UPDATE_ON_SAVE= "JavaUI.update.onSave"; //$NON-NLS-1$
622
623 /**
624 * A string value used by the named preference <code>UPDATE_JAVA_VIEWS</code>
625 *
626 * @see #UPDATE_JAVA_VIEWS
627 * @deprecated Since 3.0, views now always update while editing
628 */
629 public static final String UPDATE_WHILE_EDITING= "JavaUI.update.whileEditing"; //$NON-NLS-1$
630
631 /**
632 * A named preference that holds the path of the Javadoc command used by the Javadoc creation wizard.
633 * <p>
634 * Value is of type <code>String</code>.
635 * </p>
636 */
637 public static final String JAVADOC_COMMAND= "command"; //$NON-NLS-1$
638
639 /**
640 * A named preference that defines whether the hint to make hover sticky should be shown.
641 *
642 * @see JavaUI
643 * @since 3.0
644 * @deprecated As of 3.3, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_SHOW_TEXT_HOVER_AFFORDANCE}
645 */
646 public static final String EDITOR_SHOW_TEXT_HOVER_AFFORDANCE= "PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE"; //$NON-NLS-1$
647
648 /**
649 * A named preference that defines the key for the hover modifiers.
650 *
651 * @see JavaUI
652 * @since 2.1
653 */
654 public static final String EDITOR_TEXT_HOVER_MODIFIERS= "hoverModifiers"; //$NON-NLS-1$
655
656 /**
657 * A named preference that defines the key for the hover modifier state masks.
658 * The value is only used if the value of <code>EDITOR_TEXT_HOVER_MODIFIERS</code>
659 * cannot be resolved to valid SWT modifier bits.
660 *
661 * @see JavaUI
662 * @see #EDITOR_TEXT_HOVER_MODIFIERS
663 * @since 2.1.1
664 */
665 public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS= "hoverModifierMasks"; //$NON-NLS-1$
666
667 /**
668 * The id of the best match hover contributed for extension point
669 * <code>javaEditorTextHovers</code>.
670 *
671 * @since 2.1
672 */
673 public static final String ID_BESTMATCH_HOVER= "org.eclipse.jdt.ui.BestMatchHover"; //$NON-NLS-1$
674
675 /**
676 * The id of the source code hover contributed for extension point
677 * <code>javaEditorTextHovers</code>.
678 *
679 * @since 2.1
680 */
681 public static final String ID_SOURCE_HOVER= "org.eclipse.jdt.ui.JavaSourceHover"; //$NON-NLS-1$
682
683 /**
684 * The id of the javadoc hover contributed for extension point
685 * <code>javaEditorTextHovers</code>.
686 *
687 * @since 2.1
688 */
689 public static final String ID_JAVADOC_HOVER= "org.eclipse.jdt.ui.JavadocHover"; //$NON-NLS-1$
690
691 /**
692 * The id of the problem hover contributed for extension point
693 * <code>javaEditorTextHovers</code>.
694 *
695 * @since 2.1
696 * @deprecated as of 3.0, this hover is no longer available
697 */
698 public static final String ID_PROBLEM_HOVER= "org.eclipse.jdt.ui.ProblemHover"; //$NON-NLS-1$
699
700 /**
701 * A named preference that controls whether bracket matching highlighting is turned on or off.
702 * <p>
703 * Value is of type <code>Boolean</code>.
704 * </p>
705 */
706 public final static String EDITOR_MATCHING_BRACKETS= "matchingBrackets"; //$NON-NLS-1$
707
708 /**
709 * A named preference that controls whether bracket at caret location is highlighted or not.
710 * <p>
711 * Value is of type <code>Boolean</code>.
712 * </p>
713 *
714 * @since 3.8
715 */
716 public final static String EDITOR_HIGHLIGHT_BRACKET_AT_CARET_LOCATION= "highlightBracketAtCaretLocation"; //$NON-NLS-1$
717
718 /**
719 * A named preference that controls whether enclosing bracket matching highlighting is turned on
720 * or off.
721 * <p>
722 * Value is of type <code>Boolean</code>.
723 * </p>
724 *
725 * @since 3.8
726 */
727 public final static String EDITOR_ENCLOSING_BRACKETS= "enclosingBrackets"; //$NON-NLS-1$
728
729 /**
730 * A named preference that holds the color used to highlight matching brackets.
731 * <p>
732 * Value is of type <code>String</code>. A RGB color value encoded as a string
733 * using class <code>PreferenceConverter</code>
734 * </p>
735 *
736 * @see org.eclipse.jface.resource.StringConverter
737 * @see org.eclipse.jface.preference.PreferenceConverter
738 */
739 public final static String EDITOR_MATCHING_BRACKETS_COLOR= "matchingBracketsColor"; //$NON-NLS-1$
740
741 /**
742 * A named preference that controls whether the current line highlighting is turned on or off.
743 * <p>
744 * Value is of type <code>Boolean</code>.
745 * </p>
746 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
747 */
748 public final static String EDITOR_CURRENT_LINE= "currentLine"; //$NON-NLS-1$
749
750 /**
751 * A named preference that holds the color used to highlight the current line.
752 * <p>
753 * Value is of type <code>String</code>. A RGB color value encoded as a string
754 * using class <code>PreferenceConverter</code>
755 * </p>
756 *
757 * @see org.eclipse.jface.resource.StringConverter
758 * @see org.eclipse.jface.preference.PreferenceConverter
759 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
760 */
761 public final static String EDITOR_CURRENT_LINE_COLOR= "currentLineColor"; //$NON-NLS-1$
762
763 /**
764 * A named preference that controls whether the print margin is turned on or off.
765 * <p>
766 * Value is of type <code>Boolean</code>.
767 * </p>
768 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
769 */
770 public final static String EDITOR_PRINT_MARGIN= "printMargin"; //$NON-NLS-1$
771
772 /**
773 * A named preference that holds the color used to render the print margin.
774 * <p>
775 * Value is of type <code>String</code>. A RGB color value encoded as a string
776 * using class <code>PreferenceConverter</code>
777 * </p>
778 *
779 * @see org.eclipse.jface.resource.StringConverter
780 * @see org.eclipse.jface.preference.PreferenceConverter
781 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
782 */
783 public final static String EDITOR_PRINT_MARGIN_COLOR= "printMarginColor"; //$NON-NLS-1$
784
785 /**
786 * Print margin column. Integer value.
787 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
788 */
789 public final static String EDITOR_PRINT_MARGIN_COLUMN= "printMarginColumn"; //$NON-NLS-1$
790
791 /**
792 * A named preference that holds the color used for the find/replace scope.
793 * <p>
794 * Value is of type <code>String</code>. A RGB color value encoded as a string
795 * using class <code>PreferenceConverter</code>
796 * </p>
797 *
798 * @see org.eclipse.jface.resource.StringConverter
799 * @see org.eclipse.jface.preference.PreferenceConverter
800 * @deprecated As of 3.2, use {@link AbstractTextEditor#PREFERENCE_COLOR_FIND_SCOPE} instead}
801 */
802 public final static String EDITOR_FIND_SCOPE_COLOR= AbstractTextEditor.PREFERENCE_COLOR_FIND_SCOPE;
803
804 /**
805 * A named preference that specifies if the editor uses spaces for tabs.
806 * <p>
807 * Value is of type <code>Boolean</code>. If <code>true</code>spaces instead of tabs are used
808 * in the editor. If <code>false</code> the editor inserts a tab character when pressing the tab
809 * key.
810 * </p>
811 * @deprecated As of 3.1 replaced by the formatter setting defined in {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_TAB_CHAR}
812 */
813 public final static String EDITOR_SPACES_FOR_TABS= "spacesForTabs"; //$NON-NLS-1$
814
815 /**
816 * A named preference that holds the number of spaces used per tab in the editor.
817 * <p>
818 * Value is of type <code>Integer</code>: positive integer value specifying the number of
819 * spaces per tab.
820 * </p>
821 * @deprecated As of 3.0 replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_TAB_WIDTH}
822 */
823 public final static String EDITOR_TAB_WIDTH= "org.eclipse.jdt.ui.editor.tab.width"; //$NON-NLS-1$
824
825 /**
826 * A named preference that controls whether the outline view selection
827 * should stay in sync with with the element at the current cursor position.
828 * <p>
829 * Value is of type <code>Boolean</code>.
830 * </p>
831 * @since 2.1
832 */
833 public final static String EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE= "JavaEditor.SyncOutlineOnCursorMove"; //$NON-NLS-1$
834
835 /**
836 * A named preference that controls if correction indicators are shown in the UI.
837 * <p>
838 * Value is of type <code>Boolean</code>.
839 * </p>
840 */
841 public final static String EDITOR_CORRECTION_INDICATION= "JavaEditor.ShowTemporaryProblem"; //$NON-NLS-1$
842
843 /**
844 * A named preference that controls whether the editor shows problem indicators in text (squiggly lines).
845 * <p>
846 * Value is of type <code>Boolean</code>.
847 * </p>
848 *
849 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
850 */
851 public final static String EDITOR_PROBLEM_INDICATION= "problemIndication"; //$NON-NLS-1$
852
853 /**
854 * A named preference that holds the color used to render problem indicators.
855 * <p>
856 * Value is of type <code>String</code>. A RGB color value encoded as a string
857 * using class <code>PreferenceConverter</code>
858 * </p>
859 *
860 * @see #EDITOR_PROBLEM_INDICATION
861 * @see org.eclipse.jface.resource.StringConverter
862 * @see org.eclipse.jface.preference.PreferenceConverter
863 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
864 */
865 public final static String EDITOR_PROBLEM_INDICATION_COLOR= "problemIndicationColor"; //$NON-NLS-1$
866
867 /**
868 * A named preference that controls whether the editor shows warning indicators in text (squiggly lines).
869 * <p>
870 * Value is of type <code>Boolean</code>.
871 * </p>
872 * @since 2.1
873 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
874 */
875 public final static String EDITOR_WARNING_INDICATION= "warningIndication"; //$NON-NLS-1$
876
877 /**
878 * A named preference that holds the color used to render warning indicators.
879 * <p>
880 * Value is of type <code>String</code>. A RGB color value encoded as a string
881 * using class <code>PreferenceConverter</code>
882 * </p>
883 *
884 * @see #EDITOR_WARNING_INDICATION
885 * @see org.eclipse.jface.resource.StringConverter
886 * @see org.eclipse.jface.preference.PreferenceConverter
887 * @since 2.1
888 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
889 */
890 public final static String EDITOR_WARNING_INDICATION_COLOR= "warningIndicationColor"; //$NON-NLS-1$
891
892 /**
893 * A named preference that controls whether the editor shows task indicators in text (squiggly lines).
894 * <p>
895 * Value is of type <code>Boolean</code>.
896 * </p>
897 * @since 2.1
898 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
899 */
900 public final static String EDITOR_TASK_INDICATION= "taskIndication"; //$NON-NLS-1$
901
902 /**
903 * A named preference that holds the color used to render task indicators.
904 * <p>
905 * Value is of type <code>String</code>. A RGB color value encoded as a string
906 * using class <code>PreferenceConverter</code>
907 * </p>
908 *
909 * @see #EDITOR_TASK_INDICATION
910 * @see org.eclipse.jface.resource.StringConverter
911 * @see org.eclipse.jface.preference.PreferenceConverter
912 * @since 2.1
913 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
914 */
915 public final static String EDITOR_TASK_INDICATION_COLOR= "taskIndicationColor"; //$NON-NLS-1$
916
917 /**
918 * A named preference that controls whether the editor shows bookmark
919 * indicators in text (squiggly lines).
920 * <p>
921 * Value is of type <code>Boolean</code>.
922 * </p>
923 * @since 2.1
924 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
925 */
926 public final static String EDITOR_BOOKMARK_INDICATION= "bookmarkIndication"; //$NON-NLS-1$
927
928 /**
929 * A named preference that holds the color used to render bookmark indicators.
930 * <p>
931 * Value is of type <code>String</code>. A RGB color value encoded as a string
932 * using class <code>PreferenceConverter</code>
933 * </p>
934 *
935 * @see #EDITOR_BOOKMARK_INDICATION
936 * @see org.eclipse.jface.resource.StringConverter
937 * @see org.eclipse.jface.preference.PreferenceConverter
938 * @since 2.1
939 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
940 */
941 public final static String EDITOR_BOOKMARK_INDICATION_COLOR= "bookmarkIndicationColor"; //$NON-NLS-1$
942
943 /**
944 * A named preference that controls whether the editor shows search
945 * indicators in text (squiggly lines).
946 * <p>
947 * Value is of type <code>Boolean</code>.
948 * </p>
949 * @since 2.1
950 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
951 */
952 public final static String EDITOR_SEARCH_RESULT_INDICATION= "searchResultIndication"; //$NON-NLS-1$
953
954 /**
955 * A named preference that holds the color used to render search indicators.
956 * <p>
957 * Value is of type <code>String</code>. A RGB color value encoded as a string
958 * using class <code>PreferenceConverter</code>
959 * </p>
960 *
961 * @see #EDITOR_SEARCH_RESULT_INDICATION
962 * @see org.eclipse.jface.resource.StringConverter
963 * @see org.eclipse.jface.preference.PreferenceConverter
964 * @since 2.1
965 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
966 */
967 public final static String EDITOR_SEARCH_RESULT_INDICATION_COLOR= "searchResultIndicationColor"; //$NON-NLS-1$
968
969 /**
970 * A named preference that controls whether the editor shows unknown
971 * indicators in text (squiggly lines).
972 * <p>
973 * Value is of type <code>Boolean</code>.
974 * </p>
975 * @since 2.1
976 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
977 */
978 public final static String EDITOR_UNKNOWN_INDICATION= "othersIndication"; //$NON-NLS-1$
979
980 /**
981 * A named preference that holds the color used to render unknown
982 * indicators.
983 * <p>
984 * Value is of type <code>String</code>. A RGB color value encoded as a string
985 * using class <code>PreferenceConverter</code>
986 * </p>
987 *
988 * @see #EDITOR_UNKNOWN_INDICATION
989 * @see org.eclipse.jface.resource.StringConverter
990 * @see org.eclipse.jface.preference.PreferenceConverter
991 * @since 2.1
992 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
993 */
994 public final static String EDITOR_UNKNOWN_INDICATION_COLOR= "othersIndicationColor"; //$NON-NLS-1$
995
996 /**
997 * A named preference that controls whether the overview ruler shows error
998 * indicators.
999 * <p>
1000 * Value is of type <code>Boolean</code>.
1001 * </p>
1002 * @since 2.1
1003 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
1004 */
1005 public final static String EDITOR_ERROR_INDICATION_IN_OVERVIEW_RULER= "errorIndicationInOverviewRuler"; //$NON-NLS-1$
1006
1007 /**
1008 * A named preference that controls whether the overview ruler shows warning
1009 * indicators.
1010 * <p>
1011 * Value is of type <code>Boolean</code>.
1012 * </p>
1013 * @since 2.1
1014 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
1015 */
1016 public final static String EDITOR_WARNING_INDICATION_IN_OVERVIEW_RULER= "warningIndicationInOverviewRuler"; //$NON-NLS-1$
1017
1018 /**
1019 * A named preference that controls whether the overview ruler shows task
1020 * indicators.
1021 * <p>
1022 * Value is of type <code>Boolean</code>.
1023 * </p>
1024 * @since 2.1
1025 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
1026 */
1027 public final static String EDITOR_TASK_INDICATION_IN_OVERVIEW_RULER= "taskIndicationInOverviewRuler"; //$NON-NLS-1$
1028
1029 /**
1030 * A named preference that controls whether the overview ruler shows
1031 * bookmark indicators.
1032 * <p>
1033 * Value is of type <code>Boolean</code>.
1034 * </p>
1035 * @since 2.1
1036 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
1037 */
1038 public final static String EDITOR_BOOKMARK_INDICATION_IN_OVERVIEW_RULER= "bookmarkIndicationInOverviewRuler"; //$NON-NLS-1$
1039
1040 /**
1041 * A named preference that controls whether the overview ruler shows
1042 * search result indicators.
1043 * <p>
1044 * Value is of type <code>Boolean</code>.
1045 * </p>
1046 * @since 2.1
1047 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
1048 */
1049 public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER= "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
1050
1051 /**
1052 * A named preference that controls whether the overview ruler shows
1053 * unknown indicators.
1054 * <p>
1055 * Value is of type <code>Boolean</code>.
1056 * </p>
1057 * @since 2.1
1058 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.MarkerAnnotationPreferences}
1059 */
1060 public final static String EDITOR_UNKNOWN_INDICATION_IN_OVERVIEW_RULER= "othersIndicationInOverviewRuler"; //$NON-NLS-1$
1061
1062 /**
1063 * A named preference that controls whether the 'close strings' feature
1064 * is enabled.
1065 * <p>
1066 * Value is of type <code>Boolean</code>.
1067 * </p>
1068 * @since 2.1
1069 */
1070 public final static String EDITOR_CLOSE_STRINGS= "closeStrings"; //$NON-NLS-1$
1071
1072 /**
1073 * A named preference that controls whether the 'wrap strings' feature is
1074 * enabled.
1075 * <p>
1076 * Value is of type <code>Boolean</code>.
1077 * </p>
1078 * @since 2.1
1079 */
1080 public final static String EDITOR_WRAP_STRINGS= "wrapStrings"; //$NON-NLS-1$
1081
1082 /**
1083 * A named preference that controls whether the 'escape strings' feature is
1084 * enabled.
1085 * <p>
1086 * Value is of type <code>Boolean</code>.
1087 * </p>
1088 * @since 3.0
1089 */
1090 public final static String EDITOR_ESCAPE_STRINGS= "escapeStrings"; //$NON-NLS-1$
1091
1092 /**
1093 * A named preference that controls whether the 'close brackets' feature is
1094 * enabled.
1095 * <p>
1096 * Value is of type <code>Boolean</code>.
1097 * </p>
1098 * @since 2.1
1099 */
1100 public final static String EDITOR_CLOSE_BRACKETS= "closeBrackets"; //$NON-NLS-1$
1101
1102 /**
1103 * A named preference that controls whether the 'close braces' feature is
1104 * enabled.
1105 * <p>
1106 * Value is of type <code>Boolean</code>.
1107 * </p>
1108 * @since 2.1
1109 */
1110 public final static String EDITOR_CLOSE_BRACES= "closeBraces"; //$NON-NLS-1$
1111
1112 /**
1113 * A named preference that controls whether the 'close java docs' feature is
1114 * enabled.
1115 * <p>
1116 * Value is of type <code>Boolean</code>.
1117 * </p>
1118 * @since 2.1
1119 */
1120 public final static String EDITOR_CLOSE_JAVADOCS= "closeJavaDocs"; //$NON-NLS-1$
1121
1122 /**
1123 * A named preference that controls whether the 'add JavaDoc tags' feature
1124 * is enabled.
1125 * <p>
1126 * Value is of type <code>Boolean</code>.
1127 * </p>
1128 * @since 2.1
1129 */
1130 public final static String EDITOR_ADD_JAVADOC_TAGS= "addJavaDocTags"; //$NON-NLS-1$
1131
1132 /**
1133 * A named preference that controls whether the 'format Javadoc tags'
1134 * feature is enabled.
1135 * <p>
1136 * Value is of type <code>Boolean</code>.
1137 * </p>
1138 * @since 2.1
1139 */
1140 public final static String EDITOR_FORMAT_JAVADOCS= "autoFormatJavaDocs"; //$NON-NLS-1$
1141
1142 /**
1143 * A named preference that controls whether the 'smart paste' feature is
1144 * enabled.
1145 * <p>
1146 * Value is of type <code>Boolean</code>.
1147 * </p>
1148 * @since 2.1
1149 */
1150 public final static String EDITOR_SMART_PASTE= "smartPaste"; //$NON-NLS-1$
1151
1152 /**
1153 * A named preference that controls whether on Enter key the indentation should be smart or the same as previous line.
1154 * <p>
1155 * Value is of type <code>Boolean</code>.
1156 * </p>
1157 * @since 3.7
1158 */
1159 public final static String EDITOR_SMART_INDENT_AFTER_NEWLINE= "smartIndentAfterNewline"; //$NON-NLS-1$
1160
1161 /**
1162 * A named preference that controls whether 'paste' should update the imports.
1163 * <p>
1164 * Value is of type <code>Boolean</code>.
1165 * </p>
1166 * @since 3.0
1167 */
1168 public final static String EDITOR_IMPORTS_ON_PASTE= "importsOnPaste"; //$NON-NLS-1$
1169
1170 /**
1171 * A named preference that controls whether the 'smart home-end' feature is
1172 * enabled.
1173 * <p>
1174 * Value is of type <code>Boolean</code>.
1175 * </p>
1176 * @since 2.1
1177 * @deprecated as of 3.3 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants#EDITOR_SMART_HOME_END}
1178 */
1179 public final static String EDITOR_SMART_HOME_END= AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END;
1180
1181 /**
1182 * A named preference that controls whether the 'sub-word navigation' feature is
1183 * enabled.
1184 * <p>
1185 * Value is of type <code>Boolean</code>.
1186 * </p>
1187 * @since 3.0
1188 */
1189 public final static String EDITOR_SUB_WORD_NAVIGATION= "subWordNavigation"; //$NON-NLS-1$
1190
1191 /**
1192 * A named preference that controls if temporary problems are evaluated and shown in the UI.
1193 * <p>
1194 * Value is of type <code>Boolean</code>.
1195 * </p>
1196 */
1197 public final static String EDITOR_EVALUTE_TEMPORARY_PROBLEMS= "handleTemporaryProblems"; //$NON-NLS-1$
1198
1199 /**
1200 * A named preference that controls if the overview ruler is shown in the UI.
1201 * <p>
1202 * Value is of type <code>Boolean</code>.
1203 * </p>
1204 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
1205 */
1206 public final static String EDITOR_OVERVIEW_RULER= "overviewRuler"; //$NON-NLS-1$
1207
1208 /**
1209 * A named preference that controls if the line number ruler is shown in the UI.
1210 * <p>
1211 * Value is of type <code>Boolean</code>.
1212 * </p>
1213 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
1214 */
1215 public final static String EDITOR_LINE_NUMBER_RULER= "lineNumberRuler"; //$NON-NLS-1$
1216
1217 /**
1218 * A named preference that holds the color used to render line numbers inside the line number ruler.
1219 * <p>
1220 * Value is of type <code>String</code>. A RGB color value encoded as a string
1221 * using class <code>PreferenceConverter</code>
1222 * </p>
1223 *
1224 * @see org.eclipse.jface.resource.StringConverter
1225 * @see org.eclipse.jface.preference.PreferenceConverter
1226 * @see #EDITOR_LINE_NUMBER_RULER
1227 * @deprecated as of 3.0 replaced by {@link org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants}
1228 */
1229 public final static String EDITOR_LINE_NUMBER_RULER_COLOR= "lineNumberColor"; //$NON-NLS-1$
1230
1231 /**
1232 * A named preference that holds the color used to render linked positions inside code templates.
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 * @deprecated not used any longer as the linked positions are displayed as annotations
1239 *
1240 * @see org.eclipse.jface.resource.StringConverter
1241 * @see org.eclipse.jface.preference.PreferenceConverter
1242 */
1243 public final static String EDITOR_LINKED_POSITION_COLOR= "linkedPositionColor"; //$NON-NLS-1$
1244
1245 /**
1246 * A named preference that holds the color used as the text foreground.
1247 * This value has no effect if the system default color is used.
1248 * <p>
1249 * Value is of type <code>String</code>. A RGB color value encoded as a string
1250 * using class <code>PreferenceConverter</code>
1251 * </p>
1252 *
1253 * @see org.eclipse.jface.resource.StringConverter
1254 * @see org.eclipse.jface.preference.PreferenceConverter
1255 * @deprecated As of 3.1, replaced by {@link AbstractTextEditor#PREFERENCE_COLOR_FOREGROUND}
1256 */
1257 public final static String EDITOR_FOREGROUND_COLOR= AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND;
1258
1259 /**
1260 * A named preference that describes if the system default foreground color
1261 * is used as the text foreground.
1262 * <p>
1263 * Value is of type <code>Boolean</code>.
1264 * </p>
1265 * @deprecated As of 3.1, replaced by {@link AbstractTextEditor#PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT}
1266 */
1267 public final static String EDITOR_FOREGROUND_DEFAULT_COLOR= AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT;
1268
1269 /**
1270 * A named preference that holds the color used as the text background.
1271 * This value has no effect if the system default color is used.
1272 * <p>
1273 * Value is of type <code>String</code>. A RGB color value encoded as a string
1274 * using class <code>PreferenceConverter</code>
1275 * </p>
1276 *
1277 * @see org.eclipse.jface.resource.StringConverter
1278 * @see org.eclipse.jface.preference.PreferenceConverter
1279 * @deprecated As of 3.1, replaced by {@link AbstractTextEditor#PREFERENCE_COLOR_BACKGROUND}
1280 */
1281 public final static String EDITOR_BACKGROUND_COLOR= AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND;
1282
1283 /**
1284 * A named preference that describes if the system default background color
1285 * is used as the text background.
1286 * <p>
1287 * Value is of type <code>Boolean</code>.
1288 * </p>
1289 * @deprecated As of 3.1, replaced by {@link AbstractTextEditor#PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT}
1290 */
1291 public final static String EDITOR_BACKGROUND_DEFAULT_COLOR= AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT;
1292
1293 /**
1294 * Preference key suffix for bold text style preference keys.
1295 *
1296 * @since 2.1
1297 */
1298 public static final String EDITOR_BOLD_SUFFIX= "_bold"; //$NON-NLS-1$
1299
1300 /**
1301 * Preference key suffix for italic text style preference keys.
1302 *
1303 * @since 3.0
1304 */
1305 public static final String EDITOR_ITALIC_SUFFIX= "_italic"; //$NON-NLS-1$
1306
1307 /**
1308 * Preference key suffix for strikethrough text style preference keys.
1309 *
1310 * @since 3.1
1311 */
1312 public static final String EDITOR_STRIKETHROUGH_SUFFIX= "_strikethrough"; //$NON-NLS-1$
1313
1314 /**
1315 * Preference key suffix for underline text style preference keys.
1316 *
1317 * @since 3.1
1318 */
1319 public static final String EDITOR_UNDERLINE_SUFFIX= "_underline"; //$NON-NLS-1$
1320
1321 /**
1322 * A named preference that holds the color used to render multi-line comments.
1323 * <p>
1324 * Value is of type <code>String</code>. A RGB color value encoded as a string
1325 * using class <code>PreferenceConverter</code>
1326 * </p>
1327 *
1328 * @see org.eclipse.jface.resource.StringConverter
1329 * @see org.eclipse.jface.preference.PreferenceConverter
1330 */
1331 public final static String EDITOR_MULTI_LINE_COMMENT_COLOR= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT;
1332
1333 /**
1334 * The symbolic font name for the Java editor text font
1335 * (value <code>"org.eclipse.jdt.ui.editors.textfont"</code>).
1336 *
1337 * @since 2.1
1338 */
1339 public final static String EDITOR_TEXT_FONT= "org.eclipse.jdt.ui.editors.textfont"; //$NON-NLS-1$
1340
1341 /**
1342 * A named preference that controls whether multi-line comments are rendered in bold.
1343 * <p>
1344 * Value is of type <code>Boolean</code>. If <code>true</code> multi-line comments are rendered
1345 * in bold. If <code>false</code> the are rendered using no font style attribute.
1346 * </p>
1347 */
1348 public final static String EDITOR_MULTI_LINE_COMMENT_BOLD= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
1349
1350 /**
1351 * A named preference that controls whether multi-line comments are rendered in italic.
1352 * <p>
1353 * Value is of type <code>Boolean</code>. If <code>true</code> multi-line comments are rendered
1354 * in italic. If <code>false</code> the are rendered using no italic font style attribute.
1355 * </p>
1356 *
1357 * @since 3.0
1358 */
1359 public final static String EDITOR_MULTI_LINE_COMMENT_ITALIC= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + EDITOR_ITALIC_SUFFIX;
1360
1361 /**
1362 * A named preference that controls whether multi-line comments are rendered in strikethrough.
1363 * <p>
1364 * Value is of type <code>Boolean</code>. If <code>true</code> multi-line comments are rendered
1365 * in strikethrough. If <code>false</code> the are rendered using no strikethrough font style attribute.
1366 * </p>
1367 *
1368 * @since 3.1
1369 */
1370 public final static String EDITOR_MULTI_LINE_COMMENT_STRIKETHROUGH= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + EDITOR_STRIKETHROUGH_SUFFIX;
1371
1372 /**
1373 * A named preference that controls whether multi-line comments are rendered in underline.
1374 * <p>
1375 * Value is of type <code>Boolean</code>. If <code>true</code> multi-line comments are rendered
1376 * in underline. If <code>false</code> the are rendered using no underline font style attribute.
1377 * </p>
1378 *
1379 * @since 3.1
1380 */
1381 public final static String EDITOR_MULTI_LINE_COMMENT_UNDERLINE= IJavaColorConstants.JAVA_MULTI_LINE_COMMENT + EDITOR_UNDERLINE_SUFFIX;
1382
1383 /**
1384 * A named preference that holds the color used to render single line comments.
1385 * <p>
1386 * Value is of type <code>String</code>. A RGB color value encoded as a string
1387 * using class <code>PreferenceConverter</code>
1388 * </p>
1389 *
1390 * @see org.eclipse.jface.resource.StringConverter
1391 * @see org.eclipse.jface.preference.PreferenceConverter
1392 */
1393 public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT;
1394
1395 /**
1396 * A named preference that controls whether single line comments are rendered in bold.
1397 * <p>
1398 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1399 * in bold. If <code>false</code> the are rendered using no font style attribute.
1400 * </p>
1401 */
1402 public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
1403
1404 /**
1405 * A named preference that controls whether single line comments are rendered in italic.
1406 * <p>
1407 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1408 * in italic. If <code>false</code> the are rendered using no italic font style attribute.
1409 * </p>
1410 *
1411 * @since 3.0
1412 */
1413 public final static String EDITOR_SINGLE_LINE_COMMENT_ITALIC= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + EDITOR_ITALIC_SUFFIX;
1414
1415 /**
1416 * A named preference that controls whether single line comments are rendered in strikethrough.
1417 * <p>
1418 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1419 * in strikethrough. If <code>false</code> the are rendered using no italic font style attribute.
1420 * </p>
1421 *
1422 * @since 3.1
1423 */
1424 public final static String EDITOR_SINGLE_LINE_COMMENT_STRIKETHROUGH= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + EDITOR_STRIKETHROUGH_SUFFIX;
1425
1426 /**
1427 * A named preference that controls whether single line comments are rendered in underline.
1428 * <p>
1429 * Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered
1430 * in underline. If <code>false</code> the are rendered using no italic font style attribute.
1431 * </p>
1432 *
1433 * @since 3.1
1434 */
1435 public final static String EDITOR_SINGLE_LINE_COMMENT_UNDERLINE= IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT + EDITOR_UNDERLINE_SUFFIX;
1436
1437 /**
1438 * A named preference that holds the color used to render java keywords.
1439 * <p>
1440 * Value is of type <code>String</code>. A RGB color value encoded as a string
1441 * using class <code>PreferenceConverter</code>
1442 * </p>
1443 *
1444 * @see org.eclipse.jface.resource.StringConverter
1445 * @see org.eclipse.jface.preference.PreferenceConverter
1446 */
1447 public final static String EDITOR_JAVA_KEYWORD_COLOR= IJavaColorConstants.JAVA_KEYWORD;
1448
1449 /**
1450 * A named preference that controls whether keywords are rendered in bold.
1451 * <p>
1452 * Value is of type <code>Boolean</code>.
1453 * </p>
1454 */
1455 public final static String EDITOR_JAVA_KEYWORD_BOLD= IJavaColorConstants.JAVA_KEYWORD + EDITOR_BOLD_SUFFIX;
1456
1457 /**
1458 * A named preference that controls whether keywords are rendered in italic.
1459 * <p>
1460 * Value is of type <code>Boolean</code>.
1461 * </p>
1462 *
1463 * @since 3.0
1464 */
1465 public final static String EDITOR_JAVA_KEYWORD_ITALIC= IJavaColorConstants.JAVA_KEYWORD + EDITOR_ITALIC_SUFFIX;
1466
1467 /**
1468 * A named preference that controls whether keywords are rendered in strikethrough.
1469 * <p>
1470 * Value is of type <code>Boolean</code>.
1471 * </p>
1472 *
1473 * @since 3.1
1474 */
1475 public final static String EDITOR_JAVA_KEYWORD_STRIKETHROUGH= IJavaColorConstants.JAVA_KEYWORD + EDITOR_STRIKETHROUGH_SUFFIX;
1476
1477 /**
1478 * A named preference that controls whether keywords are rendered in underline.
1479 * <p>
1480 * Value is of type <code>Boolean</code>.
1481 * </p>
1482 *
1483 * @since 3.1
1484 */
1485 public final static String EDITOR_JAVA_KEYWORD_UNDERLINE= IJavaColorConstants.JAVA_KEYWORD + EDITOR_UNDERLINE_SUFFIX;
1486
1487 /**
1488 * A named preference that holds the color used to render string constants.
1489 * <p>
1490 * Value is of type <code>String</code>. A RGB color value encoded as a string
1491 * using class <code>PreferenceConverter</code>
1492 * </p>
1493 *
1494 * @see org.eclipse.jface.resource.StringConverter
1495 * @see org.eclipse.jface.preference.PreferenceConverter
1496 */
1497 public final static String EDITOR_STRING_COLOR= IJavaColorConstants.JAVA_STRING;
1498
1499 /**
1500 * A named preference that controls whether string constants are rendered in bold.
1501 * <p>
1502 * Value is of type <code>Boolean</code>.
1503 * </p>
1504 */
1505 public final static String EDITOR_STRING_BOLD= IJavaColorConstants.JAVA_STRING + EDITOR_BOLD_SUFFIX;
1506
1507 /**
1508 * A named preference that controls whether string constants are rendered in italic.
1509 * <p>
1510 * Value is of type <code>Boolean</code>.
1511 * </p>
1512 *
1513 * @since 3.0
1514 */
1515 public final static String EDITOR_STRING_ITALIC= IJavaColorConstants.JAVA_STRING + EDITOR_ITALIC_SUFFIX;
1516
1517 /**
1518 * A named preference that controls whether string constants are rendered in strikethrough.
1519 * <p>
1520 * Value is of type <code>Boolean</code>.
1521 * </p>
1522 *
1523 * @since 3.1
1524 */
1525 public final static String EDITOR_STRING_STRIKETHROUGH= IJavaColorConstants.JAVA_STRING + EDITOR_STRIKETHROUGH_SUFFIX;
1526
1527 /**
1528 * A named preference that controls whether string constants are rendered in underline.
1529 * <p>
1530 * Value is of type <code>Boolean</code>.
1531 * </p>
1532 *
1533 * @since 3.1
1534 */
1535 public final static String EDITOR_STRING_UNDERLINE= IJavaColorConstants.JAVA_STRING + EDITOR_UNDERLINE_SUFFIX;
1536
1537 /**
1538 * A named preference that holds the color used to render method names.
1539 * <p>
1540 * Value is of type <code>String</code>. A RGB color value encoded as a string
1541 * using class <code>PreferenceConverter</code>
1542 * </p>
1543 *
1544 * @see org.eclipse.jface.resource.StringConverter
1545 * @see org.eclipse.jface.preference.PreferenceConverter
1546 * @since 3.0
1547 * @deprecated the method name highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#METHOD}
1548 */
1549 public final static String EDITOR_JAVA_METHOD_NAME_COLOR= IJavaColorConstants.JAVA_METHOD_NAME;
1550
1551 /**
1552 * A named preference that controls whether method names are rendered in bold.
1553 * <p>
1554 * Value is of type <code>Boolean</code>.
1555 * </p>
1556 *
1557 * @since 3.0
1558 * @deprecated the method name highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#METHOD}
1559 */
1560 public final static String EDITOR_JAVA_METHOD_NAME_BOLD= IJavaColorConstants.JAVA_METHOD_NAME + EDITOR_BOLD_SUFFIX;
1561
1562 /**
1563 * A named preference that controls whether method names are rendered in italic.
1564 * <p>
1565 * Value is of type <code>Boolean</code>.
1566 * </p>
1567 *
1568 * @since 3.0
1569 * @deprecated the method name highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#METHOD}
1570 */
1571 public final static String EDITOR_JAVA_METHOD_NAME_ITALIC= IJavaColorConstants.JAVA_METHOD_NAME + EDITOR_ITALIC_SUFFIX;
1572
1573 /**
1574 * A named preference that holds the color used to render the 'return' keyword.
1575 * <p>
1576 * Value is of type <code>String</code>. A RGB color value encoded as a string
1577 * using class <code>PreferenceConverter</code>
1578 * </p>
1579 *
1580 * @see org.eclipse.jface.resource.StringConverter
1581 * @see org.eclipse.jface.preference.PreferenceConverter
1582 * @since 3.0
1583 */
1584 public final static String EDITOR_JAVA_KEYWORD_RETURN_COLOR= IJavaColorConstants.JAVA_KEYWORD_RETURN;
1585
1586 /**
1587 * A named preference that controls whether 'return' keyword is rendered in bold.
1588 * <p>
1589 * Value is of type <code>Boolean</code>.
1590 * </p>
1591 *
1592 * @since 3.0
1593 */
1594 public final static String EDITOR_JAVA_KEYWORD_RETURN_BOLD= IJavaColorConstants.JAVA_KEYWORD_RETURN + EDITOR_BOLD_SUFFIX;
1595
1596 /**
1597 * A named preference that controls whether 'return' keyword is rendered in italic.
1598 * <p>
1599 * Value is of type <code>Boolean</code>.
1600 * </p>
1601 *
1602 * @since 3.0
1603 */
1604 public final static String EDITOR_JAVA_KEYWORD_RETURN_ITALIC= IJavaColorConstants.JAVA_KEYWORD_RETURN + EDITOR_ITALIC_SUFFIX;
1605
1606 /**
1607 * A named preference that controls whether 'return' keyword is rendered in strikethrough.
1608 * <p>
1609 * Value is of type <code>Boolean</code>.
1610 * </p>
1611 *
1612 * @since 3.1
1613 */
1614 public final static String EDITOR_JAVA_KEYWORD_RETURN_STRIKETHROUGH= IJavaColorConstants.JAVA_KEYWORD_RETURN + EDITOR_STRIKETHROUGH_SUFFIX;
1615
1616 /**
1617 * A named preference that controls whether 'return' keyword is rendered in italic.
1618 * <p>
1619 * Value is of type <code>Boolean</code>.
1620 * </p>
1621 *
1622 * @since 3.1
1623 */
1624 public final static String EDITOR_JAVA_KEYWORD_RETURN_UNDERLINE= IJavaColorConstants.JAVA_KEYWORD_RETURN + EDITOR_UNDERLINE_SUFFIX;
1625
1626 /**
1627 * A named preference that holds the color used to render operators.
1628 * <p>
1629 * Value is of type <code>String</code>. A RGB color value encoded as a string
1630 * using class <code>PreferenceConverter</code>
1631 * </p>
1632 *
1633 * @see org.eclipse.jface.resource.StringConverter
1634 * @see org.eclipse.jface.preference.PreferenceConverter
1635 * @since 3.0
1636 */
1637 public final static String EDITOR_JAVA_OPERATOR_COLOR= IJavaColorConstants.JAVA_OPERATOR;
1638
1639 /**
1640 * A named preference that controls whether operators are rendered in bold.
1641 * <p>
1642 * Value is of type <code>Boolean</code>.
1643 * </p>
1644 *
1645 * @since 3.0
1646 */
1647 public final static String EDITOR_JAVA_OPERATOR_BOLD= IJavaColorConstants.JAVA_OPERATOR + EDITOR_BOLD_SUFFIX;
1648
1649 /**
1650 * A named preference that controls whether operators are rendered in italic.
1651 * <p>
1652 * Value is of type <code>Boolean</code>.
1653 * </p>
1654 *
1655 * @since 3.0
1656 */
1657 public final static String EDITOR_JAVA_OPERATOR_ITALIC= IJavaColorConstants.JAVA_OPERATOR + EDITOR_ITALIC_SUFFIX;
1658
1659 /**
1660 * A named preference that controls whether operators are rendered in strikethrough.
1661 * <p>
1662 * Value is of type <code>Boolean</code>.
1663 * </p>
1664 *
1665 * @since 3.1
1666 */
1667 public final static String EDITOR_JAVA_OPERATOR_STRIKETHROUGH= IJavaColorConstants.JAVA_OPERATOR + EDITOR_STRIKETHROUGH_SUFFIX;
1668
1669 /**
1670 * A named preference that controls whether operators are rendered in underline.
1671 * <p>
1672 * Value is of type <code>Boolean</code>.
1673 * </p>
1674 *
1675 * @since 3.1
1676 */
1677 public final static String EDITOR_JAVA_OPERATOR_UNDERLINE= IJavaColorConstants.JAVA_OPERATOR + EDITOR_UNDERLINE_SUFFIX;
1678
1679 /**
1680 * A named preference that holds the color used to render brackets.
1681 * <p>
1682 * Value is of type <code>String</code>. A RGB color value encoded as a string
1683 * using class <code>PreferenceConverter</code>
1684 * </p>
1685 *
1686 * @see org.eclipse.jface.resource.StringConverter
1687 * @see org.eclipse.jface.preference.PreferenceConverter
1688 * @since 3.3
1689 */
1690 public final static String EDITOR_JAVA_BRACKET_COLOR= IJavaColorConstants.JAVA_BRACKET;
1691
1692 /**
1693 * A named preference that controls whether brackets are rendered in bold.
1694 * <p>
1695 * Value is of type <code>Boolean</code>.
1696 * </p>
1697 *
1698 * @since 3.3
1699 */
1700 public final static String EDITOR_JAVA_BRACKET_BOLD= IJavaColorConstants.JAVA_BRACKET + EDITOR_BOLD_SUFFIX;
1701
1702 /**
1703 * A named preference that controls whether brackets are rendered in italic.
1704 * <p>
1705 * Value is of type <code>Boolean</code>.
1706 * </p>
1707 *
1708 * @since 3.3
1709 */
1710 public final static String EDITOR_JAVA_BRACKET_ITALIC= IJavaColorConstants.JAVA_BRACKET + EDITOR_ITALIC_SUFFIX;
1711
1712 /**
1713 * A named preference that controls whether brackets are rendered in strikethrough.
1714 * <p>
1715 * Value is of type <code>Boolean</code>.
1716 * </p>
1717 *
1718 * @since 3.3
1719 */
1720 public final static String EDITOR_JAVA_BRACKET_STRIKETHROUGH= IJavaColorConstants.JAVA_BRACKET + EDITOR_STRIKETHROUGH_SUFFIX;
1721
1722 /**
1723 * A named preference that controls whether brackets are rendered in underline.
1724 * <p>
1725 * Value is of type <code>Boolean</code>.
1726 * </p>
1727 *
1728 * @since 3.3
1729 */
1730 public final static String EDITOR_JAVA_BRACKET_UNDERLINE= IJavaColorConstants.JAVA_BRACKET + EDITOR_UNDERLINE_SUFFIX;
1731
1732 /**
1733 * A named preference that holds the color used to render annotations.
1734 * <p>
1735 * Value is of type <code>String</code>. A RGB color value encoded as a string
1736 * using class <code>PreferenceConverter</code>
1737 * </p>
1738 *
1739 * @see org.eclipse.jface.resource.StringConverter
1740 * @see org.eclipse.jface.preference.PreferenceConverter
1741 * @since 3.1
1742 * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1743 */
1744 public final static String EDITOR_JAVA_ANNOTATION_COLOR= IJavaColorConstants.JAVA_ANNOTATION;
1745
1746 /**
1747 * A named preference that controls whether annotations are rendered in bold.
1748 * <p>
1749 * Value is of type <code>Boolean</code>.
1750 * </p>
1751 *
1752 * @since 3.1
1753 * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1754 */
1755 public final static String EDITOR_JAVA_ANNOTATION_BOLD= IJavaColorConstants.JAVA_ANNOTATION + EDITOR_BOLD_SUFFIX;
1756
1757 /**
1758 * A named preference that controls whether annotations are rendered in italic.
1759 * <p>
1760 * Value is of type <code>Boolean</code>.
1761 * </p>
1762 *
1763 * @since 3.1
1764 * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1765 */
1766 public final static String EDITOR_JAVA_ANNOTATION_ITALIC= IJavaColorConstants.JAVA_ANNOTATION + EDITOR_ITALIC_SUFFIX;
1767
1768 /**
1769 * A named preference that controls whether annotations are rendered in strikethrough.
1770 * <p>
1771 * Value is of type <code>Boolean</code>.
1772 * </p>
1773 *
1774 * @since 3.1
1775 * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1776 */
1777 public final static String EDITOR_JAVA_ANNOTATION_STRIKETHROUGH= IJavaColorConstants.JAVA_ANNOTATION + EDITOR_STRIKETHROUGH_SUFFIX;
1778
1779 /**
1780 * A named preference that controls whether annotations are rendered in underline.
1781 * <p>
1782 * Value is of type <code>Boolean</code>.
1783 * </p>
1784 *
1785 * @since 3.1
1786 * @deprecated the annotation highlighting has been replaced by a semantic highlighting, see {@link org.eclipse.jdt.internal.ui.javaeditor.SemanticHighlightings#ANNOTATION}
1787 */
1788 public final static String EDITOR_JAVA_ANNOTATION_UNDERLINE= IJavaColorConstants.JAVA_ANNOTATION + EDITOR_UNDERLINE_SUFFIX;
1789
1790 /**
1791 * A named preference that holds the color used to render java default text.
1792 * <p>
1793 * Value is of type <code>String</code>. A RGB color value encoded as a string
1794 * using class <code>PreferenceConverter</code>
1795 * </p>
1796 *
1797 * @see org.eclipse.jface.resource.StringConverter
1798 * @see org.eclipse.jface.preference.PreferenceConverter
1799 */
1800 public final static String EDITOR_JAVA_DEFAULT_COLOR= IJavaColorConstants.JAVA_DEFAULT;
1801
1802 /**
1803 * A named preference that controls whether Java default text is rendered in bold.
1804 * <p>
1805 * Value is of type <code>Boolean</code>.
1806 * </p>
1807 */
1808 public final static String EDITOR_JAVA_DEFAULT_BOLD= IJavaColorConstants.JAVA_DEFAULT + EDITOR_BOLD_SUFFIX;
1809
1810 /**
1811 * A named preference that controls whether Java default text is rendered in italic.
1812 * <p>
1813 * Value is of type <code>Boolean</code>.
1814 * </p>
1815 *
1816 * @since 3.0
1817 */
1818 public final static String EDITOR_JAVA_DEFAULT_ITALIC= IJavaColorConstants.JAVA_DEFAULT + EDITOR_ITALIC_SUFFIX;
1819 /**
1820 * A named preference that controls whether Java default text is rendered in strikethrough.
1821 * <p>
1822 * Value is of type <code>Boolean</code>.
1823 * </p>
1824 *
1825 * @since 3.1
1826 */
1827 public final static String EDITOR_JAVA_DEFAULT_STRIKETHROUGH= IJavaColorConstants.JAVA_DEFAULT + EDITOR_STRIKETHROUGH_SUFFIX;
1828
1829 /**
1830 * A named preference that controls whether Java default text is rendered in underline.
1831 * <p>
1832 * Value is of type <code>Boolean</code>.
1833 * </p>
1834 *
1835 * @since 3.1
1836 */
1837 public final static String EDITOR_JAVA_DEFAULT_UNDERLINE= IJavaColorConstants.JAVA_DEFAULT + EDITOR_UNDERLINE_SUFFIX;
1838
1839 /**
1840 * A named preference that holds the color used to render task tags.
1841 * <p>
1842 * Value is of type <code>String</code>. A RGB color value encoded as a string
1843 * using class <code>PreferenceConverter</code>
1844 * </p>
1845 *
1846 * @see org.eclipse.jface.resource.StringConverter
1847 * @see org.eclipse.jface.preference.PreferenceConverter
1848 * @since 2.1
1849 */
1850 public final static String EDITOR_TASK_TAG_COLOR= IJavaColorConstants.TASK_TAG;
1851
1852 /**
1853 * A named preference that controls whether task tags are rendered in bold.
1854 * <p>
1855 * Value is of type <code>Boolean</code>.
1856 * </p>
1857 * @since 2.1
1858 */
1859 public final static String EDITOR_TASK_TAG_BOLD= IJavaColorConstants.TASK_TAG + EDITOR_BOLD_SUFFIX;
1860
1861 /**
1862 * A named preference that controls whether task tags are rendered in italic.
1863 * <p>
1864 * Value is of type <code>Boolean</code>.
1865 * </p>
1866 *
1867 * @since 3.0
1868 */
1869 public final static String EDITOR_TASK_TAG_ITALIC= IJavaColorConstants.TASK_TAG + EDITOR_ITALIC_SUFFIX;
1870 /**
1871 * A named preference that controls whether task tags are rendered in strikethrough.
1872 * <p>
1873 * Value is of type <code>Boolean</code>.
1874 * </p>
1875 *
1876 * @since 3.1
1877 */
1878 public final static String EDITOR_TASK_TAG_STRIKETHROUGH= IJavaColorConstants.TASK_TAG + EDITOR_STRIKETHROUGH_SUFFIX;
1879
1880 /**
1881 * A named preference that controls whether task tags are rendered in underline.
1882 * <p>
1883 * Value is of type <code>Boolean</code>.
1884 * </p>
1885 *
1886 * @since 3.1
1887 */
1888 public final static String EDITOR_TASK_TAG_UNDERLINE= IJavaColorConstants.TASK_TAG + EDITOR_UNDERLINE_SUFFIX;
1889
1890 /**
1891 * A named preference that holds the color used to render javadoc keywords.
1892 * <p>
1893 * Value is of type <code>String</code>. A RGB color value encoded as a string
1894 * using class <code>PreferenceConverter</code>
1895 * </p>
1896 *
1897 * @see org.eclipse.jface.resource.StringConverter
1898 * @see org.eclipse.jface.preference.PreferenceConverter
1899 */
1900 public final static String EDITOR_JAVADOC_KEYWORD_COLOR= IJavaColorConstants.JAVADOC_KEYWORD;
1901
1902 /**
1903 * A named preference that controls whether javadoc keywords are rendered in bold.
1904 * <p>
1905 * Value is of type <code>Boolean</code>.
1906 * </p>
1907 */
1908 public final static String EDITOR_JAVADOC_KEYWORD_BOLD= IJavaColorConstants.JAVADOC_KEYWORD + EDITOR_BOLD_SUFFIX;
1909
1910 /**
1911 * A named preference that controls whether javadoc keywords are rendered in italic.
1912 * <p>
1913 * Value is of type <code>Boolean</code>.
1914 * </p>
1915 *
1916 * @since 3.0
1917 */
1918 public final static String EDITOR_JAVADOC_KEYWORD_ITALIC= IJavaColorConstants.JAVADOC_KEYWORD + EDITOR_ITALIC_SUFFIX;
1919
1920 /**
1921 * A named preference that controls whether javadoc keywords are rendered in strikethrough.
1922 * <p>
1923 * Value is of type <code>Boolean</code>.
1924 * </p>
1925 *
1926 * @since 3.1
1927 *
1928 */
1929 public final static String EDITOR_JAVADOC_KEYWORD_STRIKETHROUGH= IJavaColorConstants.JAVADOC_KEYWORD + EDITOR_STRIKETHROUGH_SUFFIX;
1930
1931 /**
1932 * A named preference that controls whether javadoc keywords are rendered in underline.
1933 * <p>
1934 * Value is of type <code>Boolean</code>.
1935 * </p>
1936 *
1937 * @since 3.1
1938 */
1939 public final static String EDITOR_JAVADOC_KEYWORD_UNDERLINE= IJavaColorConstants.JAVADOC_KEYWORD + EDITOR_UNDERLINE_SUFFIX;
1940
1941 /**
1942 * A named preference that holds the color used to render javadoc tags.
1943 * <p>
1944 * Value is of type <code>String</code>. A RGB color value encoded as a string
1945 * using class <code>PreferenceConverter</code>
1946 * </p>
1947 *
1948 * @see org.eclipse.jface.resource.StringConverter
1949 * @see org.eclipse.jface.preference.PreferenceConverter
1950 */
1951 public final static String EDITOR_JAVADOC_TAG_COLOR= IJavaColorConstants.JAVADOC_TAG;
1952
1953 /**
1954 * A named preference that controls whether javadoc tags are rendered in bold.
1955 * <p>
1956 * Value is of type <code>Boolean</code>.
1957 * </p>
1958 */
1959 public final static String EDITOR_JAVADOC_TAG_BOLD= IJavaColorConstants.JAVADOC_TAG + EDITOR_BOLD_SUFFIX;
1960
1961 /**
1962 * A named preference that controls whether javadoc tags are rendered in italic.
1963 * <p>
1964 * Value is of type <code>Boolean</code>.
1965 * </p>
1966 *
1967 * @since 3.0
1968 */
1969 public final static String EDITOR_JAVADOC_TAG_ITALIC= IJavaColorConstants.JAVADOC_TAG + EDITOR_ITALIC_SUFFIX;
1970
1971 /**
1972 * A named preference that controls whether javadoc tags are rendered in strikethrough.
1973 * <p>
1974 * Value is of type <code>Boolean</code>.
1975 * </p>
1976 *
1977 * @since 3.1
1978 */
1979 public final static String EDITOR_JAVADOC_TAG_STRIKETHROUGH= IJavaColorConstants.JAVADOC_TAG + EDITOR_STRIKETHROUGH_SUFFIX;
1980
1981 /**
1982 * A named preference that controls whether javadoc tags are rendered in underline.
1983 * <p>
1984 * Value is of type <code>Boolean</code>.
1985 * </p>
1986 *
1987 * @since 3.1
1988 */
1989 public final static String EDITOR_JAVADOC_TAG_UNDERLINE= IJavaColorConstants.JAVADOC_TAG + EDITOR_UNDERLINE_SUFFIX;
1990
1991 /**
1992 * A named preference that holds the color used to render javadoc links.
1993 * <p>
1994 * Value is of type <code>String</code>. A RGB color value encoded as a string
1995 * using class <code>PreferenceConverter</code>
1996 * </p>
1997 *
1998 * @see org.eclipse.jface.resource.StringConverter
1999 * @see org.eclipse.jface.preference.PreferenceConverter
2000 */
2001 public final static String EDITOR_JAVADOC_LINKS_COLOR= IJavaColorConstants.JAVADOC_LINK;
2002
2003 /**
2004 * A named preference that controls whether javadoc links are rendered in bold.
2005 * <p>
2006 * Value is of type <code>Boolean</code>.
2007 * </p>
2008 */
2009 public final static String EDITOR_JAVADOC_LINKS_BOLD= IJavaColorConstants.JAVADOC_LINK + EDITOR_BOLD_SUFFIX;
2010
2011 /**
2012 * A named preference that controls whether javadoc links are rendered in italic.
2013 * <p>
2014 * Value is of type <code>Boolean</code>.
2015 * </p>
2016 *
2017 * @since 3.0
2018 */
2019 public final static String EDITOR_JAVADOC_LINKS_ITALIC= IJavaColorConstants.JAVADOC_LINK + EDITOR_ITALIC_SUFFIX;
2020
2021 /**
2022 * A named preference that controls whether javadoc links are rendered in strikethrough.
2023 * <p>
2024 * Value is of type <code>Boolean</code>.
2025 * </p>
2026 *
2027 * @since 3.1
2028 */
2029 public final static String EDITOR_JAVADOC_LINKS_STRIKETHROUGH= IJavaColorConstants.JAVADOC_LINK + EDITOR_STRIKETHROUGH_SUFFIX;
2030
2031 /**
2032 * A named preference that controls whether javadoc links are rendered in underline.
2033 * <p>
2034 * Value is of type <code>Boolean</code>.
2035 * </p>
2036 *
2037 * @since 3.1
2038 */
2039 public final static String EDITOR_JAVADOC_LINKS_UNDERLINE= IJavaColorConstants.JAVADOC_LINK + EDITOR_UNDERLINE_SUFFIX;
2040
2041 /**
2042 * A named preference that holds the color used to render javadoc default text.
2043 * <p>
2044 * Value is of type <code>String</code>. A RGB color value encoded as a string
2045 * using class <code>PreferenceConverter</code>
2046 * </p>
2047 *
2048 * @see org.eclipse.jface.resource.StringConverter
2049 * @see org.eclipse.jface.preference.PreferenceConverter
2050 */
2051 public final static String EDITOR_JAVADOC_DEFAULT_COLOR= IJavaColorConstants.JAVADOC_DEFAULT;
2052
2053 /**
2054 * A named preference that controls whether javadoc default text is rendered in bold.
2055 * <p>
2056 * Value is of type <code>Boolean</code>.
2057 * </p>
2058 */
2059 public final static String EDITOR_JAVADOC_DEFAULT_BOLD= IJavaColorConstants.JAVADOC_DEFAULT + EDITOR_BOLD_SUFFIX;
2060
2061 /**
2062 * A named preference that controls whether javadoc default text is rendered in italic.
2063 * <p>
2064 * Value is of type <code>Boolean</code>.
2065 * </p>
2066 *
2067 * @since 3.0
2068 */
2069 public final static String EDITOR_JAVADOC_DEFAULT_ITALIC= IJavaColorConstants.JAVADOC_DEFAULT + EDITOR_ITALIC_SUFFIX;
2070 /**
2071 * A named preference that controls whether javadoc default text is rendered in strikethrough.
2072 * <p>
2073 * Value is of type <code>Boolean</code>.
2074 * </p>
2075 *
2076 * @since 3.1
2077 */
2078 public final static String EDITOR_JAVADOC_DEFAULT_STRIKETHROUGH= IJavaColorConstants.JAVADOC_DEFAULT + EDITOR_STRIKETHROUGH_SUFFIX;
2079
2080 /**
2081 * A named preference that controls whether javadoc default text is rendered in underline.
2082 * <p>
2083 * Value is of type <code>Boolean</code>.
2084 * </p>
2085 *
2086 * @since 3.1
2087 */
2088 public final static String EDITOR_JAVADOC_DEFAULT_UNDERLINE= IJavaColorConstants.JAVADOC_DEFAULT + EDITOR_UNDERLINE_SUFFIX;
2089
2090 /**
2091 * A named preference that holds the color used for 'linked-mode' underline.
2092 * <p>
2093 * Value is of type <code>String</code>. A RGB color value encoded as a string
2094 * using class <code>PreferenceConverter</code>
2095 * </p>
2096 *
2097 * @see org.eclipse.jface.resource.StringConverter
2098 * @see org.eclipse.jface.preference.PreferenceConverter
2099 * @since 2.1
2100 * @deprecated As of 3.1, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_HYPERLINK_COLOR}
2101 */
2102 public final static String EDITOR_LINK_COLOR= "linkColor"; //$NON-NLS-1$
2103
2104 /**
2105 * A named preference that controls whether hover tool tips in the editor are turned on or off.
2106 * <p>
2107 * Value is of type <code>Boolean</code>.
2108 * </p>
2109 */
2110 public static final String EDITOR_SHOW_HOVER= "org.eclipse.jdt.ui.editor.showHover"; //$NON-NLS-1$
2111
2112
2113 /**
2114 * A named preference that defines the hover shown when no control key is
2115 * pressed.
2116 * <p>Value is of type <code>String</code>: possible values are <code>
2117 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2118 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a hover
2119 * contributed as <code>javaEditorTextHovers</code>.
2120 * </p>
2121 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2122 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2123 * @see JavaUI
2124 * @since 2.1
2125 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2126 */
2127 public static final String EDITOR_NONE_HOVER= "noneHover"; //$NON-NLS-1$
2128
2129 /**
2130 * A named preference that defines the hover shown when the
2131 * <code>CTRL</code> modifier key is pressed.
2132 * <p>Value is of type <code>String</code>: possible values are <code>
2133 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2134 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2135 * hover contributed as <code>javaEditorTextHovers</code>.
2136 * </p>
2137 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2138 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2139 * @see JavaUI
2140 * @since 2.1
2141 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2142 */
2143 public static final String EDITOR_CTRL_HOVER= "ctrlHover"; //$NON-NLS-1$
2144
2145 /**
2146 * A named preference that defines the hover shown when the
2147 * <code>SHIFT</code> modifier key is pressed.
2148 * <p>Value is of type <code>String</code>: possible values are <code>
2149 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2150 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2151 * hover contributed as <code>javaEditorTextHovers</code>.
2152 * </p>
2153 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2154 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2155 * @see JavaUI ID_*_HOVER
2156 * @since 2.1
2157 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2158 */
2159 public static final String EDITOR_SHIFT_HOVER= "shiftHover"; //$NON-NLS-1$
2160
2161 /**
2162 * A named preference that defines the hover shown when the
2163 * <code>CTRL + ALT</code> modifier keys is pressed.
2164 * <p>Value is of type <code>String</code>: possible values are <code>
2165 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2166 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2167 * hover contributed as <code>javaEditorTextHovers</code>.
2168 * </p>
2169 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2170 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2171 * @see JavaUI ID_*_HOVER
2172 * @since 2.1
2173 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2174 */
2175 public static final String EDITOR_CTRL_ALT_HOVER= "ctrlAltHover"; //$NON-NLS-1$
2176
2177 /**
2178 * A named preference that defines the hover shown when the
2179 * <code>CTRL + ALT + SHIFT</code> modifier keys is pressed.
2180 * <p>Value is of type <code>String</code>: possible values are <code>
2181 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2182 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2183 * hover contributed as <code>javaEditorTextHovers</code>.
2184 * </p>
2185 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2186 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2187 * @see JavaUI ID_*_HOVER
2188 * @since 2.1
2189 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2190 */
2191 public static final String EDITOR_CTRL_ALT_SHIFT_HOVER= "ctrlAltShiftHover"; //$NON-NLS-1$
2192
2193 /**
2194 * A named preference that defines the hover shown when the
2195 * <code>CTRL + SHIFT</code> modifier keys is pressed.
2196 * <p>Value is of type <code>String</code>: possible values are <code>
2197 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or
2198 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2199 * hover contributed as <code>javaEditorTextHovers</code>.
2200 * </p>
2201 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2202 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2203 * @see JavaUI ID_*_HOVER
2204 * @since 2.1
2205 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2206 */
2207 public static final String EDITOR_CTRL_SHIFT_HOVER= "ctrlShiftHover"; //$NON-NLS-1$
2208
2209 /**
2210 * A named preference that defines the hover shown when the
2211 * <code>ALT</code> modifier key is pressed.
2212 * <p>Value is of type <code>String</code>: possible values are <code>
2213 * EDITOR_NO_HOVER_CONFIGURED_ID</code>,
2214 * <code>EDITOR_DEFAULT_HOVER_CONFIGURED_ID</code> or the hover id of a
2215 * hover contributed as <code>javaEditorTextHovers</code>.
2216 * </p>
2217 * @see #EDITOR_NO_HOVER_CONFIGURED_ID
2218 * @see #EDITOR_DEFAULT_HOVER_CONFIGURED_ID
2219 * @see JavaUI ID_*_HOVER
2220 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2221 * @since 2.1
2222 */
2223 public static final String EDITOR_ALT_SHIFT_HOVER= "altShiftHover"; //$NON-NLS-1$
2224
2225 /**
2226 * A string value used by the named preferences for hover configuration to
2227 * describe that no hover should be shown for the given key modifiers.
2228 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2229 * @since 2.1
2230 */
2231 public static final String EDITOR_NO_HOVER_CONFIGURED_ID= "noHoverConfiguredId"; //$NON-NLS-1$
2232
2233 /**
2234 * A string value used by the named preferences for hover configuration to
2235 * describe that the default hover should be shown for the given key
2236 * modifiers. The default hover is described by the
2237 * <code>EDITOR_DEFAULT_HOVER</code> property.
2238 * @since 2.1
2239 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2240 */
2241 public static final String EDITOR_DEFAULT_HOVER_CONFIGURED_ID= "defaultHoverConfiguredId"; //$NON-NLS-1$
2242
2243 /**
2244 * A named preference that defines the hover named the 'default hover'.
2245 * Value is of type <code>String</code>: possible values are <code>
2246 * EDITOR_NO_HOVER_CONFIGURED_ID</code> or the hover id of a hover
2247 * contributed as <code>javaEditorTextHovers</code>.
2248 * </p>
2249 * @since 2.1
2250 * @deprecated As of 3.0, replaced by {@link #EDITOR_TEXT_HOVER_MODIFIERS}
2251 */
2252 public static final String EDITOR_DEFAULT_HOVER= "defaultHover"; //$NON-NLS-1$
2253
2254 /**
2255 * A named preference that controls if segmented view (show selected element only) is turned on or off.
2256 * <p>
2257 * Value is of type <code>Boolean</code>.
2258 * </p>
2259 */
2260 public static final String EDITOR_SHOW_SEGMENTS= "org.eclipse.jdt.ui.editor.showSegments"; //$NON-NLS-1$
2261
2262 /**
2263 * A named preference that controls if browser like links are turned on or off.
2264 * <p>
2265 * Value is of type <code>Boolean</code>.
2266 * </p>
2267 *
2268 * @since 2.1
2269 * @deprecated As of 3.1, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_HYPERLINKS_ENABLED}
2270 */
2271 public static final String EDITOR_BROWSER_LIKE_LINKS= "browserLikeLinks"; //$NON-NLS-1$
2272
2273 /**
2274 * A named preference that controls the key modifier for browser like links.
2275 * <p>
2276 * Value is of type <code>String</code>.
2277 * </p>
2278 *
2279 * @since 2.1
2280 * @deprecated As of 3.1, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_HYPERLINK_KEY_MODIFIER}
2281 */
2282 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER= "browserLikeLinksKeyModifier"; //$NON-NLS-1$
2283
2284 /**
2285 * A named preference that controls the key modifier mask for browser like links.
2286 * The value is only used if the value of <code>EDITOR_BROWSER_LIKE_LINKS</code>
2287 * cannot be resolved to valid SWT modifier bits.
2288 * <p>
2289 * Value is of type <code>String</code>.
2290 * </p>
2291 *
2292 * @see #EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER
2293 * @since 2.1.1
2294 * @deprecated As of 3.1, replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_HYPERLINK_KEY_MODIFIER_MASK}
2295 */
2296 public static final String EDITOR_BROWSER_LIKE_LINKS_KEY_MODIFIER_MASK= "browserLikeLinksKeyModifierMask"; //$NON-NLS-1$
2297
2298 /**
2299 * A named preference that controls whether occurrences are marked in the editor.
2300 * <p>
2301 * Value is of type <code>Boolean</code>.
2302 * </p>
2303 *
2304 * @since 3.0
2305 */
2306 public static final String EDITOR_MARK_OCCURRENCES= "markOccurrences"; //$NON-NLS-1$
2307
2308 /**
2309 * A named preference that controls whether occurrences are sticky in the editor.
2310 * <p>
2311 * Value is of type <code>Boolean</code>.
2312 * </p>
2313 *
2314 * @since 3.0
2315 */
2316 public static final String EDITOR_STICKY_OCCURRENCES= "stickyOccurrences"; //$NON-NLS-1$
2317
2318 /**
2319 * A named preference that controls whether type occurrences are marked.
2320 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2321 * <p>
2322 * Value is of type <code>Boolean</code>.
2323 * </p>
2324 *
2325 * @since 3.0
2326 */
2327 public static final String EDITOR_MARK_TYPE_OCCURRENCES= "markTypeOccurrences"; //$NON-NLS-1$
2328
2329 /**
2330 * A named preference that controls whether method occurrences are marked.
2331 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2332 * <p>
2333 * Value is of type <code>Boolean</code>.
2334 * </p>
2335 *
2336 * @since 3.0
2337 */
2338 public static final String EDITOR_MARK_METHOD_OCCURRENCES= "markMethodOccurrences"; //$NON-NLS-1$
2339 /**
2340 * A named preference that controls whether non-constant field occurrences are marked.
2341 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2342 * <p>
2343 * Value is of type <code>Boolean</code>.
2344 * </p>
2345 *
2346 * @since 3.0
2347 */
2348 public static final String EDITOR_MARK_FIELD_OCCURRENCES= "markFieldOccurrences"; //$NON-NLS-1$
2349 /**
2350 * A named preference that controls whether constant (static final) occurrences are marked.
2351 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2352 * <p>
2353 * Value is of type <code>Boolean</code>.
2354 * </p>
2355 *
2356 * @since 3.0
2357 */
2358 public static final String EDITOR_MARK_CONSTANT_OCCURRENCES= "markConstantOccurrences"; //$NON-NLS-1$
2359
2360 /**
2361 * A named preference that controls whether local variable occurrences are marked.
2362 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2363 * <p>
2364 * Value is of type <code>Boolean</code>.
2365 * </p>
2366 *
2367 * @since 3.0
2368 */
2369 public static final String EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES= "markLocalVariableOccurrences"; //$NON-NLS-1$
2370
2371 /**
2372 * A named preference that controls whether exception occurrences are marked.
2373 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2374 * <p>
2375 * Value is of type <code>Boolean</code>.
2376 * </p>
2377 *
2378 * @since 3.0
2379 */
2380 public static final String EDITOR_MARK_EXCEPTION_OCCURRENCES= "markExceptionOccurrences"; //$NON-NLS-1$
2381
2382 /**
2383 * A named preference that controls whether method exit points are marked.
2384 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2385 * <p>
2386 * Value is of type <code>Boolean</code>.
2387 * </p>
2388 *
2389 * @since 3.0
2390 */
2391 public static final String EDITOR_MARK_METHOD_EXIT_POINTS= "markMethodExitPoints"; //$NON-NLS-1$
2392
2393 /**
2394 * A named preference that controls whether targets for of <code>break</code> and <code>continue</code> statements are marked.
2395 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2396 * <p>
2397 * Value is of type <code>Boolean</code>.
2398 * </p>
2399 *
2400 * @since 3.2
2401 */
2402 public static final String EDITOR_MARK_BREAK_CONTINUE_TARGETS= "markBreakContinueTargets"; //$NON-NLS-1$
2403
2404 /**
2405 * A named preference that controls whether method exit points are marked.
2406 * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>.
2407 * <p>
2408 * Value is of type <code>Boolean</code>.
2409 * </p>
2410 *
2411 * @since 3.1
2412 */
2413 public static final String EDITOR_MARK_IMPLEMENTORS= "markImplementors"; //$NON-NLS-1$
2414
2415 /**
2416 * A named preference prefix for semantic highlighting preferences.
2417 *
2418 * @since 3.0
2419 */
2420 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX="semanticHighlighting."; //$NON-NLS-1$
2421
2422 /**
2423 * A named preference that controls if semantic highlighting is enabled.
2424 * <p>
2425 * Value is of type <code>Boolean</code>:<code>true</code> if enabled.
2426 * </p>
2427 *
2428 * @since 3.0
2429 * @deprecated As of 3.1, this preference is not used or set any longer; see
2430 * {@link SemanticHighlightings#affectsEnablement(IPreferenceStore, org.eclipse.jface.util.PropertyChangeEvent)}
2431 */
2432 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED=EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX + "enabled"; //$NON-NLS-1$
2433
2434 /**
2435 * A named preference suffix that controls a semantic highlighting's color.
2436 * <p>
2437 * Value is of type <code>String</code>. A RGB color value encoded as a string
2438 * using class <code>PreferenceConverter</code>
2439 * </p>
2440 *
2441 * @see org.eclipse.jface.resource.StringConverter
2442 * @see org.eclipse.jface.preference.PreferenceConverter
2443 * @since 3.0
2444 */
2445 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_COLOR_SUFFIX=".color"; //$NON-NLS-1$
2446
2447 /**
2448 * A named preference suffix that controls if semantic highlighting has the text attribute bold.
2449 * <p>
2450 * Value is of type <code>Boolean</code>: <code>true</code> if bold.
2451 * </p>
2452 *
2453 * @since 3.0
2454 */
2455 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_BOLD_SUFFIX=".bold"; //$NON-NLS-1$
2456
2457 /**
2458 * A named preference suffix that controls if semantic highlighting has the text attribute italic.
2459 * <p>
2460 * Value is of type <code>Boolean</code>: <code>true</code> if italic.
2461 * </p>
2462 *
2463 * @since 3.0
2464 */
2465 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ITALIC_SUFFIX=".italic"; //$NON-NLS-1$
2466
2467 /**
2468 * A named preference suffix that controls if semantic highlighting has the text attribute strikethrough.
2469 * <p>
2470 * Value is of type <code>Boolean</code>: <code>true</code> if strikethrough.
2471 * </p>
2472 *
2473 * @since 3.1
2474 */
2475 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_STRIKETHROUGH_SUFFIX=".strikethrough"; //$NON-NLS-1$
2476
2477 /**
2478 * A named preference suffix that controls if semantic highlighting has the text attribute underline.
2479 * <p>
2480 * Value is of type <code>Boolean</code>: <code>true</code> if underline.
2481 * </p>
2482 *
2483 * @since 3.1
2484 */
2485 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_UNDERLINE_SUFFIX=".underline"; //$NON-NLS-1$
2486
2487 /**
2488 * A named preference suffix that controls if semantic highlighting is enabled.
2489 * <p>
2490 * Value is of type <code>Boolean</code>: <code>true</code> if enabled.
2491 * </p>
2492 *
2493 * @since 3.0
2494 */
2495 public static final String EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED_SUFFIX=".enabled"; //$NON-NLS-1$
2496
2497 /**
2498 * A named preference that controls disabling of the overwrite mode.
2499 * <p>
2500 * Value is of type <code>Boolean</code>.
2501 * </p>
2502 *
2503 * @since 3.0
2504 * @deprecated as of 3.1 replaced by {@link AbstractDecoratedTextEditorPreferenceConstants#EDITOR_DISABLE_OVERWRITE_MODE}
2505 */
2506 public static final String EDITOR_DISABLE_OVERWRITE_MODE= "disable_overwrite_mode"; //$NON-NLS-1$
2507
2508 /**
2509 * A named preference that controls the "smart semicolon" smart typing handler.
2510 * <p>
2511 * Value is of type <code>Boolean</code>.
2512 * </p>
2513 *
2514 * @since 3.0
2515 */
2516 public static final String EDITOR_SMART_SEMICOLON= "smart_semicolon"; //$NON-NLS-1$
2517
2518 /**
2519 * A named preference that controls the smart backspace behavior.
2520 * <p>
2521 * Value is of type <code>Boolean</code>.
2522 *
2523 * @since 3.0
2524 */
2525 public static final String EDITOR_SMART_BACKSPACE= "smart_backspace"; //$NON-NLS-1$
2526
2527 /**
2528 * A named preference that controls the "smart opening brace" smart typing handler.
2529 * <p>
2530 * Value is of type <code>Boolean</code>.
2531 * </p>
2532 *
2533 * @since 3.0
2534 */
2535 public static final String EDITOR_SMART_OPENING_BRACE= "smart_opening_brace"; //$NON-NLS-1$
2536
2537 /**
2538 * A named preference that controls the smart tab behavior.
2539 * <p>
2540 * Value is of type <code>Boolean</code>.
2541 *
2542 * @since 3.0
2543 */
2544 public static final String EDITOR_SMART_TAB= "smart_tab"; //$NON-NLS-1$
2545
2546 /**
2547 * A named preference that controls whether Java comments should be
2548 * spell checked.
2549 * <p>
2550 * Value is of type <code>Boolean</code>.
2551 * </p>
2552 *
2553 * @deprecated since 3.1, use {@link org.eclipse.ui.texteditor.spelling.SpellingService#PREFERENCE_SPELLING_ENABLED}
2554 * and {@link org.eclipse.ui.texteditor.spelling.SpellingService#PREFERENCE_SPELLING_ENGINE}
2555 * @since 3.0
2556 */
2557 public final static String SPELLING_CHECK_SPELLING= "spelling_check_spelling"; //$NON-NLS-1$
2558
2559 /**
2560 * A named preference that controls whether words containing digits should
2561 * be skipped during spell checking.
2562 * <p>
2563 * Value is of type <code>Boolean</code>.
2564 * </p>
2565 *
2566 * @since 3.0
2567 */
2568 public final static String SPELLING_IGNORE_DIGITS= "spelling_ignore_digits"; //$NON-NLS-1$
2569
2570 /**
2571 * A named preference that controls whether mixed case words should be
2572 * skipped during spell checking.
2573 * <p>
2574 * Value is of type <code>Boolean</code>.
2575 * </p>
2576 *
2577 * @since 3.0
2578 */
2579 public final static String SPELLING_IGNORE_MIXED= "spelling_ignore_mixed"; //$NON-NLS-1$
2580
2581 /**
2582 * A named preference that controls whether sentence capitalization should
2583 * be ignored during spell checking.
2584 * <p>
2585 * Value is of type <code>Boolean</code>.
2586 * </p>
2587 *
2588 * @since 3.0
2589 */
2590 public final static String SPELLING_IGNORE_SENTENCE= "spelling_ignore_sentence"; //$NON-NLS-1$
2591
2592 /**
2593 * A named preference that controls whether upper case words should be
2594 * skipped during spell checking.
2595 * <p>
2596 * Value is of type <code>Boolean</code>.
2597 * </p>
2598 *
2599 * @since 3.0
2600 */
2601 public final static String SPELLING_IGNORE_UPPER= "spelling_ignore_upper"; //$NON-NLS-1$
2602
2603 /**
2604 * A named preference that controls whether URLs should be ignored during
2605 * spell checking.
2606 * <p>
2607 * Value is of type <code>Boolean</code>.
2608 * </p>
2609 *
2610 * @since 3.0
2611 */
2612 public final static String SPELLING_IGNORE_URLS= "spelling_ignore_urls"; //$NON-NLS-1$
2613
2614 /**
2615 * A named preference that controls whether single letters
2616 * should be ignored during spell checking.
2617 * <p>
2618 * Value is of type <code>Boolean</code>.
2619 * </p>
2620 *
2621 * @since 3.3
2622 */
2623 public final static String SPELLING_IGNORE_SINGLE_LETTERS= "spelling_ignore_single_letters"; //$NON-NLS-1$
2624
2625 /**
2626 * A named preference that controls whether '&' in
2627 * Java properties files are ignored.
2628 * <p>
2629 * Value is of type <code>Boolean</code>.
2630 * </p>
2631 *
2632 * @since 3.3
2633 */
2634 public final static String SPELLING_IGNORE_AMPERSAND_IN_PROPERTIES= "spelling_ignore_ampersand_in_properties"; //$NON-NLS-1$
2635
2636 /**
2637 * A named preference that controls whether non-letters at word boundaries
2638 * should be ignored during spell checking.
2639 * <p>
2640 * Value is of type <code>Boolean</code>.
2641 * </p>
2642 *
2643 * @since 3.3
2644 */
2645 public final static String SPELLING_IGNORE_NON_LETTERS= "spelling_ignore_non_letters"; //$NON-NLS-1$
2646
2647 /**
2648 * A named preference that controls whether Java strings
2649 * should be ignored during spell checking.
2650 * <p>
2651 * Value is of type <code>Boolean</code>.
2652 * </p>
2653 *
2654 * @since 3.4
2655 */
2656 public static final String SPELLING_IGNORE_JAVA_STRINGS= "spelling_ignore_java_strings"; //$NON-NLS-1$;
2657
2658 /**
2659 * A named preference that controls the locale used for spell checking.
2660 * <p>
2661 * Value is of type <code>String</code>.
2662 * </p>
2663 *
2664 * @since 3.0
2665 */
2666 public final static String SPELLING_LOCALE= "spelling_locale"; //$NON-NLS-1$
2667
2668 /**
2669 * A named preference that controls the number of proposals offered during
2670 * spell checking.
2671 * <p>
2672 * Value is of type <code>Integer</code>.
2673 * </p>
2674 *
2675 * @since 3.0
2676 */
2677 public final static String SPELLING_PROPOSAL_THRESHOLD= "spelling_proposal_threshold"; //$NON-NLS-1$
2678
2679 /**
2680 * A named preference that controls the maximum number of problems reported during spell checking.
2681 * <p>
2682 * Value is of type <code>Integer</code>.
2683 * </p>
2684 *
2685 * @since 3.4
2686 */
2687 public final static String SPELLING_PROBLEMS_THRESHOLD= "spelling_problems_threshold"; //$NON-NLS-1$
2688
2689 /**
2690 * A named preference that specifies the workspace user dictionary.
2691 * <p>
2692 * Value is of type <code>Integer</code>.
2693 * </p>
2694 *
2695 * @since 3.0
2696 */
2697 public final static String SPELLING_USER_DICTIONARY= "spelling_user_dictionary"; //$NON-NLS-1$
2698
2699 /**
2700 * A named preference that specifies encoding of the workspace user dictionary.
2701 * <p>
2702 * Value is of type <code>String</code>.
2703 * </p>
2704 *
2705 * @since 3.3
2706 */
2707 public final static String SPELLING_USER_DICTIONARY_ENCODING= "spelling_user_dictionary_encoding"; //$NON-NLS-1$
2708
2709 /**
2710 * A named preference that specifies whether spelling dictionaries are available to content assist.
2711 *
2712 * <strong>Note:</strong> This is currently not supported because the spelling engine
2713 * cannot return word proposals but only correction proposals.
2714 * <p>
2715 * Value is of type <code>Boolean</code>.
2716 * </p>
2717 *
2718 * @since 3.0
2719 */
2720 public final static String SPELLING_ENABLE_CONTENTASSIST= "spelling_enable_contentassist"; //$NON-NLS-1$
2721
2722 /**
2723 * A named preference that controls whether code snippets are formatted
2724 * in Javadoc comments.
2725 * <p>
2726 * Value is of type <code>Boolean</code>.
2727 * </p>
2728 *
2729 * @since 3.0
2730 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_FORMAT_SOURCE}
2731 */
2732 public final static String FORMATTER_COMMENT_FORMATSOURCE= "comment_format_source_code"; //$NON-NLS-1$
2733
2734 /**
2735 * A named preference that controls whether description of Javadoc
2736 * parameters are indented.
2737 * <p>
2738 * Value is of type <code>Boolean</code>.
2739 * </p>
2740 *
2741 * @since 3.0
2742 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_INDENT_PARAMETER_DESCRIPTION}
2743 */
2744 public final static String FORMATTER_COMMENT_INDENTPARAMETERDESCRIPTION= "comment_indent_parameter_description"; //$NON-NLS-1$
2745
2746 /**
2747 * A named preference that controls whether the header comment of
2748 * a Java source file is formatted.
2749 * <p>
2750 * Value is of type <code>Boolean</code>.
2751 * </p>
2752 *
2753 * @since 3.0
2754 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_FORMAT_HEADER}
2755 */
2756 public final static String FORMATTER_COMMENT_FORMATHEADER= "comment_format_header"; //$NON-NLS-1$
2757
2758 /**
2759 * A named preference that controls whether Javadoc root tags
2760 * are indented.
2761 * <p>
2762 * Value is of type <code>Boolean</code>.
2763 * </p>
2764 *
2765 * @since 3.0
2766 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_INDENT_ROOT_TAGS}
2767 */
2768 public final static String FORMATTER_COMMENT_INDENTROOTTAGS= "comment_indent_root_tags"; //$NON-NLS-1$
2769
2770 /**
2771 * A named preference that controls whether Javadoc comments
2772 * are formatted by the content formatter.
2773 * <p>
2774 * Value is of type <code>Boolean</code>.
2775 * </p>
2776 *
2777 * @since 3.0
2778 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_FORMAT}
2779 */
2780 public final static String FORMATTER_COMMENT_FORMAT= "comment_format_comments"; //$NON-NLS-1$
2781
2782 /**
2783 * A named preference that controls whether a new line is inserted
2784 * after Javadoc root tag parameters.
2785 * <p>
2786 * Value is of type <code>Boolean</code>.
2787 * </p>
2788 *
2789 * @since 3.0
2790 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_INSERT_NEW_LINE_FOR_PARAMETER}
2791 */
2792 public final static String FORMATTER_COMMENT_NEWLINEFORPARAMETER= "comment_new_line_for_parameter"; //$NON-NLS-1$
2793
2794 /**
2795 * A named preference that controls whether an empty line is inserted before
2796 * the Javadoc root tag block.
2797 * <p>
2798 * Value is of type <code>Boolean</code>.
2799 * </p>
2800 *
2801 * @since 3.0
2802 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_INSERT_EMPTY_LINE_BEFORE_ROOT_TAGS}
2803 */
2804 public final static String FORMATTER_COMMENT_SEPARATEROOTTAGS= "comment_separate_root_tags"; //$NON-NLS-1$
2805
2806 /**
2807 * A named preference that controls whether blank lines are cleared during formatting.
2808 * <p>
2809 * Value is of type <code>Boolean</code>.
2810 * </p>
2811 *
2812 * @since 3.0
2813 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_CLEAR_BLANK_LINES}
2814 */
2815 public final static String FORMATTER_COMMENT_CLEARBLANKLINES= "comment_clear_blank_lines"; //$NON-NLS-1$
2816
2817 /**
2818 * A named preference that controls the line length of comments.
2819 * <p>
2820 * Value is of type <code>Integer</code>. The value must be at least 4 for reasonable formatting.
2821 * </p>
2822 *
2823 * @since 3.0
2824 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_LINE_LENGTH}
2825 */
2826 public final static String FORMATTER_COMMENT_LINELENGTH= "comment_line_length"; //$NON-NLS-1$
2827
2828 /**
2829 * A named preference that controls whether HTML tags are formatted.
2830 * <p>
2831 * Value is of type <code>Boolean</code>.
2832 * </p>
2833 *
2834 * @since 3.0
2835 * @deprecated As of 3.1, replaced by {@link org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants#FORMATTER_COMMENT_FORMAT_HTML}
2836 */
2837 public final static String FORMATTER_COMMENT_FORMATHTML= "comment_format_html"; //$NON-NLS-1$
2838
2839 /**
2840 * A named preference that controls if the Java code assist gets auto activated.
2841 * <p>
2842 * Value is of type <code>Boolean</code>.
2843 * </p>
2844 */
2845 public final static String CODEASSIST_AUTOACTIVATION= "content_assist_autoactivation"; //$NON-NLS-1$
2846
2847 /**
2848 * A name preference that holds the auto activation delay time in milliseconds.
2849 * <p>
2850 * Value is of type <code>Integer</code>.
2851 * </p>
2852 */
2853 public final static String CODEASSIST_AUTOACTIVATION_DELAY= "content_assist_autoactivation_delay"; //$NON-NLS-1$
2854
2855 /**
2856 * A named preference that controls if code assist contains only visible proposals.
2857 * <p>
2858 * Value is of type <code>Boolean</code>. if <code>true</code> code assist only contains visible members. If
2859 * <code>false</code> all members are included.
2860 * </p>
2861 */
2862 public final static String CODEASSIST_SHOW_VISIBLE_PROPOSALS= "content_assist_show_visible_proposals"; //$NON-NLS-1$
2863
2864 /**
2865 * A named preference that controls if the Java code assist inserts a
2866 * proposal automatically if only one proposal is available.
2867 * <p>
2868 * Value is of type <code>Boolean</code>.
2869 * </p>
2870 * @since 2.1
2871 */
2872 public final static String CODEASSIST_AUTOINSERT= "content_assist_autoinsert"; //$NON-NLS-1$
2873
2874 /**
2875 * A named preference that controls if the Java code assist adds import
2876 * statements.
2877 * <p>
2878 * Value is of type <code>Boolean</code>.
2879 * </p>
2880 * @since 2.1
2881 */
2882 public final static String CODEASSIST_ADDIMPORT= "content_assist_add_import"; //$NON-NLS-1$
2883
2884 /**
2885 * A named preference that controls if the Java code assist only inserts
2886 * completions. If set to false the proposals can also _replace_ code.
2887 * <p>
2888 * Value is of type <code>Boolean</code>.
2889 * </p>
2890 * @since 2.1
2891 */
2892 public final static String CODEASSIST_INSERT_COMPLETION= "content_assist_insert_completion"; //$NON-NLS-1$
2893
2894 /**
2895 * A named preference that controls whether code assist proposals filtering is case sensitive or not.
2896 * <p>
2897 * Value is of type <code>Boolean</code>.
2898 * </p>
2899 */
2900 public final static String CODEASSIST_CASE_SENSITIVITY= "content_assist_case_sensitivity"; //$NON-NLS-1$
2901
2902 /**
2903 * A named preference that defines if code assist proposals are sorted in alphabetical order.
2904 * <p>
2905 * Value is of type <code>Boolean</code>. If <code>true</code> that are sorted in alphabetical
2906 * order. If <code>false</code> that are unsorted.
2907 * </p>
2908 * @deprecated use {@link #CODEASSIST_SORTER} instead
2909 */
2910 public final static String CODEASSIST_ORDER_PROPOSALS= "content_assist_order_proposals"; //$NON-NLS-1$
2911
2912 /**
2913 * A named preference that controls if argument names are filled in when a method is selected from as list
2914 * of code assist proposal.
2915 * <p>
2916 * Value is of type <code>Boolean</code>.
2917 * </p>
2918 */
2919 public final static String CODEASSIST_FILL_ARGUMENT_NAMES= "content_assist_fill_method_arguments"; //$NON-NLS-1$
2920
2921 /**
2922 * A named preference that controls if method arguments are guessed when a
2923 * method is selected from as list of code assist proposal.
2924 * <p>
2925 * Value is of type <code>Boolean</code>.
2926 * </p>
2927 * @since 2.1
2928 */
2929 public final static String CODEASSIST_GUESS_METHOD_ARGUMENTS= "content_assist_guess_method_arguments"; //$NON-NLS-1$
2930
2931 /**
2932 * A named preference that holds the characters that auto activate code assist in Java code.
2933 * <p>
2934 * Value is of type <code>String</code>. All characters that trigger auto code assist in Java code.
2935 * </p>
2936 */
2937 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA= "content_assist_autoactivation_triggers_java"; //$NON-NLS-1$
2938
2939 /**
2940 * A named preference that holds the characters that auto activate code assist in Javadoc.
2941 * <p>
2942 * Value is of type <code>String</code>. All characters that trigger auto code assist in Javadoc.
2943 * </p>
2944 */
2945 public final static String CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC= "content_assist_autoactivation_triggers_javadoc"; //$NON-NLS-1$
2946
2947 /**
2948 * A named preference that holds the background color used in the code assist selection dialog.
2949 * <p>
2950 * Value is of type <code>String</code>. A RGB color value encoded as a string
2951 * using class <code>PreferenceConverter</code>
2952 * </p>
2953 *
2954 * @see org.eclipse.jface.resource.StringConverter
2955 * @see org.eclipse.jface.preference.PreferenceConverter
2956 * @deprecated As of 3.4, replaced by {@link JFacePreferences#CONTENT_ASSIST_BACKGROUND_COLOR},
2957 */
2958 public final static String CODEASSIST_PROPOSALS_BACKGROUND= "content_assist_proposals_background"; //$NON-NLS-1$
2959
2960 /**
2961 * A named preference that holds the foreground color used in the code assist selection dialog.
2962 * <p>
2963 * Value is of type <code>String</code>. A RGB color value encoded as a string
2964 * using class <code>PreferenceConverter</code>
2965 * </p>
2966 *
2967 * @see org.eclipse.jface.resource.StringConverter
2968 * @see org.eclipse.jface.preference.PreferenceConverter
2969 * @deprecated As of 3.4, replaced by {@link JFacePreferences#CONTENT_ASSIST_FOREGROUND_COLOR},
2970 */
2971 public final static String CODEASSIST_PROPOSALS_FOREGROUND= "content_assist_proposals_foreground"; //$NON-NLS-1$
2972
2973 /**
2974 * A named preference that holds the background color used for parameter hints.
2975 * <p>
2976 * Value is of type <code>String</code>. A RGB color value encoded as a string
2977 * using class <code>PreferenceConverter</code>
2978 * </p>
2979 *
2980 * @see org.eclipse.jface.resource.StringConverter
2981 * @see org.eclipse.jface.preference.PreferenceConverter
2982 */
2983 public final static String CODEASSIST_PARAMETERS_BACKGROUND= "content_assist_parameters_background"; //$NON-NLS-1$
2984
2985 /**
2986 * A named preference that holds the foreground color used in the code assist selection dialog.
2987 * <p>
2988 * Value is of type <code>String</code>. A RGB color value encoded as a string
2989 * using class <code>PreferenceConverter</code>
2990 * </p>
2991 *
2992 * @see org.eclipse.jface.resource.StringConverter
2993 * @see org.eclipse.jface.preference.PreferenceConverter
2994 */
2995 public final static String CODEASSIST_PARAMETERS_FOREGROUND= "content_assist_parameters_foreground"; //$NON-NLS-1$
2996
2997 /**
2998 * A named preference that holds the background color used in the code
2999 * assist selection dialog to mark replaced code.
3000 * <p>
3001 * Value is of type <code>String</code>. A RGB color value encoded as a string
3002 * using class <code>PreferenceConverter</code>
3003 * </p>
3004 *
3005 * @see org.eclipse.jface.resource.StringConverter
3006 * @see org.eclipse.jface.preference.PreferenceConverter
3007 * @since 2.1
3008 */
3009 public final static String CODEASSIST_REPLACEMENT_BACKGROUND= "content_assist_completion_replacement_background"; //$NON-NLS-1$
3010
3011 /**
3012 * A named preference that holds the foreground color used in the code
3013 * assist selection dialog to mark replaced code.
3014 * <p>
3015 * Value is of type <code>String</code>. A RGB color value encoded as a string
3016 * using class <code>PreferenceConverter</code>
3017 * </p>
3018 *
3019 * @see org.eclipse.jface.resource.StringConverter
3020 * @see org.eclipse.jface.preference.PreferenceConverter
3021 * @since 2.1
3022 */
3023 public final static String CODEASSIST_REPLACEMENT_FOREGROUND= "content_assist_completion_replacement_foreground"; //$NON-NLS-1$
3024
3025 /**
3026 * A named preference that holds the favorite static members.
3027 * <p>
3028 * Value is of type <code>String</code>: semicolon separated list of favorites.
3029 * </p>
3030 *
3031 * @see org.eclipse.jface.resource.StringConverter
3032 * @see org.eclipse.jface.preference.PreferenceConverter
3033 * @since 3.3
3034 */
3035 public final static String CODEASSIST_FAVORITE_STATIC_MEMBERS= "content_assist_favorite_static_members"; //$NON-NLS-1$
3036
3037
3038 /**
3039 * A named preference that controls the behavior of the refactoring wizard for showing the error page.
3040 * <p>
3041 * Value is of type <code>String</code>. Valid values are:
3042 * <code>REFACTOR_FATAL_SEVERITY</code>,
3043 * <code>REFACTOR_ERROR_SEVERITY</code>,
3044 * <code>REFACTOR_WARNING_SEVERITY</code>
3045 * <code>REFACTOR_INFO_SEVERITY</code>,
3046 * <code>REFACTOR_OK_SEVERITY</code>.
3047 * </p>
3048 *
3049 * @see #REFACTOR_FATAL_SEVERITY
3050 * @see #REFACTOR_ERROR_SEVERITY
3051 * @see #REFACTOR_WARNING_SEVERITY
3052 * @see #REFACTOR_INFO_SEVERITY
3053 * @see #REFACTOR_OK_SEVERITY
3054 *
3055 * @deprecated Use method {@link org.eclipse.ltk.core.refactoring.RefactoringCore#getConditionCheckingFailedSeverity()}.
3056 */
3057 public static final String REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD= "Refactoring.ErrorPage.severityThreshold"; //$NON-NLS-1$
3058
3059 /**
3060 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3061 *
3062 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3063 * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#FATAL}
3064 */
3065 public static final String REFACTOR_FATAL_SEVERITY= "4"; //$NON-NLS-1$
3066
3067 /**
3068 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3069 *
3070 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3071 * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#ERROR}
3072 */
3073 public static final String REFACTOR_ERROR_SEVERITY= "3"; //$NON-NLS-1$
3074
3075 /**
3076 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3077 *
3078 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3079 * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#WARNING}
3080 */
3081 public static final String REFACTOR_WARNING_SEVERITY= "2"; //$NON-NLS-1$
3082
3083 /**
3084 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3085 *
3086 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3087 * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#INFO}
3088 */
3089 public static final String REFACTOR_INFO_SEVERITY= "1"; //$NON-NLS-1$
3090
3091 /**
3092 * A string value used by the named preference <code>REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD</code>.
3093 *
3094 * @see #REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD
3095 * @deprecated Use constant {@link org.eclipse.ltk.core.refactoring.RefactoringStatus#OK}
3096 */
3097 public static final String REFACTOR_OK_SEVERITY= "0"; //$NON-NLS-1$
3098
3099 /**
3100 * A named preference that controls whether all dirty editors are automatically saved before a refactoring is
3101 * executed.
3102 * <p>
3103 * Value is of type <code>Boolean</code>.
3104 * </p>
3105 */
3106 public static final String REFACTOR_SAVE_ALL_EDITORS= "Refactoring.savealleditors"; //$NON-NLS-1$
3107
3108 /**
3109 * A named preference that controls whether certain refactorings use a lightweight UI when
3110 * started from a Java editor.
3111 * <p>
3112 * Value is of type <code>Boolean</code>.
3113 * </p>
3114 * <p>
3115 * Note: this is work in progress and may change any time
3116 * </p>
3117 * @since 3.3
3118 */
3119 public static final String REFACTOR_LIGHTWEIGHT= "Refactor.lightweight"; //$NON-NLS-1$
3120
3121 /**
3122 * A named preference that controls a reduced search menu is used in the Java editors.
3123 * <p>
3124 * Value is of type <code>Boolean</code>.
3125 * </p>
3126 * @since 3.0
3127 */
3128 public static final String SEARCH_USE_REDUCED_MENU= "Search.usereducemenu"; //$NON-NLS-1$
3129
3130 /**
3131 * A named preference that controls if the Java Browsing views are linked to the active editor.
3132 * <p>
3133 * Value is of type <code>Boolean</code>.
3134 * </p>
3135 *
3136 */
3137 public static final String BROWSING_LINK_VIEW_TO_EDITOR= "org.eclipse.jdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
3138
3139 /**
3140 * A named preference that controls the layout of the Java Browsing views vertically. Boolean value.
3141 * <p>
3142 * Value is of type <code>Boolean</code>. If <code>true</code> the views are stacked vertical.
3143 * If <code>false</code> they are stacked horizontal.
3144 * </p>
3145 */
3146 public static final String BROWSING_STACK_VERTICALLY= "org.eclipse.jdt.ui.browsing.stackVertically"; //$NON-NLS-1$
3147
3148
3149 /**
3150 * A named preference that controls if templates are formatted when applied.
3151 * <p>
3152 * Value is of type <code>Boolean</code>.
3153 * </p>
3154 *
3155 * @since 2.1
3156 */
3157 public static final String TEMPLATES_USE_CODEFORMATTER= "org.eclipse.jdt.ui.template.format"; //$NON-NLS-1$
3158
3159 /**
3160 * A named preference that controls which profile is used by the code formatter.
3161 * <p>
3162 * Value is of type <code>String</code>.
3163 * </p>
3164 *
3165 * @since 3.0
3166 */
3167 public static final String FORMATTER_PROFILE= "formatter_profile"; //$NON-NLS-1$
3168
3169 /**
3170 * A named preference that controls whether annotation roll over is used or not.
3171 * <p>
3172 * Value is of type <code>Boolean</code>. If <code>true</code> the annotation ruler column
3173 * uses a roll over to display multiple annotations
3174 * </p>
3175 *
3176 * @since 3.0
3177 */
3178 public static final String EDITOR_ANNOTATION_ROLL_OVER= "editor_annotation_roll_over"; //$NON-NLS-1$
3179
3180 /**
3181 * A named preference that controls if content assist inserts the common
3182 * prefix of all proposals before presenting choices.
3183 * <p>
3184 * Value is of type <code>Boolean</code>.
3185 * </p>
3186 *
3187 * @since 3.0
3188 */
3189 public final static String CODEASSIST_PREFIX_COMPLETION= "content_assist_prefix_completion"; //$NON-NLS-1$
3190
3191 /**
3192 * A named preference that controls which completion proposal categories
3193 * have been excluded from the default proposal list.
3194 * <p>
3195 * Value is of type <code>String</code>, a "\0"-separated list of identifiers.
3196 * </p>
3197 *
3198 * @see #getExcludedCompletionProposalCategories()
3199 * @see #setExcludedCompletionProposalCategories(String[])
3200 * @since 3.2
3201 */
3202 public static final String CODEASSIST_EXCLUDED_CATEGORIES= "content_assist_disabled_computers"; //$NON-NLS-1$
3203
3204 /**
3205 * A named preference that controls which the order of the specific code assist commands.
3206 * <p>
3207 * Value is of type <code>String</code>, a "\0"-separated list with categoryId:cycleState where
3208 * <ul>
3209 * <li>categoryId is the <code>String</code> holding the category ID</li>
3210 * <li>cycleState is an <code>int</code> which specifies the rank and the enablement:
3211 * <ul>
3212 * <li>enabled= cycleState < 65535</li>
3213 * <li>rank= enabled ? cycleState : cycleState - 65535)</li>
3214 * </ul></li>
3215 * </ul>
3216 *
3217 * </p>
3218 *
3219 * @since 3.2
3220 */
3221 public static final String CODEASSIST_CATEGORY_ORDER= "content_assist_category_order"; //$NON-NLS-1$
3222
3223 /**
3224 * A named preference that controls whether folding is enabled in the Java editor.
3225 * <p>
3226 * Value is of type <code>Boolean</code>.
3227 * </p>
3228 *
3229 * @since 3.0
3230 */
3231 public static final String EDITOR_FOLDING_ENABLED= "editor_folding_enabled"; //$NON-NLS-1$
3232
3233 /**
3234 * A named preference that stores the configured folding provider.
3235 * <p>
3236 * Value is of type <code>String</code>.
3237 * </p>
3238 *
3239 * @since 3.0
3240 */
3241 public static final String EDITOR_FOLDING_PROVIDER= "editor_folding_provider"; //$NON-NLS-1$
3242
3243 /**
3244 * A named preference that stores the value for Javadoc folding for the default folding provider.
3245 * <p>
3246 * Value is of type <code>Boolean</code>.
3247 * </p>
3248 *
3249 * @since 3.0
3250 */
3251 public static final String EDITOR_FOLDING_JAVADOC= "editor_folding_default_javadoc"; //$NON-NLS-1$
3252
3253 /**
3254 * A named preference that stores the value for inner type folding for the default folding provider.
3255 * <p>
3256 * Value is of type <code>Boolean</code>.
3257 * </p>
3258 *
3259 * @since 3.0
3260 */
3261 public static final String EDITOR_FOLDING_INNERTYPES= "editor_folding_default_innertypes"; //$NON-NLS-1$
3262
3263 /**
3264 * A named preference that stores the value for method folding for the default folding provider.
3265 * <p>
3266 * Value is of type <code>Boolean</code>.
3267 * </p>
3268 *
3269 * @since 3.0
3270 */
3271 public static final String EDITOR_FOLDING_METHODS= "editor_folding_default_methods"; //$NON-NLS-1$
3272
3273 /**
3274 * A named preference that stores the value for imports folding for the default folding provider.
3275 * <p>
3276 * Value is of type <code>Boolean</code>.
3277 * </p>
3278 *
3279 * @since 3.0
3280 */
3281 public static final String EDITOR_FOLDING_IMPORTS= "editor_folding_default_imports"; //$NON-NLS-1$
3282
3283 /**
3284 * A named preference that stores the value for header comment folding for the default folding provider.
3285 * <p>
3286 * Value is of type <code>Boolean</code>.
3287 * </p>
3288 *
3289 * @since 3.1
3290 */
3291 public static final String EDITOR_FOLDING_HEADERS= "editor_folding_default_headers"; //$NON-NLS-1$
3292
3293 /**
3294 * A named preference that holds the methods or types whose methods are by default expanded with
3295 * constructors in the Call Hierarchy.
3296 * <p>
3297 * Value is of type <code>String</code>: semicolon separated list of fully qualified type names
3298 * appended with ".*" or "." + method name.
3299 * </p>
3300 *
3301 * @since 3.6
3302 */
3303 public static final String PREF_DEFAULT_EXPAND_WITH_CONSTRUCTORS_MEMBERS= "CallHierarchy.defaultExpandWithConstructorsMembers"; //$NON-NLS-1$
3304
3305 /**
3306 * A named preference that controls whether methods from anonymous types are by default expanded
3307 * with constructors in the Call Hierarchy.
3308 * <p>
3309 * Value is of type <code>Boolean</code>.
3310 * </p>
3311 *
3312 * @since 3.6
3313 */
3314 public static final String PREF_ANONYMOUS_EXPAND_WITH_CONSTRUCTORS= "CallHierarchy.anonymousExpandWithConstructors"; //$NON-NLS-1$
3315
3316
3317 //---------- Properties File Editor ----------
3318
3319 /**
3320 * The symbolic font name for the Java properties file editor text font
3321 * (value <code>"org.eclipse.jdt.ui.PropertiesFileEditor.textfont"</code>).
3322 *
3323 * @since 3.1
3324 */
3325 public static final String PROPERTIES_FILE_EDITOR_TEXT_FONT= "org.eclipse.jdt.ui.PropertiesFileEditor.textfont"; //$NON-NLS-1$
3326
3327 /**
3328 * A named preference that holds the color used to render keys in a properties file.
3329 * <p>
3330 * Value is of type <code>String</code>. A RGB color value encoded as a string
3331 * using class <code>PreferenceConverter</code>
3332 * </p>
3333 *
3334 * @see org.eclipse.jface.resource.StringConverter
3335 * @see org.eclipse.jface.preference.PreferenceConverter
3336 * @since 3.1
3337 */
3338 public static final String PROPERTIES_FILE_COLORING_KEY= IJavaColorConstants.PROPERTIES_FILE_COLORING_KEY;
3339
3340 /**
3341 * A named preference that controls whether keys in a properties file are rendered in bold.
3342 * <p>
3343 * Value is of type <code>Boolean</code>.
3344 * </p>
3345 *
3346 * @since 3.1
3347 */
3348 public static final String PROPERTIES_FILE_COLORING_KEY_BOLD= PROPERTIES_FILE_COLORING_KEY + EDITOR_BOLD_SUFFIX;
3349
3350 /**
3351 * A named preference that controls whether keys in a properties file are rendered in italic.
3352 * <p>
3353 * Value is of type <code>Boolean</code>.
3354 * </p>
3355 *
3356 * @since 3.1
3357 */
3358 public static final String PROPERTIES_FILE_COLORING_KEY_ITALIC= PROPERTIES_FILE_COLORING_KEY + EDITOR_ITALIC_SUFFIX;
3359
3360 /**
3361 * A named preference that controls whether keys in a properties file are rendered in strikethrough.
3362 * <p>
3363 * Value is of type <code>Boolean</code>.
3364 * </p>
3365 *
3366 * @since 3.1
3367 */
3368 public static final String PROPERTIES_FILE_COLORING_KEY_STRIKETHROUGH= PROPERTIES_FILE_COLORING_KEY + EDITOR_STRIKETHROUGH_SUFFIX;
3369
3370 /**
3371 * A named preference that controls whether keys in a properties file are rendered in underline.
3372 * <p>
3373 * Value is of type <code>Boolean</code>.
3374 * </p>
3375 *
3376 * @since 3.1
3377 */
3378 public static final String PROPERTIES_FILE_COLORING_KEY_UNDERLINE= PROPERTIES_FILE_COLORING_KEY + EDITOR_UNDERLINE_SUFFIX;
3379
3380 /**
3381 * A named preference that holds the color used to render comments in a properties file.
3382 * <p>
3383 * Value is of type <code>String</code>. A RGB color value encoded as a string
3384 * using class <code>PreferenceConverter</code>
3385 * </p>
3386 *
3387 * @see org.eclipse.jface.resource.StringConverter
3388 * @see org.eclipse.jface.preference.PreferenceConverter
3389 * @since 3.1
3390 */
3391 public static final String PROPERTIES_FILE_COLORING_COMMENT= IJavaColorConstants.PROPERTIES_FILE_COLORING_COMMENT;
3392
3393 /**
3394 * A named preference that controls whether comments in a properties file are rendered in bold.
3395 * <p>
3396 * Value is of type <code>Boolean</code>.
3397 * </p>
3398 *
3399 * @since 3.1
3400 */
3401 public static final String PROPERTIES_FILE_COLORING_COMMENT_BOLD= PROPERTIES_FILE_COLORING_COMMENT + EDITOR_BOLD_SUFFIX;
3402
3403 /**
3404 * A named preference that controls whether comments in a properties file are rendered in italic.
3405 * <p>
3406 * Value is of type <code>Boolean</code>.
3407 * </p>
3408 *
3409 * @since 3.1
3410 */
3411 public static final String PROPERTIES_FILE_COLORING_COMMENT_ITALIC= PROPERTIES_FILE_COLORING_COMMENT + EDITOR_ITALIC_SUFFIX;
3412
3413 /**
3414 * A named preference that controls whether comments in a properties file are rendered in strikethrough.
3415 * <p>
3416 * Value is of type <code>Boolean</code>.
3417 * </p>
3418 *
3419 * @since 3.1
3420 */
3421 public static final String PROPERTIES_FILE_COLORING_COMMENT_STRIKETHROUGH= PROPERTIES_FILE_COLORING_COMMENT + EDITOR_STRIKETHROUGH_SUFFIX;
3422
3423 /**
3424 * A named preference that controls whether comments in a properties file are rendered in underline.
3425 * <p>
3426 * Value is of type <code>Boolean</code>.
3427 * </p>
3428 *
3429 * @since 3.1
3430 */
3431 public static final String PROPERTIES_FILE_COLORING_COMMENT_UNDERLINE= PROPERTIES_FILE_COLORING_COMMENT + EDITOR_UNDERLINE_SUFFIX;
3432
3433 /**
3434 * A named preference that holds the color used to render values in a properties file.
3435 * <p>
3436 * Value is of type <code>String</code>. A RGB color value encoded as a string
3437 * using class <code>PreferenceConverter</code>
3438 * </p>
3439 *
3440 * @see org.eclipse.jface.resource.StringConverter
3441 * @see org.eclipse.jface.preference.PreferenceConverter
3442 * @since 3.1
3443 */
3444 public static final String PROPERTIES_FILE_COLORING_VALUE= IJavaColorConstants.PROPERTIES_FILE_COLORING_VALUE;
3445
3446 /**
3447 * A named preference that controls whether values in a properties file are rendered in bold.
3448 * <p>
3449 * Value is of type <code>Boolean</code>.
3450 * </p>
3451 *
3452 * @since 3.1
3453 */
3454 public static final String PROPERTIES_FILE_COLORING_VALUE_BOLD= PROPERTIES_FILE_COLORING_VALUE + EDITOR_BOLD_SUFFIX;
3455
3456 /**
3457 * A named preference that controls whether values in a properties file are rendered in italic.
3458 * <p>
3459 * Value is of type <code>Boolean</code>.
3460 * </p>
3461 *
3462 * @since 3.1
3463 */
3464 public static final String PROPERTIES_FILE_COLORING_VALUE_ITALIC= PROPERTIES_FILE_COLORING_VALUE + EDITOR_ITALIC_SUFFIX;
3465
3466 /**
3467 * A named preference that controls whether values in a properties file are rendered in strikethrough.
3468 * <p>
3469 * Value is of type <code>Boolean</code>.
3470 * </p>
3471 *
3472 * @since 3.1
3473 */
3474 public static final String PROPERTIES_FILE_COLORING_VALUE_STRIKETHROUGH= PROPERTIES_FILE_COLORING_VALUE + EDITOR_STRIKETHROUGH_SUFFIX;
3475
3476 /**
3477 * A named preference that controls whether values in a properties file are rendered in underline.
3478 * <p>
3479 * Value is of type <code>Boolean</code>.
3480 * </p>
3481 *
3482 * @since 3.1
3483 */
3484 public static final String PROPERTIES_FILE_COLORING_VALUE_UNDERLINE= PROPERTIES_FILE_COLORING_VALUE + EDITOR_UNDERLINE_SUFFIX;
3485
3486 /**
3487 * A named preference that holds the color used to render assignments in a properties file.
3488 * <p>
3489 * Value is of type <code>String</code>. A RGB color value encoded as a string
3490 * using class <code>PreferenceConverter</code>
3491 * </p>
3492 *
3493 * @see org.eclipse.jface.resource.StringConverter
3494 * @see org.eclipse.jface.preference.PreferenceConverter
3495 * @since 3.1
3496 */
3497 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT= IJavaColorConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT;
3498
3499 /**
3500 * A named preference that controls whether assignments in a properties file are rendered in bold.
3501 * <p>
3502 * Value is of type <code>Boolean</code>.
3503 * </p>
3504 *
3505 * @since 3.1
3506 */
3507 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_BOLD= PROPERTIES_FILE_COLORING_ASSIGNMENT + EDITOR_BOLD_SUFFIX;
3508
3509 /**
3510 * A named preference that controls whether assignments in a properties file are rendered in italic.
3511 * <p>
3512 * Value is of type <code>Boolean</code>.
3513 * </p>
3514 *
3515 * @since 3.1
3516 */
3517 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_ITALIC= PROPERTIES_FILE_COLORING_ASSIGNMENT + EDITOR_ITALIC_SUFFIX;
3518
3519 /**
3520 * A named preference that controls whether assignments in a properties file are rendered in strikethrough.
3521 * <p>
3522 * Value is of type <code>Boolean</code>.
3523 * </p>
3524 *
3525 * @since 3.1
3526 */
3527 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_STRIKETHROUGH= PROPERTIES_FILE_COLORING_ASSIGNMENT + EDITOR_STRIKETHROUGH_SUFFIX;
3528
3529 /**
3530 * A named preference that controls whether assignments in a properties file are rendered in underline.
3531 * <p>
3532 * Value is of type <code>Boolean</code>.
3533 * </p>
3534 *
3535 * @since 3.1
3536 */
3537 public static final String PROPERTIES_FILE_COLORING_ASSIGNMENT_UNDERLINE= PROPERTIES_FILE_COLORING_ASSIGNMENT + EDITOR_UNDERLINE_SUFFIX;
3538
3539 /**
3540 * A named preference that holds the color used to render arguments in a properties file.
3541 * <p>
3542 * Value is of type <code>String</code>. A RGB color value encoded as a string
3543 * using class <code>PreferenceConverter</code>
3544 * </p>
3545 *
3546 * @see org.eclipse.jface.resource.StringConverter
3547 * @see org.eclipse.jface.preference.PreferenceConverter
3548 * @since 3.1
3549 */
3550 public static final String PROPERTIES_FILE_COLORING_ARGUMENT= IJavaColorConstants.PROPERTIES_FILE_COLORING_ARGUMENT;
3551
3552 /**
3553 * A named preference that controls whether arguments in a properties file are rendered in bold.
3554 * <p>
3555 * Value is of type <code>Boolean</code>.
3556 * </p>
3557 *
3558 * @since 3.1
3559 */
3560 public static final String PROPERTIES_FILE_COLORING_ARGUMENT_BOLD= PROPERTIES_FILE_COLORING_ARGUMENT + EDITOR_BOLD_SUFFIX;
3561
3562 /**
3563 * A named preference that controls whether arguments in a properties file are rendered in italic.
3564 * <p>
3565 * Value is of type <code>Boolean</code>.
3566 * </p>
3567 *
3568 * @since 3.1
3569 */
3570 public static final String PROPERTIES_FILE_COLORING_ARGUMENT_ITALIC= PROPERTIES_FILE_COLORING_ARGUMENT + EDITOR_ITALIC_SUFFIX;
3571
3572 /**
3573 * A named preference that controls whether arguments in a properties file are rendered in strikethrough.
3574 * <p>
3575 * Value is of type <code>Boolean</code>.
3576 * </p>
3577 *
3578 * @since 3.1
3579 */
3580 public static final String PROPERTIES_FILE_COLORING_ARGUMENT_STRIKETHROUGH= PROPERTIES_FILE_COLORING_ARGUMENT + EDITOR_STRIKETHROUGH_SUFFIX;
3581
3582 /**
3583 * A named preference that controls whether arguments in a properties file are rendered in underline.
3584 * <p>
3585 * Value is of type <code>Boolean</code>.
3586 * </p>
3587 *
3588 * @since 3.1
3589 */
3590 public static final String PROPERTIES_FILE_COLORING_ARGUMENT_UNDERLINE= PROPERTIES_FILE_COLORING_ARGUMENT + EDITOR_UNDERLINE_SUFFIX;
3591
3592 /**
3593 * A named preference that stores the content assist LRU history
3594 * <p>
3595 * Value is an XML encoded version of the history.
3596 * </p>
3597 *
3598 * @see org.eclipse.jdt.internal.ui.text.java.ContentAssistHistory#load(org.eclipse.core.runtime.Preferences, String)
3599 * @since 3.2
3600 */
3601 public static final String CODEASSIST_LRU_HISTORY= "content_assist_lru_history"; //$NON-NLS-1$
3602
3603 /**
3604 * A named preference that stores the content assist sorter id.
3605 * <p>
3606 * Value is a {@link String}.
3607 * </p>
3608 *
3609 * @see ProposalSorterRegistry
3610 * @since 3.2
3611 */
3612 public static final String CODEASSIST_SORTER= "content_assist_sorter"; //$NON-NLS-1$
3613
3614 /**
3615 * A named preference that holds the source hover background color.
3616 * <p>
3617 * Value is of type <code>String</code>. A RGB color value encoded as a string
3618 * using class <code>PreferenceConverter</code>
3619 * </p>
3620 *
3621 * @see org.eclipse.jface.resource.StringConverter
3622 * @see org.eclipse.jface.preference.PreferenceConverter
3623 * @since 3.3
3624 */
3625 public final static String EDITOR_SOURCE_HOVER_BACKGROUND_COLOR= "sourceHoverBackgroundColor"; //$NON-NLS-1$
3626
3627 /**
3628 * A named preference that tells whether to use the system
3629 * default color ({@link SWT#COLOR_INFO_BACKGROUND}) for
3630 * the source hover background color.
3631 * <p>
3632 * Value is of type <code>Boolean</code>.
3633 * </p>
3634 *
3635 * @see org.eclipse.jface.resource.StringConverter
3636 * @see org.eclipse.jface.preference.PreferenceConverter
3637 * @since 3.3
3638 */
3639 public final static String EDITOR_SOURCE_HOVER_BACKGROUND_COLOR_SYSTEM_DEFAULT= "sourceHoverBackgroundColor.SystemDefault"; //$NON-NLS-1$
3640
3641 /**
3642 * Initializes the given preference store with the default values.
3643 *
3644 * @param store the preference store to be initialized
3645 *
3646 * @since 2.1
3647 */
3648 public static void initializeDefaultValues(IPreferenceStore store) {
3649
3650 store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
3651
3652 // JavaBasePreferencePage
3653 store.setDefault(PreferenceConstants.OPEN_TYPE_HIERARCHY, PreferenceConstants.OPEN_TYPE_HIERARCHY_IN_VIEW_PART);
3654 store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
3655 store.setDefault(PreferenceConstants.UPDATE_JAVA_VIEWS, PreferenceConstants.UPDATE_WHILE_EDITING);
3656 store.setToDefault(PreferenceConstants.UPDATE_JAVA_VIEWS); // clear preference, update on save not supported anymore
3657
3658 store.setDefault(PreferenceConstants.LINK_BROWSING_PROJECTS_TO_EDITOR, true);
3659 store.setDefault(PreferenceConstants.LINK_BROWSING_PACKAGES_TO_EDITOR, true);
3660 store.setDefault(PreferenceConstants.LINK_BROWSING_TYPES_TO_EDITOR, true);
3661 store.setDefault(PreferenceConstants.LINK_BROWSING_MEMBERS_TO_EDITOR, true);
3662
3663 store.setDefault(PreferenceConstants.SEARCH_USE_REDUCED_MENU, true);
3664
3665 // AppearancePreferencePage
3666 store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false);
3667 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, true);
3668 store.setDefault(PreferenceConstants.APPEARANCE_METHOD_TYPEPARAMETERS, true);
3669 store.setDefault(PreferenceConstants.APPEARANCE_CATEGORY, true);
3670 store.setDefault(PreferenceConstants.SHOW_CU_CHILDREN, true);
3671 store.setDefault(PreferenceConstants.BROWSING_STACK_VERTICALLY, false);
3672 store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
3673 store.setDefault(PreferenceConstants.APPEARANCE_FOLD_PACKAGES_IN_PACKAGE_EXPLORER, true);
3674 store.setDefault(PreferenceConstants.APPEARANCE_ABBREVIATE_PACKAGE_NAMES, false);
3675 store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_ABBREVIATION_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
3676
3677 // ImportOrganizePreferencePage
3678 store.setDefault(PreferenceConstants.ORGIMPORTS_IMPORTORDER, "java;javax;org;com"); //$NON-NLS-1$
3679 store.setDefault(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
3680 store.setDefault(PreferenceConstants.ORGIMPORTS_STATIC_ONDEMANDTHRESHOLD, 99);
3681 store.setDefault(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE, true);
3682
3683 // TypeFilterPreferencePage
3684 store.setDefault(PreferenceConstants.TYPEFILTER_ENABLED, ""); //$NON-NLS-1$
3685 store.setDefault(PreferenceConstants.TYPEFILTER_DISABLED, ""); //$NON-NLS-1$
3686
3687 // ClasspathVariablesPreferencePage
3688 // CodeFormatterPreferencePage
3689 // CompilerPreferencePage
3690 // no initialization needed
3691
3692 // RefactoringPreferencePage
3693 store.setDefault(PreferenceConstants.REFACTOR_ERROR_PAGE_SEVERITY_THRESHOLD, PreferenceConstants.REFACTOR_WARNING_SEVERITY);
3694 store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
3695 store.setDefault(PreferenceConstants.REFACTOR_LIGHTWEIGHT, true);
3696
3697 // TemplatePreferencePage
3698 store.setDefault(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER, true);
3699
3700 // CodeGenerationPreferencePage
3701 // compatibility code
3702 if (store.getBoolean(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX)) {
3703 String prefix= store.getString(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX);
3704 if (prefix.length() > 0) {
3705 InstanceScope.INSTANCE.getNode(JavaCore.PLUGIN_ID).put(JavaCore.CODEASSIST_FIELD_PREFIXES, prefix);
3706 store.setToDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX);
3707 store.setToDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX);
3708 }
3709 }
3710 if (store.getBoolean(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX)) {
3711 String suffix= store.getString(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX);
3712 if (suffix.length() > 0) {
3713 InstanceScope.INSTANCE.getNode(JavaCore.PLUGIN_ID).put(JavaCore.CODEASSIST_FIELD_SUFFIXES, suffix);
3714 store.setToDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX);
3715 store.setToDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX);
3716 }
3717 }
3718 store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS, false);
3719 store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true);
3720 store.setDefault(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$
3721 store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, false);
3722 store.setDefault(PreferenceConstants.CODEGEN_USE_OVERRIDE_ANNOTATION, true);
3723
3724 // MembersOrderPreferencePage
3725 store.setDefault(PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER, "T,SF,SI,SM,F,I,C,M"); //$NON-NLS-1$
3726 store.setDefault(PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER, "B,V,R,D"); //$NON-NLS-1$
3727 store.setDefault(PreferenceConstants.APPEARANCE_ENABLE_VISIBILITY_SORT_ORDER, false);
3728
3729 // JavaEditorPreferencePage
3730 store.setDefault(PreferenceConstants.EDITOR_MATCHING_BRACKETS, true);
3731 store.setDefault(PreferenceConstants.EDITOR_HIGHLIGHT_BRACKET_AT_CARET_LOCATION, false);
3732 store.setDefault(PreferenceConstants.EDITOR_ENCLOSING_BRACKETS, false);
3733
3734 store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, true);
3735 store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true);
3736
3737 store.setDefault(PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, true);
3738
3739 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_LINKED_POSITION_COLOR, new RGB(121, 121, 121));
3740
3741 store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
3742 store.setDefault(PreferenceConstants.EDITOR_SPACES_FOR_TABS, false);
3743
3744
3745 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_BOLD, false);
3746 store.setDefault(PreferenceConstants.EDITOR_MULTI_LINE_COMMENT_ITALIC, false);
3747
3748
3749 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false);
3750 store.setDefault(PreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_ITALIC, false);
3751
3752 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_BOLD, true);
3753 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_ITALIC, false);
3754
3755 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_ANNOTATION_COLOR, new RGB(100, 100, 100));
3756 store.setDefault(PreferenceConstants.EDITOR_JAVA_ANNOTATION_BOLD, false);
3757 store.setDefault(PreferenceConstants.EDITOR_JAVA_ANNOTATION_ITALIC, false);
3758
3759
3760 store.setDefault(PreferenceConstants.EDITOR_STRING_BOLD, false);
3761 store.setDefault(PreferenceConstants.EDITOR_STRING_ITALIC, false);
3762
3763 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_BOLD, false);
3764 store.setDefault(PreferenceConstants.EDITOR_JAVA_DEFAULT_ITALIC, false);
3765
3766 PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_JAVA_METHOD_NAME_COLOR, new RGB(0, 0, 0));
3767 store.setDefault(PreferenceConstants.EDITOR_JAVA_METHOD_NAME_BOLD, false);
3768 store.setDefault(PreferenceConstants.EDITOR_JAVA_METHOD_NAME_ITALIC, false);
3769
3770 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_RETURN_BOLD, true);
3771 store.setDefault(PreferenceConstants.EDITOR_JAVA_KEYWORD_RETURN_ITALIC, false);
3772
3773 store.setDefault(PreferenceConstants.EDITOR_JAVA_OPERATOR_BOLD, false);
3774 store.setDefault(PreferenceConstants.EDITOR_JAVA_OPERATOR_ITALIC, false);
3775
3776 store.setDefault(PreferenceConstants.EDITOR_JAVA_BRACKET_BOLD, false);
3777 store.setDefault(PreferenceConstants.EDITOR_JAVA_BRACKET_ITALIC, false);
3778
3779 store.setDefault(PreferenceConstants.EDITOR_TASK_TAG_BOLD, true);
3780 store.setDefault(PreferenceConstants.EDITOR_TASK_TAG_ITALIC, false);
3781
3782 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_BOLD, true);
3783 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_KEYWORD_ITALIC, false);
3784
3785 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_BOLD, false);
3786 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_TAG_ITALIC, false);
3787
3788 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_BOLD, false);
3789 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_LINKS_ITALIC, false);
3790
3791 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_BOLD, false);
3792 store.setDefault(PreferenceConstants.EDITOR_JAVADOC_DEFAULT_ITALIC, false);
3793
3794 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION, true);
3795 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 200);
3796 store.setDefault(PreferenceConstants.CODEASSIST_AUTOINSERT, true);
3797
3798 // Set the value for the deprecated color constants
3799 initializeDeprecatedColorConstants(store);
3800
3801 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, "."); //$NON-NLS-1$
3802 store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, "@#"); //$NON-NLS-1$
3803 store.setDefault(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, true);
3804 store.setDefault(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY, false);
3805 store.setDefault(PreferenceConstants.CODEASSIST_ADDIMPORT, true);
3806 store.setDefault(PreferenceConstants.CODEASSIST_INSERT_COMPLETION, true);
3807 store.setDefault(PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, true);
3808 store.setDefault(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, false);
3809 store.setDefault(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, false);
3810 store.setDefault(PreferenceConstants.CODEASSIST_EXCLUDED_CATEGORIES, "org.eclipse.jdt.ui.textProposalCategory\0org.eclipse.jdt.ui.javaTypeProposalCategory\0org.eclipse.jdt.ui.javaNoTypeProposalCategory\0"); //$NON-NLS-1$
3811 store.setDefault(PreferenceConstants.CODEASSIST_CATEGORY_ORDER, "org.eclipse.jdt.ui.spellingProposalCategory:65545\0org.eclipse.jdt.ui.javaTypeProposalCategory:65540\0org.eclipse.jdt.ui.javaNoTypeProposalCategory:65539\0org.eclipse.jdt.ui.textProposalCategory:65541\0org.eclipse.jdt.ui.javaAllProposalCategory:65542\0org.eclipse.jdt.ui.templateProposalCategory:2\0org.eclipse.jdt.ui.swtProposalCategory:3\0"); //$NON-NLS-1$
3812 store.setDefault(PreferenceConstants.CODEASSIST_LRU_HISTORY, ""); //$NON-NLS-1$
3813 store.setDefault(PreferenceConstants.CODEASSIST_SORTER, "org.eclipse.jdt.ui.RelevanceSorter"); //$NON-NLS-1$
3814 store.setDefault(PreferenceConstants.CODEASSIST_FAVORITE_STATIC_MEMBERS, ""); //$NON-NLS-1$
3815
3816 store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
3817 store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
3818 store.setDefault(PreferenceConstants.EDITOR_IMPORTS_ON_PASTE, true);
3819 store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS, true);
3820 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS, true);
3821 store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
3822 store.setDefault(PreferenceConstants.EDITOR_CLOSE_JAVADOCS, true);
3823 store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
3824 store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS, false);
3825 store.setDefault(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS, true);
3826 store.setDefault(PreferenceConstants.EDITOR_FORMAT_JAVADOCS, false);
3827 store.setDefault(PreferenceConstants.EDITOR_SMART_INDENT_AFTER_NEWLINE, true);
3828
3829 int sourceHoverModifier= SWT.MOD2;
3830 String sourceHoverModifierName= Action.findModifierString(sourceHoverModifier); // Shift
3831 int nlsHoverModifier= SWT.MOD1 + SWT.MOD3;
3832 String nlsHoverModifierName= Action.findModifierString(SWT.MOD1) + "+" + Action.findModifierString(SWT.MOD3); // Ctrl + Alt //$NON-NLS-1$
3833 int javadocHoverModifier= SWT.MOD1 + SWT.MOD2;
3834 String javadocHoverModifierName= Action.findModifierString(SWT.MOD1) + "+" + Action.findModifierString(SWT.MOD2); // Ctrl + Shift //$NON-NLS-1$
3835 store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS, "org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.ui.JavaSourceHover;" + sourceHoverModifierName + ";org.eclipse.jdt.ui.NLSStringHover;" + nlsHoverModifierName + ";org.eclipse.jdt.ui.JavadocHover;" + javadocHoverModifierName); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
3836 store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS, "org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.ui.JavaSourceHover;" + sourceHoverModifier + ";org.eclipse.jdt.ui.NLSStringHover;" + nlsHoverModifier + ";org.eclipse.jdt.ui.JavadocHover;" + javadocHoverModifier); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
3837
3838 store.setDefault(PreferenceConstants.EDITOR_SMART_TAB, true);
3839 store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE, true);
3840 store.setDefault(PreferenceConstants.EDITOR_ANNOTATION_ROLL_OVER, false);
3841
3842 store.setDefault(EDITOR_SOURCE_HOVER_BACKGROUND_COLOR_SYSTEM_DEFAULT, true);
3843
3844 store.setDefault(PreferenceConstants.FORMATTER_PROFILE, FormatterProfileManager.DEFAULT_PROFILE);
3845
3846 // mark occurrences
3847 store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true);
3848 store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true);
3849 store.setDefault(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES, true);
3850 store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES, true);
3851 store.setDefault(PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES, true);
3852 store.setDefault(PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES, true);
3853 store.setDefault(PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES, true);
3854 store.setDefault(PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES, true);
3855 store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS, true);
3856 store.setDefault(PreferenceConstants.EDITOR_MARK_BREAK_CONTINUE_TARGETS, true);
3857 store.setDefault(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, true);
3858
3859
3860 // spell checking
3861 store.setDefault(PreferenceConstants.SPELLING_LOCALE, "en_US"); //$NON-NLS-1$
3862 String isInitializedKey= "spelling_locale_initialized"; //$NON-NLS-1$
3863 if (!store.getBoolean(isInitializedKey)) {
3864 store.setValue(isInitializedKey, true);
3865 Locale locale= SpellCheckEngine.getDefaultLocale();
3866 locale= SpellCheckEngine.findClosestLocale(locale);
3867 if (locale != null)
3868 store.setValue(PreferenceConstants.SPELLING_LOCALE, locale.toString());
3869 }
3870 store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS, true);
3871 store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED, true);
3872 store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE, true);
3873 store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER, true);
3874 store.setDefault(PreferenceConstants.SPELLING_IGNORE_URLS, true);
3875 store.setDefault(PreferenceConstants.SPELLING_IGNORE_SINGLE_LETTERS, true);
3876 store.setDefault(PreferenceConstants.SPELLING_IGNORE_AMPERSAND_IN_PROPERTIES, true);
3877 store.setDefault(PreferenceConstants.SPELLING_IGNORE_NON_LETTERS, true);
3878 store.setDefault(PreferenceConstants.SPELLING_IGNORE_JAVA_STRINGS, true);
3879 store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$
3880
3881 // Note: For backwards compatibility we must use the property and not the workspace default
3882 store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY_ENCODING, System.getProperty("file.encoding")); //$NON-NLS-1$
3883
3884 store.setDefault(PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20);
3885 store.setDefault(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD, 100);
3886 /*
3887 * XXX: This is currently disabled because the spelling engine
3888 * cannot return word proposals but only correction proposals.
3889 */
3890 store.setToDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST);
3891
3892
3893 // folding
3894 store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
3895 store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER, "org.eclipse.jdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
3896 store.setDefault(PreferenceConstants.EDITOR_FOLDING_JAVADOC, false);
3897 store.setDefault(PreferenceConstants.EDITOR_FOLDING_INNERTYPES, false);
3898 store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false);
3899 store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, true);
3900 store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS, true);
3901
3902 // properties file editor
3903 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_KEY_BOLD, false);
3904 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_KEY_ITALIC, false);
3905
3906 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_VALUE_BOLD, false);
3907 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_VALUE_ITALIC, false);
3908
3909 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT_BOLD, false);
3910 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_ASSIGNMENT_ITALIC, false);
3911
3912 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_ARGUMENT_BOLD, true);
3913 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_ARGUMENT_ITALIC, false);
3914
3915 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT_BOLD, false);
3916 store.setDefault(PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT_ITALIC, false);
3917
3918 // semantic highlighting
3919 SemanticHighlightings.initDefaults(store);
3920
3921 // do more complicated stuff
3922 NewJavaProjectPreferencePage.initDefaults(store);
3923
3924 // reset preferences that are not settable by editor any longer
3925 // see AbstractDecoratedTextEditorPreferenceConstants
3926 store.setToDefault(EDITOR_SMART_HOME_END); // global
3927 store.setToDefault(EDITOR_LINE_NUMBER_RULER); // global
3928 store.setToDefault(EDITOR_LINE_NUMBER_RULER_COLOR); // global
3929 store.setToDefault(EDITOR_OVERVIEW_RULER); // removed -> true
3930 store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_USE_CUSTOM_CARETS); // accessibility
3931
3932 store.setToDefault(PreferenceConstants.EDITOR_CURRENT_LINE); // global
3933 store.setToDefault(PreferenceConstants.EDITOR_CURRENT_LINE_COLOR); // global
3934
3935 store.setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN); // global
3936 store.setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLUMN); // global
3937 store.setToDefault(PreferenceConstants.EDITOR_PRINT_MARGIN_COLOR); // global
3938
3939 store.setToDefault(PreferenceConstants.EDITOR_FOREGROUND_COLOR); // global
3940 store.setToDefault(PreferenceConstants.EDITOR_FOREGROUND_DEFAULT_COLOR); // global
3941 store.setToDefault(PreferenceConstants.EDITOR_BACKGROUND_COLOR); // global
3942 store.setToDefault(PreferenceConstants.EDITOR_BACKGROUND_DEFAULT_COLOR); // global
3943 store.setToDefault(PreferenceConstants.EDITOR_FIND_SCOPE_COLOR); // global
3944 store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR); // global
3945 store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR); // global
3946
3947 store.setToDefault(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE); // global
3948
3949 store.setToDefault(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED); // removed
3950
3951 store.setToDefault(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE); // global
3952
3953
3954 //Code Clean Up
3955 CleanUpConstants.initDefaults(store);
3956
3957 // Colors that are set by the current theme
3958 JavaUIPreferenceInitializer.setThemeBasedPreferences(store, false);
3959
3960 store.setDefault(PREF_ANONYMOUS_EXPAND_WITH_CONSTRUCTORS, true);
3961 store.setDefault(PREF_DEFAULT_EXPAND_WITH_CONSTRUCTORS_MEMBERS, "java.lang.Runnable.run;java.util.concurrent.Callable.call;org.eclipse.swt.widgets.Listener.handleEvent"); //$NON-NLS-1$
3962 // compatibility code
3963 String str= store.getString(CallHierarchyContentProvider.OLD_PREF_DEFAULT_EXPAND_WITH_CONSTRUCTORS);
3964 if (str.length() > 0) {
3965 String[] oldPrefStr= str.split(";"); //$NON-NLS-1$
3966 for (int i= 0; i < oldPrefStr.length; i++) {
3967 oldPrefStr[i]= oldPrefStr[i] + (".*"); //$NON-NLS-1$
3968 }
3969 store.setValue(PREF_DEFAULT_EXPAND_WITH_CONSTRUCTORS_MEMBERS, ExpandWithConstructorsConfigurationBlock.serializeMembers(Arrays.asList(oldPrefStr)));
3970 store.setToDefault(CallHierarchyContentProvider.OLD_PREF_DEFAULT_EXPAND_WITH_CONSTRUCTORS);
3971 }
3972 }
3973
3974 /**
3975 * Returns the JDT-UI preference store.
3976 *
3977 * @return the JDT-UI preference store
3978 */
3979 public static IPreferenceStore getPreferenceStore() {
3980 return JavaPlugin.getDefault().getPreferenceStore();
3981 }
3982
3983 /**
3984 * Encodes a JRE library to be used in the named preference <code>NEWPROJECT_JRELIBRARY_LIST</code>.
3985 *
3986 * @param description a string value describing the JRE library. The description is used
3987 * to identify the JDR library in the UI
3988 * @param entries an array of classpath entries to be encoded
3989 *
3990 * @return the encoded string.
3991 */
3992 public static String encodeJRELibrary(String description, IClasspathEntry[] entries) {
3993 return NewJavaProjectPreferencePage.encodeJRELibrary(description, entries);
3994 }
3995
3996 /**
3997 * Decodes an encoded JRE library and returns its description string.
3998 * @param encodedLibrary the encoded library
3999 * @return the description of an encoded JRE library
4000 *
4001 * @see #encodeJRELibrary(String, IClasspathEntry[])
4002 */
4003 public static String decodeJRELibraryDescription(String encodedLibrary) {
4004 return NewJavaProjectPreferencePage.decodeJRELibraryDescription(encodedLibrary);
4005 }
4006
4007 /**
4008 * Decodes an encoded JRE library and returns its class path entries.
4009 * @param encodedLibrary the encoded library
4010 * @return the array of classpath entries of an encoded JRE library.
4011 *
4012 * @see #encodeJRELibrary(String, IClasspathEntry[])
4013 */
4014 public static IClasspathEntry[] decodeJRELibraryClasspathEntries(String encodedLibrary) {
4015 return NewJavaProjectPreferencePage.decodeJRELibraryClasspathEntries(encodedLibrary);
4016 }
4017
4018 /**
4019 * Returns the current configuration for the JRE to be used as default in new Java projects.
4020 * This is a convenience method to access the named preference <code>NEWPROJECT_JRELIBRARY_LIST
4021 * </code> with the index defined by <code> NEWPROJECT_JRELIBRARY_INDEX</code>.
4022 *
4023 * @return the current default set of class path entries
4024 *
4025 * @see #NEWPROJECT_JRELIBRARY_LIST
4026 * @see #NEWPROJECT_JRELIBRARY_INDEX
4027 */
4028 public static IClasspathEntry[] getDefaultJRELibrary() {
4029 return NewJavaProjectPreferencePage.getDefaultJRELibrary();
4030 }
4031
4032 /**
4033 * Returns the completion proposal categories which
4034 * are excluded from the default proposal list.
4035 *
4036 * @return an array with the IDs of the excluded categories
4037 * @see #CODEASSIST_EXCLUDED_CATEGORIES
4038 * @since 3.4
4039 */
4040 public static String[] getExcludedCompletionProposalCategories() {
4041 String encodedPreference= getPreference(CODEASSIST_EXCLUDED_CATEGORIES, null);
4042 StringTokenizer tokenizer= new StringTokenizer(encodedPreference, "\0"); //$NON-NLS-1$
4043 String[] result= new String[tokenizer.countTokens()];
4044 for (int i= 0; i < result.length; i++)
4045 result[i]= tokenizer.nextToken();
4046 return result;
4047 }
4048
4049 /**
4050 * Sets the completion proposal categories which are excluded from the
4051 * default proposal list and reloads the registry.
4052 *
4053 * @param categories the array with the IDs of the excluded categories
4054 * @see #CODEASSIST_EXCLUDED_CATEGORIES
4055 * @since 3.4
4056 */
4057 public static void setExcludedCompletionProposalCategories(String[] categories) {
4058 Assert.isLegal(categories != null);
4059 StringBuffer buf= new StringBuffer(50 * categories.length);
4060 for (int i= 0; i < categories.length; i++) {
4061 buf.append(categories[i]);
4062 buf.append('\0');
4063 }
4064 getPreferenceStore().setValue(CODEASSIST_EXCLUDED_CATEGORIES, buf.toString());
4065 CompletionProposalComputerRegistry.getDefault().reload();
4066 }
4067
4068 /**
4069 * Returns the value for the given key in the given context.
4070 * @param key The preference key
4071 * @param project The current context or <code>null</code> if no context is available and the
4072 * workspace setting should be taken. Note that passing <code>null</code> should
4073 * be avoided.
4074 * @return Returns the current value for the string.
4075 * @since 3.1
4076 */
4077 public static String getPreference(String key, IJavaProject project) {
4078 String val;
4079 if (project != null) {
4080 val= new ProjectScope(project.getProject()).getNode(JavaUI.ID_PLUGIN).get(key, null);
4081 if (val != null) {
4082 return val;
4083 }
4084 }
4085 val= InstanceScope.INSTANCE.getNode(JavaUI.ID_PLUGIN).get(key, null);
4086 if (val != null) {
4087 return val;
4088 }
4089 return DefaultScope.INSTANCE.getNode(JavaUI.ID_PLUGIN).get(key, null);
4090 }
4091
4092 /**
4093 * This stores the given RGB value without firing
4094 * a property changed event.
4095 *
4096 * @param store the preference store
4097 * @param key the key
4098 * @param rgb the RGB value
4099 * @since 3.4
4100 */
4101 private static void setRGBValue(IPreferenceStore store, String key, RGB rgb) {
4102 PreferenceConverter.setDefault(store, key, rgb);
4103 String value= store.getString(key);
4104 store.putValue(key, value);
4105 }
4106
4107 /**
4108 * Initializes deprecated color constants.
4109 *
4110 * @param store the preference store
4111 * @since 3.6
4112 */
4113 private static void initializeDeprecatedColorConstants(IPreferenceStore store) {
4114 RGB bgRGB= null;
4115 RGB fgRGB= null;
4116
4117 // Don't fail in headless mode
4118 if (PlatformUI.isWorkbenchRunning()) {
4119 bgRGB= JFaceResources.getColorRegistry().getRGB(JFacePreferences.CONTENT_ASSIST_BACKGROUND_COLOR);
4120 fgRGB= JFaceResources.getColorRegistry().getRGB(JFacePreferences.CONTENT_ASSIST_FOREGROUND_COLOR);
4121 }
4122
4123 // Workaround for https://bugs.eclipse.org/306736
4124 if (bgRGB == null)
4125 bgRGB= new RGB(255, 255, 255);
4126 if (fgRGB == null)
4127 fgRGB= new RGB(0, 0, 0);
4128
4129 setRGBValue(store, PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND, bgRGB);
4130 setRGBValue(store, PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND, fgRGB);
4131
4132 }
4133
4134}
4135