Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2015-05-08 12:44:02 +0000
committerTom Schindl2015-05-08 12:44:02 +0000
commit2e55c7c66d26f277e37bb29e2d9c5e3ff15aa1c0 (patch)
tree4bf9942eb01acce0d986f72d8c5d9a7ef0aac9d4 /experimental
parent0fa17a94c4c1480f5504d6900e4b65cb6a2e3fe0 (diff)
downloadorg.eclipse.efxclipse-2e55c7c66d26f277e37bb29e2d9c5e3ff15aa1c0.tar.gz
org.eclipse.efxclipse-2e55c7c66d26f277e37bb29e2d9c5e3ff15aa1c0.tar.xz
org.eclipse.efxclipse-2e55c7c66d26f277e37bb29e2d9c5e3ff15aa1c0.zip
improved stylesheet loading
Diffstat (limited to 'experimental')
-rw-r--r--experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/spi/EditorStylesheet.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/spi/EditorStylesheet.java b/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/spi/EditorStylesheet.java
index 4b0e75732..ae0a500e2 100644
--- a/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/spi/EditorStylesheet.java
+++ b/experimental/compensator/org.eclipse.fx.code.compensator.editor/src/org/eclipse/fx/code/compensator/editor/spi/EditorStylesheet.java
@@ -13,9 +13,12 @@ public class EditorStylesheet implements Stylesheet {
@Override
public URL getURL(Theme t) {
+ URL url = null;
if( "dark".equals(t.getId()) ) {
- return getClass().getClassLoader().getResource("css/dark-highlight.css");
+ url = getClass().getClassLoader().getResource("css/dark-highlight.css");
+ } else {
+ url = getClass().getClassLoader().getResource("css/highlight.css");
}
- return getClass().getClassLoader().getResource("css/highlight.css");
+ return url;
}
}

Back to the top