Index: /applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java
===================================================================
--- /applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java	(revision 3964)
+++ /applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java	(revision 3965)
@@ -29,4 +29,6 @@
 import org.openstreetmap.josm.tools.XmlObjectParser;
 import org.xml.sax.SAXException;
+
+import at.dallermassl.josm.plugin.surveyor.util.ResourceLoader;
 
 /**
@@ -129,10 +131,5 @@
         SurveyorComponent component= null;
         try {
-            if (source.startsWith("http://") || source.startsWith("ftp://") || source.startsWith("file:"))
-                in = new URL(source).openStream();
-            else if (source.startsWith("resource://"))
-                in = getClass().getResourceAsStream(source.substring("resource:/".length()));
-            else
-                in = new FileInputStream(source);
+            in = ResourceLoader.getInputStream(source);
             component = createComponent(in);
             in.close();
