forked from eclipse-color-theme/eclipse-color-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: com.github.eclipsecolortheme/src/com/github/eclipsecolortheme/preferences/ColorThemePreferencePage.java
- Loading branch information
Showing
16 changed files
with
391 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<eclipseColorThemeMapping plugin="com.spket.js" created="2013-01-16 18:00:00"> | ||
<mappings> | ||
<mapping pluginKey="java_doc_default" themeKey="javadoc" /> | ||
<mapping pluginKey="java_doc_keyword" themeKey="javadocKeyword" /> | ||
<mapping pluginKey="java_doc_link" themeKey="javadocLink" /> | ||
<mapping pluginKey="java_doc_tag" themeKey="javadocTag" /> | ||
<mapping pluginKey="js_default" themeKey="foreground" /> | ||
<mapping pluginKey="js_keyword" themeKey="keyword" /> | ||
<mapping pluginKey="js_keyword_return" themeKey="keyword" /> | ||
<mapping pluginKey="js_reserved" themeKey="keyword" /> | ||
<mapping pluginKey="js_ml_comment" themeKey="multiLineComment" /> | ||
<mapping pluginKey="js_sl_comment" themeKey="singleLineComment" /> | ||
<mapping pluginKey="js_operator" themeKey="operator" /> | ||
<mapping pluginKey="js_regexp" themeKey="string" /> | ||
<mapping pluginKey="js_string" themeKey="string" /> | ||
<mapping pluginKey="js_task_tag" themeKey="javadocTag" /> | ||
<mapping pluginKey="js_ssi" themeKey="staticMethod" /> | ||
</mappings> | ||
</eclipseColorThemeMapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<eclipseColorThemeMapping plugin="com.spket.xml" created="2013-01-16 18:00:00"> | ||
<mappings> | ||
<mapping pluginKey="xml_default" themeKey="foreground" /> | ||
<mapping pluginKey="xml_attr_value" themeKey="string" /> | ||
<mapping pluginKey="xml_cdata" themeKey="foreground" /> | ||
<mapping pluginKey="xml_comments" themeKey="multiLineComment" /> | ||
<mapping pluginKey="xml_task_tag" themeKey="commentTaskTag" /> | ||
<mapping pluginKey="xml_proc_instr" themeKey="foreground" /> | ||
<mapping pluginKey="xml_doctype" themeKey="method" /> | ||
<mapping pluginKey="xml_tags" themeKey="localVariableDeclaration" /> | ||
</mappings> | ||
</eclipseColorThemeMapping> |
9 changes: 9 additions & 0 deletions
9
com.github.eclipsecolortheme/mappings/org.eclipse.debug.ui.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<eclipseColorThemeMapping plugin="org.eclipse.debug.ui" created="2013-01-16 18:00:00"> | ||
<mappings> | ||
<mapping pluginKey="org.eclipse.debug.ui.inColor" themeKey="foreground" /> | ||
<mapping pluginKey="org.eclipse.debug.ui.outColor" themeKey="foreground" /> | ||
<mapping pluginKey="org.eclipse.debug.ui.consoleBackground" themeKey="background" /> | ||
<mapping pluginKey="org.eclipse.debug.ui.errorColor" themeKey="commentTaskTag" /> | ||
</mappings> | ||
</eclipseColorThemeMapping> |
15 changes: 15 additions & 0 deletions
15
com.github.eclipsecolortheme/mappings/org.eclipse.e4.CSS.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<eclipseColorThemeMapping plugin="org.eclipse.wst.css.ui" created="2013-01-18 18:00:00"> | ||
<mappings> | ||
<mapping pluginKey="ClassID" themeKey="method" /> | ||
<mapping pluginKey="Declaration" themeKey="methodDeclaration" /> | ||
<mapping pluginKey="Element" themeKey="class" /> | ||
<mapping pluginKey="comment" themeKey="multiLineComment" /> | ||
<mapping pluginKey="default" themeKey="foreground" /> | ||
<mapping pluginKey="error" themeKey="commentTaskTag" /> | ||
<mapping pluginKey="keyword" themeKey="keyword" /> | ||
<mapping pluginKey="punctuation" themeKey="bracket" /> | ||
<mapping pluginKey="string" themeKey="string" /> | ||
<mapping pluginKey="number" themeKey="number" /> | ||
</mappings> | ||
</eclipseColorThemeMapping> |
8 changes: 8 additions & 0 deletions
8
com.github.eclipsecolortheme/mappings/org.eclipse.team.cvs.ui.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<eclipseColorThemeMapping plugin="org.eclipse.team.cvs.ui" created="2013-01-16 18:00:00"> | ||
<mappings> | ||
<mapping pluginKey="pref_console_command_color" themeKey="singleLineComment" /> | ||
<mapping pluginKey="pref_console_message_color" themeKey="foreground" /> | ||
<mapping pluginKey="pref_console_error_color" themeKey="class" /> | ||
</mappings> | ||
</eclipseColorThemeMapping> |
13 changes: 13 additions & 0 deletions
13
com.github.eclipsecolortheme/mappings/org.eclipse.wst.dtd.ui.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<eclipseColorThemeMapping plugin="org.eclipse.wst.dtd.ui" created="2013-01-16 18:00:00"> | ||
<mappings> | ||
<mapping pluginKey="dtdDefault" themeKey="foreground" /> | ||
<mapping pluginKey="dtdKeyword" themeKey="keyword" /> | ||
<mapping pluginKey="dtdData" themeKey="foreground" /> | ||
<mapping pluginKey="dtdString" themeKey="string" /> | ||
<mapping pluginKey="dtdSymbol" themeKey="field" /> | ||
<mapping pluginKey="dtdTag" themeKey="localVariableDeclaration" /> | ||
<mapping pluginKey="dtdTagName" themeKey="localVariableDeclaration" /> | ||
<mapping pluginKey="dtdComment" themeKey="multiLineComment" /> | ||
</mappings> | ||
</eclipseColorThemeMapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
com.github.eclipsecolortheme/mappings/org.eclipse.wst.xsl.ui.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<eclipseColorThemeMapping plugin="org.eclipse.wst.xsl.ui" created="2013-01-16 18:00:00"> | ||
<mappings> | ||
<mapping pluginKey="xsltagAttributeName" themeKey="field" /> | ||
<mapping pluginKey="xsltagAttributeValue" themeKey="string" /> | ||
<mapping pluginKey="xsltagBorder" themeKey="localVariable" /> | ||
<mapping pluginKey="xsltagName" themeKey="localVariableDeclaration" /> | ||
</mappings> | ||
</eclipseColorThemeMapping> |
8 changes: 8 additions & 0 deletions
8
com.github.eclipsecolortheme/mappings/winterwell.markdown.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<eclipseColorThemeMapping plugin="winterwell.markdown" created="2013-01-16 18:00:00"> | ||
<mappings> | ||
<mapping pluginKey="Pref_Default" themeKey="foreground"/> | ||
<mapping pluginKey="Pref_Header" themeKey="commentTaskTag"/> | ||
<mapping pluginKey="Pref_Comment" themeKey="multiLineComment"/> | ||
<mapping pluginKey="Pref_Link" themeKey="javadocLink"/> | ||
</mappings> | ||
</eclipseColorThemeMapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
com.github.eclipsecolortheme/src/com/github/eclipsecolortheme/mapper/E4CSSMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.github.eclipsecolortheme.mapper; | ||
|
||
import org.eclipse.core.runtime.preferences.IEclipsePreferences; | ||
import com.github.eclipsecolortheme.ColorThemeMapping; | ||
import com.github.eclipsecolortheme.ColorThemeSetting; | ||
|
||
public class E4CSSMapper extends GenericMapper { | ||
|
||
private class Mapping extends ColorThemeMapping { | ||
private static final String KEY_PREFIX = "org.eclipse.e4.CSS.syntaxColorer.tokenStyles"; | ||
public Mapping(String pluginKey, String themeKey) { | ||
super(pluginKey, themeKey); | ||
} | ||
|
||
@Override | ||
public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { | ||
preferences.put(KEY_PREFIX + '.' + pluginKey + ".color", setting.getColor().asRGB()); | ||
preferences.put(KEY_PREFIX + '.' + pluginKey + ".bgColor", defaultBackground.getHexColorOrEmpty()); | ||
} | ||
} | ||
|
||
@Override | ||
protected ColorThemeMapping createMapping(String pluginKey, String themeKey) { | ||
return new Mapping(pluginKey, themeKey); | ||
} | ||
|
||
} |
Oops, something went wrong.