Changeset 13534 in josm
- Timestamp:
- 2018-03-17T01:16:09+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java
r13486 r13534 8 8 import java.awt.GridBagLayout; 9 9 import java.io.IOException; 10 import java.text.MessageFormat; 10 11 import java.util.ArrayList; 11 12 import java.util.HashSet; … … 76 77 this.full = full; 77 78 this.newLayer = newLayer; 79 // Check we don't try to download new primitives 80 for (PrimitiveId primitiveId : ids) { 81 if (primitiveId.isNew()) { 82 throw new IllegalArgumentException(MessageFormat.format( 83 "Cannot download new primitives (ID {0})", primitiveId.getUniqueId())); 84 } 85 } 78 86 // All downloaded primitives are put in a tmpLayer 79 87 tmpLayer = new OsmDataLayer(new DataSet(), newLayerName != null ? newLayerName : OsmDataLayer.createNewName(), null);
Note:
See TracChangeset
for help on using the changeset viewer.