Changeset 3965 in osm for applications/editors
- Timestamp:
- 2007-08-05T21:55:31+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java
r3347 r3965 29 29 import org.openstreetmap.josm.tools.XmlObjectParser; 30 30 import org.xml.sax.SAXException; 31 32 import at.dallermassl.josm.plugin.surveyor.util.ResourceLoader; 31 33 32 34 /** … … 129 131 SurveyorComponent component= null; 130 132 try { 131 if (source.startsWith("http://") || source.startsWith("ftp://") || source.startsWith("file:")) 132 in = new URL(source).openStream(); 133 else if (source.startsWith("resource://")) 134 in = getClass().getResourceAsStream(source.substring("resource:/".length())); 135 else 136 in = new FileInputStream(source); 133 in = ResourceLoader.getInputStream(source); 137 134 component = createComponent(in); 138 135 in.close();
Note:
See TracChangeset
for help on using the changeset viewer.