Changeset 8291 in josm for trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.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/DownloadReferrersAction.java
r6883 r8291 42 42 * Does nothing if primitives is null or empty. 43 43 * 44 * @param targetLayer 44 * @param targetLayer the target layer. Must not be null. 45 45 * @param children the collection of child primitives. 46 * @ exception IllegalArgumentException thrown if targetLayer is null46 * @throws IllegalArgumentException if targetLayer is null 47 47 */ 48 public static void downloadReferrers(OsmDataLayer targetLayer, Collection<OsmPrimitive> children) throws IllegalArgumentException{48 public static void downloadReferrers(OsmDataLayer targetLayer, Collection<OsmPrimitive> children) { 49 49 if (children == null || children.isEmpty()) return; 50 50 Main.worker.submit(new DownloadReferrersTask(targetLayer, children)); … … 56 56 * Does nothing if primitives is null or empty. 57 57 * 58 * @param targetLayer 58 * @param targetLayer the target layer. Must not be null. 59 59 * @param children the collection of primitives, given as map of ids and types 60 * @ exception IllegalArgumentException thrown if targetLayer is null60 * @throws IllegalArgumentException if targetLayer is null 61 61 */ 62 public static void downloadReferrers(OsmDataLayer targetLayer, Map<Long, OsmPrimitiveType> children) throws IllegalArgumentException{62 public static void downloadReferrers(OsmDataLayer targetLayer, Map<Long, OsmPrimitiveType> children) { 63 63 if (children == null || children.isEmpty()) return; 64 64 Main.worker.submit(new DownloadReferrersTask(targetLayer, children)); … … 66 66 67 67 /** 68 * Downloads the primitives referring to the primitive given by <code>id</code> and 69 * <code>type</code>. 68 * Downloads the primitives referring to the primitive given by <code>id</code> and <code>type</code>. 70 69 * 71 * @param targetLayer 70 * @param targetLayer the target layer. Must not be null. 72 71 * @param id the primitive id. id > 0 required. 73 72 * @param type the primitive type. type != null required 74 * @ exception IllegalArgumentException thrown if targetLayer is null75 * @ exception IllegalArgumentException thrown if id <= 076 * @ exception IllegalArgumentException thrown if type == null73 * @throws IllegalArgumentException if targetLayer is null 74 * @throws IllegalArgumentException if id <= 0 75 * @throws IllegalArgumentException if type == null 77 76 */ 78 public static void downloadReferrers(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) throws IllegalArgumentException{77 public static void downloadReferrers(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) { 79 78 if (id <= 0) 80 79 throw new IllegalArgumentException(MessageFormat.format("Id > 0 required, got {0}", id));
Note:
See TracChangeset
for help on using the changeset viewer.