Changeset 2336 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-10-27T22:57:30+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskList.java
r2328 r2336 64 64 DownloadTask dt = new DownloadOsmTask(); 65 65 ProgressMonitor childProgress = progressMonitor.createSubTaskMonitor(1, false); 66 childProgress.setSilent(true);67 66 childProgress.setCustomText(tr("Download {0} of {1} ({2} left)", i, rects.size(), rects.size() - i)); 68 67 Future<?> future = dt.download(false, new Bounds(td), childProgress); -
trunk/src/org/openstreetmap/josm/gui/progress/AbstractProgressMonitor.java
r2319 r2336 43 43 private AbstractProgressMonitor currentChild; 44 44 private Request requestedState = new Request(); 45 46 private boolean silent;47 private String errorMessage;48 45 49 46 protected abstract void doBeginTask(); … … 374 371 } 375 372 } 376 377 /*======================378 * Silent/error message379 ======================*/380 public synchronized void setSilent(boolean value) {381 this.silent = value;382 }383 384 public synchronized void setErrorMessage(String message) {385 this.errorMessage = message;386 if (!silent) {387 doSetErrorMessage(message);388 }389 }390 391 public synchronized String getErrorMessage() {392 return errorMessage;393 }394 395 373 } -
trunk/src/org/openstreetmap/josm/gui/progress/ChildProgress.java
r1811 r2336 44 44 45 45 @Override 46 protected void doSetErrorMessage(String message) {47 parent.setErrorMessage(message);48 }49 50 @Override51 46 protected void doFinishTask() { 52 47 parent.childFinished(this); -
trunk/src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java
r2322 r2336 120 120 void removeCancelListener(CancelListener listener); 121 121 122 void setSilent(boolean value);123 122 124 123 /**
Note:
See TracChangeset
for help on using the changeset viewer.