Changeset 3965 in osm for applications/editors


Ignore:
Timestamp:
2007-08-05T21:55:31+02:00 (17 years ago)
Author:
christofd
Message:

use debug variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java

    r3347 r3965  
    2929import org.openstreetmap.josm.tools.XmlObjectParser;
    3030import org.xml.sax.SAXException;
     31
     32import at.dallermassl.josm.plugin.surveyor.util.ResourceLoader;
    3133
    3234/**
     
    129131        SurveyorComponent component= null;
    130132        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);
    137134            component = createComponent(in);
    138135            in.close();
Note: See TracChangeset for help on using the changeset viewer.