Ignore:
Timestamp:
2012-07-15T16:34:27+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #7857 - Mark osmChange primitives inside <modify> block as modified + allow to load remote .osc files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r5097 r5345  
    7676        currentBounds = null;
    7777        // Extract .osm filename from URL to set the new layer name
    78         Matcher matcher = Pattern.compile("http://.*/(.*\\.osm)").matcher(url);
     78        extractOsmFilename("http://.*/(.*\\.osm)", url);
     79        return Main.worker.submit(downloadTask);
     80    }
     81   
     82    protected final void extractOsmFilename(String pattern, String url) {
     83        Matcher matcher = Pattern.compile(pattern).matcher(url);
    7984        newLayerName = matcher.matches() ? matcher.group(1) : null;
    80         return Main.worker.submit(downloadTask);
    8185    }
    8286   
Note: See TracChangeset for help on using the changeset viewer.