Ignore:
Timestamp:
2009-03-07T13:40:54+01:00 (15 years ago)
Author:
stoecker
Message:

fix #1967. patch by xeen. This will break plugins using ProgressDialog until recompiled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r1392 r1465  
    5151    public interface DownloadTask {
    5252        /**
    53          * Execute the download.
    54          */
    55         void download(DownloadAction action, double minlat, double minlon, double maxlat, double maxlon);
     53         * Execute the download using the given bounding box
     54         */
     55        void download(DownloadAction action, double minlat, double minlon,
     56                double maxlat, double maxlon);
     57
     58        /**
     59         * Execute the download using the given bounding box. Set silent to true if no error
     60         * messages should be popped up. Message can be used to display an additional text below
     61         * the default description.
     62         */
     63        void download(DownloadAction action, double minlat, double minlon,
     64                double maxlat, double maxlon, boolean silent, String message);
     65
     66        /**
     67         * Execute the download using the given URL
     68         * @param newLayer
     69         * @param url
     70         */
    5671        void loadUrl(boolean newLayer, String url);
     72
    5773        /**
    5874         * @return The checkbox presented to the user
    5975         */
    6076        JCheckBox getCheckBox();
     77
    6178        /**
    6279         * @return The name of the preferences suffix to use for storing the
     
    6481         */
    6582        String getPreferencesSuffix();
     83
     84        /**
     85         * Gets the error message of the task once it executed. If there is no error message, an empty
     86         * string is returned.
     87         *
     88         * WARNING: Never call this in the same thread you requested the download() or it will cause a
     89         * dead lock. See actions/downloadTasks/DownloadOsmTaskList.java for a proper implementation.
     90         *
     91         * @return Error message or empty String
     92         */
     93        String getErrorMessage();
    6694    }
    6795
Note: See TracChangeset for help on using the changeset viewer.