Changeset 8291 in josm for trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadReferrersTask.java
- Timestamp:
- 2015-04-29T01:44:01+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadReferrersTask.java
r7005 r8291 38 38 /** 39 39 * The asynchronous task for downloading referring primitives 40 * 40 * @since 2923 41 41 */ 42 42 public class DownloadReferrersTask extends PleaseWaitRunnable { … … 56 56 * @param targetLayer the target layer for the downloaded primitives. Must not be null. 57 57 * @param children the collection of child primitives for which parents are to be downloaded 58 *59 58 */ 60 59 public DownloadReferrersTask(OsmDataLayer targetLayer, Collection<OsmPrimitive> children) { … … 103 102 * @param id the primitive id. id > 0 required. 104 103 * @param type the primitive type. type != null required 105 * @exception IllegalArgumentException thrown if id <= 0 106 * @exception IllegalArgumentException thrown if type == null 107 * @exception IllegalArgumentException thrown if targetLayer == null 108 * 109 */ 110 public DownloadReferrersTask(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) throws IllegalArgumentException { 104 * @throws IllegalArgumentException if id <= 0 105 * @throws IllegalArgumentException if type == null 106 * @throws IllegalArgumentException if targetLayer == null 107 */ 108 public DownloadReferrersTask(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) { 111 109 super("Download referrers", false /* don't ignore exception*/); 112 110 CheckParameterUtil.ensureParameterNotNull(targetLayer, "targetLayer"); … … 126 124 * @param targetLayer the target layer. Must not be null. 127 125 * @param primitiveId a PrimitiveId object. 128 * @exception IllegalArgumentException thrown if id <= 0 129 * @exception IllegalArgumentException thrown if targetLayer == null 130 * 131 */ 132 public DownloadReferrersTask(OsmDataLayer targetLayer, PrimitiveId primitiveId) throws IllegalArgumentException { 126 * @throws IllegalArgumentException if id <= 0 127 * @throws IllegalArgumentException if targetLayer == null 128 */ 129 public DownloadReferrersTask(OsmDataLayer targetLayer, PrimitiveId primitiveId) { 133 130 this(targetLayer, primitiveId, null); 134 131 } … … 140 137 * @param primitiveId a PrimitiveId object. 141 138 * @param progressMonitor ProgressMonitor to use or null to create a new one. 142 * @exception IllegalArgumentException thrown if id <= 0 143 * @exception IllegalArgumentException thrown if targetLayer == null 144 * 139 * @throws IllegalArgumentException if id <= 0 140 * @throws IllegalArgumentException if targetLayer == null 145 141 */ 146 142 public DownloadReferrersTask(OsmDataLayer targetLayer, PrimitiveId primitiveId, 147 ProgressMonitor progressMonitor) throws IllegalArgumentException{143 ProgressMonitor progressMonitor) { 148 144 super("Download referrers", progressMonitor, false /* don't ignore exception*/); 149 145 CheckParameterUtil.ensureParameterNotNull(targetLayer, "targetLayer"); 150 146 if (primitiveId.isNew()) 151 throw new IllegalArgumentException(MessageFormat.format("Cannot download referrers for new primitives (ID {0})", primitiveId.getUniqueId())); 147 throw new IllegalArgumentException(MessageFormat.format( 148 "Cannot download referrers for new primitives (ID {0})", primitiveId.getUniqueId())); 152 149 canceled = false; 153 150 this.children = new HashMap<>();
Note:
See TracChangeset
for help on using the changeset viewer.