importData(in, associatedFile, NullProgressMonitor.INSTANCE);
}
protected void importData(InputStream in, final File associatedFile, ProgressMonitor progressMonitor) throws IllegalDataException {
final DataSet dataSet = OsmChangeReader.parseDataSet(in, progressMonitor);
final OsmDataLayer layer = new OsmDataLayer(dataSet, associatedFile.getName(), associatedFile);
addDataLayer(dataSet, layer, associatedFile.getPath());
}