Ignore:
Timestamp:
2015-06-08T11:28:21+02:00 (9 years ago)
Author:
nokutu
Message:

New progress monitor when downloading images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySquareDownloadManagerThread.java

    r31201 r31246  
    77import org.openstreetmap.josm.Main;
    88import org.openstreetmap.josm.data.Bounds;
     9import org.openstreetmap.josm.gui.PleaseWaitRunnable;
    910import org.openstreetmap.josm.plugins.mapillary.MapillaryData;
    1011
     
    1819 * @see MapillaryDownloader
    1920 */
    20 public class MapillarySquareDownloadManagerThread implements Runnable {
     21public class MapillarySquareDownloadManagerThread extends PleaseWaitRunnable {
    2122
    2223        @SuppressWarnings("unused")
     
    2627
    2728        public MapillarySquareDownloadManagerThread(String urlImages, String urlSequences, Bounds bounds) {
     29                super("Mapillary plugin");
    2830                this.urlImages = urlImages;
    2931                this.urlSequences = urlSequences;
     
    3133        }
    3234
    33         public void run() {
     35        public void realRun() {
     36                this.getProgressMonitor().indeterminateSubTask("Downloading images");
    3437                downloadSequences();
    3538        }
     
    5861                MapillaryData.getInstance().dataUpdated();
    5962        }
     63
     64        @Override
     65        protected void cancel() {
     66                // TODO Auto-generated method stub
     67               
     68        }
     69
     70        @Override
     71        protected void finish() {
     72                // TODO Auto-generated method stub
     73               
     74        }
    6075}
Note: See TracChangeset for help on using the changeset viewer.