HistoryDataSet ds = null;
try {
reader = new OsmServerHistoryReader(pid.getType(), pid.getUniqueId());
ds = reader.parseHistory(progressMonitor.createSubTaskMonitor(1, false));
// load corresponding changesets (mostly for changeset comment)
for (final Changeset i : new OsmServerChangesetReader().queryChangesets(
new ChangesetQuery().forChangesetIds(ds.getChangesetIds()), progressMonitor.createSubTaskMonitor(1, false))) {
ds.putChangeset(i);
}
} catch(OsmTransferException e) {
if (canceled)