Changeset 4310 in josm for trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
- Timestamp:
- 2011-08-11T00:26:21+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r4191 r4310 29 29 import org.openstreetmap.josm.io.OsmApiPrimitiveGoneException; 30 30 import org.openstreetmap.josm.io.OsmServerWriter; 31 import org.openstreetmap.josm.io.OsmTransferCancel ledException;31 import org.openstreetmap.josm.io.OsmTransferCanceledException; 32 32 import org.openstreetmap.josm.io.OsmTransferException; 33 33 import org.openstreetmap.josm.tools.ImageProvider; … … 39 39 */ 40 40 public class UploadPrimitivesTask extends AbstractUploadTask { 41 private boolean uploadCancel led = false;41 private boolean uploadCanceled = false; 42 42 private Exception lastException = null; 43 43 private APIDataSet toUpload; … … 236 236 // 237 237 break; 238 } catch(OsmTransferCancel ledException e) {238 } catch(OsmTransferCanceledException e) { 239 239 e.printStackTrace(); 240 uploadCancel led = true;240 uploadCanceled = true; 241 241 break uploadloop; 242 242 } catch(OsmApiPrimitiveGoneException e) { … … 283 283 } 284 284 } catch (Exception e) { 285 if (uploadCancel led) {285 if (uploadCanceled) { 286 286 System.out.println(tr("Ignoring caught exception because upload is canceled. Exception is: {0}", e.toString())); 287 287 } else { … … 289 289 } 290 290 } 291 if (uploadCancel led && processedPrimitives.isEmpty()) return;291 if (uploadCanceled && processedPrimitives.isEmpty()) return; 292 292 cleanupAfterUpload(); 293 293 } 294 294 295 295 @Override protected void finish() { 296 if (uploadCancel led)296 if (uploadCanceled) 297 297 return; 298 298 … … 353 353 354 354 @Override protected void cancel() { 355 uploadCancel led = true;355 uploadCanceled = true; 356 356 synchronized(this) { 357 357 if (writer != null) {
Note:
See TracChangeset
for help on using the changeset viewer.
