Changeset 15853 in josm for trunk


Ignore:
Timestamp:
2020-02-15T11:24:30+01:00 (4 years ago)
Author:
Don-vip
Message:

see #18440 - non-blocking warning in case of invalid TMS entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/JosmMapViewer.java

    r15145 r15853  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.gui.bbox;
    3 
    4 import static org.openstreetmap.josm.tools.I18n.tr;
    53
    64import java.util.ArrayList;
     
    2725import org.openstreetmap.josm.data.preferences.StringProperty;
    2826import org.openstreetmap.josm.gui.MainApplication;
     27import org.openstreetmap.josm.gui.Notification;
    2928import org.openstreetmap.josm.gui.layer.AbstractCachedTileSourceLayer;
    3029import org.openstreetmap.josm.gui.layer.ImageryLayer;
     
    7675                }
    7776            } catch (IllegalArgumentException ex) {
    78                 Logging.warn(ex);
     77                Logging.trace(ex);
     78                Logging.warn(ex.getMessage());
    7979                if (ex.getMessage() != null && !ex.getMessage().isEmpty()) {
    80                     JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
    81                             ex.getMessage(), tr("Warning"),
    82                             JOptionPane.WARNING_MESSAGE);
     80                    new Notification(ex.getMessage()).setIcon(JOptionPane.WARNING_MESSAGE).show();
    8381                }
    8482            }
Note: See TracChangeset for help on using the changeset viewer.