Changeset 5863 in josm for trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
- Timestamp:
- 2013-04-14T22:20:20+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
r5859 r5863 61 61 * Creates a new task 62 62 * 63 * @param parent the component to be used as reference to find the parent for {@link PleaseWaitDialog}. 64 * Must not be null. 65 * @throws IllegalArgumentException thrown if parent is null 63 * @param parent the component to be used as reference to find the 64 * parent for {@link org.openstreetmap.josm.gui.PleaseWaitDialog}. 65 * Must not be <code>null</code>. 66 * @throws IllegalArgumentException thrown if parent is <code>null</code> 66 67 */ 67 68 public HistoryLoadTask(Component parent) { … … 142 143 * Adds a collection of objects to loaded, specified by a collection of OSM primitives. 143 144 * 144 * @param primitive the OSM primitive. Must not be null. primitive.getId() > 0 required. 145 * @return this task 146 * @throws IllegalArgumentException thrown if primitives is null 147 * @throws IllegalArgumentException thrown if one of the ids in the collection <= 0 145 * @param primitives the OSM primitives. Must not be <code>null</code>. 146 * <code>primitive.getId() > 0</code> required. 147 * @return this task 148 * @throws IllegalArgumentException thrown if primitives is <code>null</code> 149 * @throws IllegalArgumentException thrown if one of the ids in the collection <= 0 148 150 */ 149 151 public HistoryLoadTask add(Collection<? extends OsmPrimitive> primitives) { … … 160 162 @Override 161 163 protected void cancel() { 162 System.out.println("Cancel!"); 163 if (reader!=null) reader.cancel(); 164 if (reader != null) { 165 reader.cancel(); 166 } 164 167 canceled = true; 165 168 }
Note:
See TracChangeset
for help on using the changeset viewer.