Ignore:
Timestamp:
2015-06-07T13:37:44+02:00 (5 years ago)
Author:
Don-vip
Message:

Display "No data found in this area." in a notification instead of a blocking error dialog

File:
1 edited

Legend:

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

    r8338 r8472  
    1616import org.openstreetmap.josm.Main;
    1717import org.openstreetmap.josm.gui.ExceptionDialogUtil;
     18import org.openstreetmap.josm.gui.Notification;
    1819import org.openstreetmap.josm.tools.ExceptionUtil;
    1920import org.openstreetmap.josm.tools.Utils;
     
    6465    @Override
    6566    public void run() {
    66         // wait for all downloads task to finish (by waiting for the futures
    67         // to return a value)
     67        // wait for all downloads task to finish (by waiting for the futures to return a value)
    6868        //
    6969        for (Future<?> future: futures) {
     
    9292                    if (error instanceof Exception) {
    9393                        ExceptionDialogUtil.explainException((Exception)error);
     94                    } else if (tr("No data found in this area.").equals(error)) {
     95                        new Notification(error.toString()).setIcon(JOptionPane.WARNING_MESSAGE).show();
    9496                    } else {
    9597                        JOptionPane.showMessageDialog(
Note: See TracChangeset for help on using the changeset viewer.