Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe2012-03-12 04:00:22 +0000
committerBogdan Gheorghe2012-03-12 04:00:22 +0000
commit2355e80bf4c8d5f952b09838bb639e044fbb4d98 (patch)
treed39e7762bf5102665a5feb44269d59492df579f0 /bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/AbstractCSSEngine.java
parentaeacb33f1e345f110ade10a788da98d0569d8dbb (diff)
downloadeclipse.platform.ui-2355e80bf4c8d5f952b09838bb639e044fbb4d98.tar.gz
eclipse.platform.ui-2355e80bf4c8d5f952b09838bb639e044fbb4d98.tar.xz
eclipse.platform.ui-2355e80bf4c8d5f952b09838bb639e044fbb4d98.zip
Bug 372327 - Editing CSS in Appearance pref page and restarting shows no changev20120312-0400
Diffstat (limited to 'bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/AbstractCSSEngine.java')
-rw-r--r--bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/AbstractCSSEngine.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/AbstractCSSEngine.java b/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/AbstractCSSEngine.java
index 48cd73016ae..08846fcada5 100644
--- a/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/AbstractCSSEngine.java
+++ b/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/AbstractCSSEngine.java
@@ -11,6 +11,7 @@
*******************************************************************************/
package org.eclipse.e4.ui.css.core.impl.engine;
+import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
@@ -189,7 +190,17 @@ public abstract class AbstractCSSEngine implements CSSEngine {
}
Path p = new Path(source.getURI());
IPath trim = p.removeLastSegments(1);
+
URL url = FileLocator.resolve(new URL(trim.addTrailingSeparator().toString() + ((CSSImportRule) rule).getHref()));
+ File testFile = new File(url.getFile());
+ if (!testFile.exists()) {
+ //look in platform default
+ String path = getResourcesLocatorManager().resolve(((CSSImportRule) rule).getHref());
+ testFile = new File(new URL(path).getFile());
+ if (testFile.exists()) {
+ url = new URL(path);
+ }
+ }
InputStream stream = url.openStream();
InputSource tempStream = new InputSource();
tempStream.setURI(url.toString());

Back to the top