Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentDownloadTask.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentDownloadTask.java
r8509 r8510 134 134 */ 135 135 protected void downloadChangeset(int changesetId) throws OsmTransferException { 136 synchronized (this) {136 synchronized (this) { 137 137 reader = new OsmServerChangesetReader(); 138 138 } 139 139 Changeset cs = reader.readChangeset(changesetId, false, getProgressMonitor().createSubTaskMonitor(0, false)); 140 synchronized (this) {140 synchronized (this) { 141 141 reader = null; 142 142 } … … 166 166 try { 167 167 getProgressMonitor().setTicksCount(toDownload.size()); 168 int i =0;168 int i = 0; 169 169 for (int id: toDownload) { 170 170 i++; … … 174 174 } 175 175 if (canceled) return; 176 synchronized (this) {176 synchronized (this) { 177 177 reader = new OsmServerChangesetReader(); 178 178 } 179 179 getProgressMonitor().setCustomText(tr("({0}/{1}) Downloading content for changeset {2}...", i, toDownload.size(), id)); 180 180 ChangesetDataSet ds = reader.downloadChangeset(id, getProgressMonitor().createSubTaskMonitor(0, false)); 181 synchronized (this) {181 synchronized (this) { 182 182 reader = null; 183 183 } … … 188 188 getProgressMonitor().worked(1); 189 189 } 190 } catch (OsmTransferCanceledException e) {190 } catch (OsmTransferCanceledException e) { 191 191 // the download was canceled by the user. This exception is caught if the 192 192 // user canceled the authentication dialog. … … 194 194 canceled = true; 195 195 return; 196 } catch (OsmTransferException e) {196 } catch (OsmTransferException e) { 197 197 if (canceled) 198 198 return;
Note:
See TracChangeset
for help on using the changeset viewer.