Changeset 2336 in josm for trunk/src/org


Ignore:
Timestamp:
2009-10-27T22:57:30+01:00 (15 years ago)
Author:
Gubaer
Message:

Removed error memory from progress monitoring subsystem.

Location:
trunk/src/org/openstreetmap/josm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskList.java

    r2328 r2336  
    6464            DownloadTask dt = new DownloadOsmTask();
    6565            ProgressMonitor childProgress = progressMonitor.createSubTaskMonitor(1, false);
    66             childProgress.setSilent(true);
    6766            childProgress.setCustomText(tr("Download {0} of {1} ({2} left)", i, rects.size(), rects.size() - i));
    6867            Future<?> future = dt.download(false, new Bounds(td), childProgress);
  • trunk/src/org/openstreetmap/josm/gui/progress/AbstractProgressMonitor.java

    r2319 r2336  
    4343    private AbstractProgressMonitor currentChild;
    4444    private Request requestedState = new Request();
    45 
    46     private boolean silent;
    47     private String errorMessage;
    4845
    4946    protected abstract void doBeginTask();
     
    374371        }
    375372    }
    376 
    377     /*======================
    378      * Silent/error message
    379      ======================*/
    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 
    395373}
  • trunk/src/org/openstreetmap/josm/gui/progress/ChildProgress.java

    r1811 r2336  
    4444
    4545    @Override
    46     protected void doSetErrorMessage(String message) {
    47         parent.setErrorMessage(message);
    48     }
    49 
    50     @Override
    5146    protected void doFinishTask() {
    5247        parent.childFinished(this);
  • trunk/src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java

    r2322 r2336  
    120120    void removeCancelListener(CancelListener listener);
    121121
    122     void setSilent(boolean value);
    123122
    124123    /**
Note: See TracChangeset for help on using the changeset viewer.