Changeset 9477 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-01-16T01:18:11+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxImporter.java
r9461 r9477 42 42 private final Runnable postLayerTask; 43 43 44 /** 45 * Constructs a new {@code GpxImporterData}. 46 * @param gpxLayer The imported GPX layer. May be null if no GPX data. 47 * @param markerLayer The imported marker layer. May be null if no marker. 48 * @param postLayerTask The task to run after GPX and/or marker layer has been added to MapView. 49 */ 44 50 public GpxImporterData(GpxLayer gpxLayer, MarkerLayer markerLayer, Runnable postLayerTask) { 45 51 this.gpxLayer = gpxLayer; … … 48 54 } 49 55 56 /** 57 * Returns the imported GPX layer. May be null if no GPX data. 58 * @return the imported GPX layer. May be null if no GPX data. 59 */ 50 60 public GpxLayer getGpxLayer() { 51 61 return gpxLayer; 52 62 } 53 63 64 /** 65 * Returns the imported marker layer. May be null if no marker. 66 * @return the imported marker layer. May be null if no marker. 67 */ 54 68 public MarkerLayer getMarkerLayer() { 55 69 return markerLayer; 56 70 } 57 71 72 /** 73 * Returns the task to run after GPX and/or marker layer has been added to MapView. 74 * @return the task to run after GPX and/or marker layer has been added to MapView. 75 */ 58 76 public Runnable getPostLayerTask() { 59 77 return postLayerTask; … … 70 88 /** 71 89 * Returns a GPX file filter (*.gpx and *.gpx.gz files). 90 * @return a GPX file filter 72 91 */ 73 92 public static ExtensionFileFilter getFileFilter() { -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r9473 r9477 1314 1314 * If the collection {@code elements} is larger than {@code maxElements} elements, 1315 1315 * the collection is shortened and the {@code overflowIndicator} is appended. 1316 * @param <T> type of elements 1316 1317 * @param elements collection to shorten 1317 1318 * @param maxElements maximum number of elements to keep (including including the {@code overflowIndicator})
Note:
See TracChangeset
for help on using the changeset viewer.