| author | pschonbac | 2009-04-20 12:19:39 (EDT) |
|---|---|---|
| committer | sefftinge | 2009-04-20 12:19:39 (EDT) |
| commit | 4187be722d9a8fdedf06e903e2c22028acbe27da (patch) (side-by-side diff) | |
| tree | fb403c8992a304838b6902dfe32e252eee2b3543 | |
| parent | efcb26ae5f8bfb1d3ab77c5c89ad6817dbb0e529 (diff) | |
| download | org.eclipse.xtext-4187be722d9a8fdedf06e903e2c22028acbe27da.zip org.eclipse.xtext-4187be722d9a8fdedf06e903e2c22028acbe27da.tar.gz org.eclipse.xtext-4187be722d9a8fdedf06e903e2c22028acbe27da.tar.bz2 | |
Typos fixed
3 files changed, 12 insertions, 12 deletions
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/preferencepage/CommonPreferenceConstants.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/preferencepage/CommonPreferenceConstants.java index e1d8c69..dd44364 100644 --- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/preferencepage/CommonPreferenceConstants.java +++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/preferencepage/CommonPreferenceConstants.java @@ -19,10 +19,10 @@ public class CommonPreferenceConstants extends org.eclipse.xtext.ui.core.editor. public static final String SYNTAX_COLORER_PREFERENCE_TAG = "syntaxColorer"; public static final String TOKEN_STYLES_PREFERENCE_TAG = "tokenStyles"; - public static final String COLOR_SUFIX = "color"; - public static final String BACKGROUNDCOLOR_SUFIX = "bgColor"; - public static final String STYLE_SUFIX = "style"; - public static final String FONT_SUFIX = "font"; + public static final String COLOR_SUFFIX = "color"; + public static final String BACKGROUNDCOLOR_SUFFIX = "bgColor"; + public static final String STYLE_SUFFIX = "style"; + public static final String FONT_SUFFIX = "font"; // // public static final String PREF_TASK_PRIORITIES = "xtext.taskTags"; //$NON-NLS-1$; // public static final String PREF_TASK_TAGS = "xtext.taskPriorities"; //$NON-NLS-1$ diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/PreferenceStoreAccessor.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/PreferenceStoreAccessor.java index 3a20b65..3868b5c 100644 --- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/PreferenceStoreAccessor.java +++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/PreferenceStoreAccessor.java @@ -108,19 +108,19 @@ public class PreferenceStoreAccessor { } public static String getTokenColorPreferenceKey(String tokenType) { - return tokenType + SEPARATOR + CommonPreferenceConstants.COLOR_SUFIX; + return tokenType + SEPARATOR + CommonPreferenceConstants.COLOR_SUFFIX; } public static String getTokenBackgroundColorPreferenceKey(String tokenType) { - return tokenType + SEPARATOR + BACKGROUNDCOLOR_SUFIX; + return tokenType + SEPARATOR + BACKGROUNDCOLOR_SUFFIX; } public static String getTokenFontPreferenceKey(String tokenType) { - return tokenType + SEPARATOR + FONT_SUFIX; + return tokenType + SEPARATOR + FONT_SUFFIX; } public static String getTokenStylePreferenceKey(String tokenType) { - return tokenType + SEPARATOR + STYLE_SUFIX; + return tokenType + SEPARATOR + STYLE_SUFFIX; } public static String syntaxColorerTag(String languageName) { diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/TokenTypeDefDetailsPart.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/TokenTypeDefDetailsPart.java index a8098d1..8e6cbbe 100644 --- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/TokenTypeDefDetailsPart.java +++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/TokenTypeDefDetailsPart.java @@ -31,14 +31,14 @@ public class TokenTypeDefDetailsPart extends AbstractDetailsPart { protected void createFieldEditors() { { // Foreground - addField(new ColorFieldEditor(CommonPreferenceConstants.COLOR_SUFIX, "Color", getFieldEditorParent())); + addField(new ColorFieldEditor(CommonPreferenceConstants.COLOR_SUFFIX, "Color", getFieldEditorParent())); // Background - addField(new ColorFieldEditor(CommonPreferenceConstants.BACKGROUNDCOLOR_SUFIX, "Background", + addField(new ColorFieldEditor(CommonPreferenceConstants.BACKGROUNDCOLOR_SUFFIX, "Background", getFieldEditorParent())); // Style // TODO extract a FontStyleCheckBoxGroupFieldEditor - addField(new CheckBoxGroupFieldEditor(CommonPreferenceConstants.STYLE_SUFIX, "Style", 2, new String[][] { + addField(new CheckBoxGroupFieldEditor(CommonPreferenceConstants.STYLE_SUFFIX, "Style", 2, new String[][] { { "Italic", String.valueOf(SWT.ITALIC) }, { "Bold", String.valueOf(SWT.BOLD) }, { "Underline", String.valueOf(TextAttribute.UNDERLINE) }, { "Strike through", String.valueOf(TextAttribute.STRIKETHROUGH) }, }, getFieldEditorParent(), true) { @@ -80,7 +80,7 @@ public class TokenTypeDefDetailsPart extends AbstractDetailsPart { } }); // Font - addField(new FontFieldEditor(CommonPreferenceConstants.FONT_SUFIX, "Font", getFieldEditorParent())); + addField(new FontFieldEditor(CommonPreferenceConstants.FONT_SUFFIX, "Font", getFieldEditorParent())); } } }
\ No newline at end of file |

