Changeset 7432 in josm
- Timestamp:
- 2014-08-19T15:59:51+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r7091 r7432 19 19 20 20 /** 21 * A nrelation, having a set of tags and any number (0...n) of members.21 * A relation, having a set of tags and any number (0...n) of members. 22 22 * 23 23 * @author Frederik Ramm … … 502 502 503 503 /** 504 * Replies true if at least one child primitive is incomplete504 * Determines if at least one child primitive is incomplete. 505 505 * 506 506 * @return true if at least one child primitive is incomplete … … 515 515 516 516 /** 517 * Replies a collection with the incomplete children this relation 518 * refers to 517 * Replies a collection with the incomplete children this relation refers to. 519 518 * 520 519 * @return the incomplete children. Empty collection if no children are incomplete. -
trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesTask.java
r6973 r7432 29 29 import org.xml.sax.SAXException; 30 30 31 /** 32 * Task downloading a set of OSM primitives. 33 * @since 4081 34 */ 31 35 public class DownloadPrimitivesTask extends PleaseWaitRunnable { 32 36 private DataSet ds; … … 43 47 44 48 /** 45 * C reates the task49 * Constructs a new {@code DownloadPrimitivesTask}. 46 50 * 47 51 * @param layer the layer in which primitives are updated. Must not be null. … … 57 61 58 62 /** 59 * C reates the task63 * Constructs a new {@code DownloadPrimitivesTask}. 60 64 * 61 65 * @param layer the layer in which primitives are updated. Must not be null. … … 68 72 */ 69 73 public DownloadPrimitivesTask(OsmDataLayer layer, List<PrimitiveId> ids, boolean fullRelation, 70 ProgressMonitor prog essMonitor) throws IllegalArgumentException {71 super(tr("Download objects"), prog essMonitor, false /* don't ignore exception */);74 ProgressMonitor progressMonitor) throws IllegalArgumentException { 75 super(tr("Download objects"), progressMonitor, false /* don't ignore exception */); 72 76 ensureParameterNotNull(layer, "layer"); 73 77 this.ids = ids; … … 151 155 for (Relation r : ds.getRelations()) { 152 156 if (canceled) return; 153 if (r.hasIncompleteMembers()) { 157 // Relations may be incomplete in case of nested relations if child relations are accessed before their parent 158 // (it may happen because "relations" has no deterministic sort order, see #10388) 159 if (r.isIncomplete() || r.hasIncompleteMembers()) { 154 160 synchronized(this) { 155 161 if (canceled) return; -
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r7033 r7432 387 387 public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException { 388 388 int n = nodes.size() + ways.size() + relations.size(); 389 progressMonitor.beginTask(trn("Downloading {0} object from ''{1}''", "Downloading {0} objects from ''{1}''", n, n, OsmApi.getOsmApi().getBaseUrl())); 389 progressMonitor.beginTask(trn("Downloading {0} object from ''{1}''", 390 "Downloading {0} objects from ''{1}''", n, n, OsmApi.getOsmApi().getBaseUrl())); 390 391 try { 391 392 missingPrimitives = new HashSet<>(); -
trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java
r7033 r7432 104 104 * Downloads and parses the data. 105 105 * 106 * @param progressMonitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if 107 * null 106 * @param progressMonitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null 108 107 * @return the downloaded data 109 108 * @throws OsmTransferException
Note:
See TracChangeset
for help on using the changeset viewer.