Changeset 4687 in josm for trunk/src/org


Ignore:
Timestamp:
2011-12-21T20:29:07+01:00 (9 years ago)
Author:
Don-vip
Message:

Allow plugins to override data set parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmImporter.java

    r4686 r4687  
    6767     */
    6868    public void loadLayer(InputStream in, final File associatedFile, final String layerName, ProgressMonitor progressMonitor) throws IllegalDataException {
    69         final DataSet dataSet = OsmReader.parseDataSet(in, progressMonitor);
     69        final DataSet dataSet = parseDataSet(in, progressMonitor);
    7070        layer = createLayer(dataSet, associatedFile, layerName);
    7171        postLayerTask = createPostLayerTask(dataSet, associatedFile, layerName);
     72    }
     73   
     74    protected DataSet parseDataSet(InputStream in, ProgressMonitor progressMonitor) throws IllegalDataException {
     75        return OsmReader.parseDataSet(in, progressMonitor);
    7276    }
    7377   
Note: See TracChangeset for help on using the changeset viewer.