Lines 19-24
Link Here
|
19 |
|
19 |
|
20 |
public class TclPreferenceConstants extends PreferenceConstants { |
20 |
public class TclPreferenceConstants extends PreferenceConstants { |
21 |
|
21 |
|
|
|
22 |
/** |
23 |
* A named preference that holds the color used to render keyword. |
24 |
* <p> |
25 |
* Value is of type <code>String</code>. A RGB color value encoded as a string using class <code>PreferenceConverter</code> |
26 |
* </p> |
27 |
* |
28 |
* @see org.eclipse.jface.resource.StringConverter |
29 |
* @see org.eclipse.jface.preference.PreferenceConverter |
30 |
*/ |
31 |
public final static String EDITOR_KEYWORD_RETURN_COLOR = TclColorConstants.TCL_KEYWORD_RETURN; |
32 |
|
33 |
/** |
34 |
* A named preference that controls whether kwyword are rendered in bold. |
35 |
* <p> |
36 |
* Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered in bold. If <code>false</code> the are |
37 |
* rendered using no font style attribute. |
38 |
* </p> |
39 |
*/ |
40 |
public final static String EDITOR_KEYWORD_RETURN_BOLD = TclColorConstants.TCL_KEYWORD_RETURN + EDITOR_BOLD_SUFFIX; |
41 |
|
42 |
/** |
43 |
* A named preference that controls whether keyword are rendered in italic. |
44 |
* <p> |
45 |
* Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered in italic. If <code>false</code> the |
46 |
* are rendered using no italic font style attribute. |
47 |
* </p> |
48 |
*/ |
49 |
public final static String EDITOR_KEYWORD_RETURN_ITALIC = TclColorConstants.TCL_KEYWORD_RETURN + EDITOR_ITALIC_SUFFIX; |
50 |
|
51 |
/** |
52 |
* A named preference that controls whether single line comments are rendered in strikethrough. |
53 |
* <p> |
54 |
* Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered in strikethrough. If <code>false</code> |
55 |
* the are rendered using no italic font style attribute. |
56 |
* </p> |
57 |
*/ |
58 |
public final static String EDITOR_KEYWORD_RETURN_STRIKETHROUGH = TclColorConstants.TCL_KEYWORD_RETURN + EDITOR_STRIKETHROUGH_SUFFIX; |
59 |
|
60 |
/** |
61 |
* A named preference that controls whether keyword are rendered in underline. |
62 |
* <p> |
63 |
* Value is of type <code>Boolean</code>. If <code>true</code> single line comments are rendered in underline. If <code>false</code> |
64 |
* the are rendered using no italic font style attribute. |
65 |
* </p> |
66 |
* |
67 |
* |
68 |
*/ |
69 |
public final static String EDITOR_KEYWORD_RETURN_UNDERLINE = TclColorConstants.TCL_KEYWORD_RETURN + EDITOR_UNDERLINE_SUFFIX; |
70 |
|
71 |
|
22 |
/** |
72 |
/** |
23 |
* A named preference that holds the color used to render single line |
73 |
* A named preference that holds the color used to render single line |
24 |
* comments. |
74 |
* comments. |
Lines 393-398
Link Here
|
393 |
PreferenceConverter.setDefault(store, |
443 |
PreferenceConverter.setDefault(store, |
394 |
TclPreferenceConstants.EDITOR_KEYWORD_COLOR, |
444 |
TclPreferenceConstants.EDITOR_KEYWORD_COLOR, |
395 |
new RGB(127, 0, 85)); |
445 |
new RGB(127, 0, 85)); |
|
|
446 |
PreferenceConverter.setDefault( store, |
447 |
TclPreferenceConstants.EDITOR_KEYWORD_RETURN_COLOR, |
448 |
new RGB( 127, 0, 85 ) ); |
449 |
|
396 |
PreferenceConverter |
450 |
PreferenceConverter |
397 |
.setDefault(store, TclPreferenceConstants.EDITOR_STRING_COLOR, |
451 |
.setDefault(store, TclPreferenceConstants.EDITOR_STRING_COLOR, |
398 |
new RGB(42, 0, 255)); |
452 |
new RGB(42, 0, 255)); |
Lines 413-418
Link Here
|
413 |
|
467 |
|
414 |
store.setDefault(TclPreferenceConstants.EDITOR_KEYWORD_BOLD, true); |
468 |
store.setDefault(TclPreferenceConstants.EDITOR_KEYWORD_BOLD, true); |
415 |
store.setDefault(TclPreferenceConstants.EDITOR_KEYWORD_ITALIC, false); |
469 |
store.setDefault(TclPreferenceConstants.EDITOR_KEYWORD_ITALIC, false); |
|
|
470 |
store.setDefault(TclPreferenceConstants.EDITOR_KEYWORD_RETURN_BOLD, true ); |
471 |
store.setDefault(TclPreferenceConstants.EDITOR_KEYWORD_RETURN_ITALIC, false ); |
416 |
|
472 |
|
417 |
store.setDefault(TclPreferenceConstants.EDITOR_CLOSE_STRINGS, true); |
473 |
store.setDefault(TclPreferenceConstants.EDITOR_CLOSE_STRINGS, true); |
418 |
store.setDefault(TclPreferenceConstants.EDITOR_CLOSE_BRACKETS, true); |
474 |
store.setDefault(TclPreferenceConstants.EDITOR_CLOSE_BRACKETS, true); |