Ignore:
Timestamp:
2015-04-18T11:50:47+02:00 (10 years ago)
Author:
simon04
Message:

fix #10867 - Notes download: inform user about reaching download limit

File:
1 edited

Legend:

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

    r8195 r8216  
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
     5import static org.openstreetmap.josm.tools.I18n.trn;
    56
    67import java.io.IOException;
     
    89import java.util.List;
    910import java.util.concurrent.Future;
     11
     12import javax.swing.JOptionPane;
    1013
    1114import org.openstreetmap.josm.Main;
     
    141144            try {
    142145                notesData = reader.parseNotes(null, null, subMonitor);
     146            } catch (BoundingBoxDownloader.MoreNotesException e) {
     147                JOptionPane.showMessageDialog(Main.parent, "<html>"
     148                                + trn("{0} note has been downloaded.", "{0} notes have been downloaded.", e.limit, e.limit)
     149                                + "<br>"
     150                                + tr("Since the download limit was {0}, there might be more notes to download.", e.limit)
     151                                + "<br>"
     152                                + tr("Request a smaller area to make sure that all notes are being downloaded.")
     153                                + "</html>",
     154                        tr("More notes to download"), JOptionPane.INFORMATION_MESSAGE);
    143155            } catch (Exception e) {
    144156                if (isCanceled())
Note: See TracChangeset for help on using the changeset viewer.