Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the JavaScript mapping.

  • Loading branch information...
commit 8ba94af192cf80d0b99b2d7292b86aca6f6ba26c 1 parent e4d1fd3
@fhd fhd authored
View
5 CHANGES.md
@@ -1,5 +1,6 @@
-0.10.0
-======
+0.9.1
+=====
+* Fixed the JavaScript mapping.
0.9.0 (2011-02-14)
==================
View
2  com.github.eclipsecolortheme/plugin.xml
@@ -76,7 +76,7 @@
xml="mappings/org.eclipse.wst.html.ui.xml">
</mapper>
<mapper
- class="com.github.eclipsecolortheme.mapper.WebEditorMapper"
+ class="com.github.eclipsecolortheme.mapper.GenericMapper"
name="JavaScript"
pluginId="org.eclipse.wst.jsdt.ui"
xml="mappings/org.eclipse.wst.jsdt.ui.xml">
View
31 com.github.eclipsecolortheme/src/com/github/eclipsecolortheme/mapper/WebEditorMapper.java
@@ -4,8 +4,6 @@
import com.github.eclipsecolortheme.ColorThemeMapping;
import com.github.eclipsecolortheme.ColorThemeSetting;
-import com.github.eclipsecolortheme.ColorThemeSemanticHighlightingMapping;
-
/**
* Maps color themes to preferences for Eclipse's XML, HTML and CSS editors.
@@ -17,12 +15,6 @@ protected ColorThemeMapping createMapping(String pluginKey, String themeKey) {
return new Mapping(pluginKey, themeKey);
}
- @Override
- protected ColorThemeSemanticHighlightingMapping createSemanticHighlightingMapping(
- String pluginKey, String themeKey) {
- return new SemanticMapping(pluginKey, themeKey);
- }
-
private class Mapping extends ColorThemeMapping {
public Mapping(String pluginKey, String themeKey) {
@@ -41,28 +33,5 @@ public void putPreferences(IEclipsePreferences preferences,
}
}
-
- private class SemanticMapping extends ColorThemeSemanticHighlightingMapping {
-
- public SemanticMapping(String pluginKey, String themeKey) {
- super(pluginKey, themeKey);
- }
-
- @Override
- public void putPreferences(IEclipsePreferences preferences,
- ColorThemeSetting setting) {
- preferences.putBoolean(pluginKey + ".enabled", true);
- preferences.put(pluginKey + ".color", setting.getColor().asHex());
- if (setting.isBoldEnabled() != null)
- preferences.putBoolean(pluginKey + ".bold", setting.isBoldEnabled());
- if (setting.isItalicEnabled() != null)
- preferences.putBoolean(pluginKey + ".italic", setting.isItalicEnabled());
- if (setting.isUnderlineEnabled() != null)
- preferences.putBoolean(pluginKey + ".underline", setting.isUnderlineEnabled());
- if (setting.isStrikethroughEnabled() != null)
- preferences.putBoolean(pluginKey + ".strikethrough", setting.isStrikethroughEnabled());
- }
-
- }
}
Please sign in to comment.
Something went wrong with that request. Please try again.