- Timestamp:
- 2015-04-18T11:55:57+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTask.java
r8216 r8217 145 145 notesData = reader.parseNotes(null, null, subMonitor); 146 146 } catch (BoundingBoxDownloader.MoreNotesException e) { 147 notesData = e.notes; 147 148 JOptionPane.showMessageDialog(Main.parent, "<html>" 148 149 + trn("{0} note has been downloaded.", "{0} notes have been downloaded.", e.limit, e.limit) -
trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java
r8216 r8217 182 182 final List<Note> notes = reader.parse(); 183 183 if (notes.size() == noteLimit) { 184 throw new MoreNotesException(note Limit);184 throw new MoreNotesException(notes, noteLimit); 185 185 } 186 186 return notes; … … 199 199 public static class MoreNotesException extends RuntimeException{ 200 200 /** 201 * The downloaded notes 202 */ 203 public final List<Note> notes; 204 /** 201 205 * The download limit sent to the server. 202 206 */ 203 207 public final int limit; 204 208 205 public MoreNotesException(int limit) { 209 public MoreNotesException(List<Note> notes, int limit) { 210 this.notes = notes; 206 211 this.limit = limit; 207 212 }
Note:
See TracChangeset
for help on using the changeset viewer.