Ignore:
Timestamp:
27.10.2009 01:21:32 (3 years ago)
Author:
Gubaer
Message:

Cleanup in download logic (less global, more encapsulation)

File:
1 edited

Legend:

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

    r2322 r2327  
    55import java.util.concurrent.Future; 
    66 
    7 import javax.swing.JCheckBox; 
    8  
    97import org.openstreetmap.josm.actions.DownloadAction; 
     8import org.openstreetmap.josm.data.Bounds; 
    109import org.openstreetmap.josm.gui.progress.ProgressMonitor; 
    1110 
     
    1615     * if no error messages should be popped up. 
    1716     */ 
    18     Future<?> download(DownloadAction action, double minlat, double minlon, 
    19             double maxlat, double maxlon, ProgressMonitor progressMonitor); 
     17    Future<?> download(DownloadAction action, Bounds downloadArea, ProgressMonitor progressMonitor); 
    2018 
    2119    /** 
     
    2523     */ 
    2624    Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor); 
    27  
    28     /** 
    29      * @return The checkbox presented to the user 
    30      */ 
    31     JCheckBox getCheckBox(); 
    32  
    33     /** 
    34      * @return The name of the preferences suffix to use for storing the 
    35      * selection state. 
    36      */ 
    37     String getPreferencesSuffix(); 
    3825 
    3926    /** 
Note: See TracChangeset for help on using the changeset viewer.