Ticket #23925: 23925.patch

File 23925.patch, 2.8 KB (added by taylor.smock, 19 months ago)
  • src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java

    Subject: [PATCH] #23925
    ---
    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java b/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
    a b  
    262262        if (msg instanceof String) {
    263263            String msgStr = (String) msg;
    264264            content = new HtmlPanel(msgStr.startsWith("<html>") ? msgStr : "<html>" + msgStr + "</html>");
     265            ((HtmlPanel) content).enableClickableHyperlinks();
    265266        } else {
    266267            content = msg;
    267268        }
  • src/org/openstreetmap/josm/tools/ExceptionUtil.java

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/org/openstreetmap/josm/tools/ExceptionUtil.java b/src/org/openstreetmap/josm/tools/ExceptionUtil.java
    a b  
    2828import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
    2929import org.openstreetmap.josm.data.osm.Relation;
    3030import org.openstreetmap.josm.data.osm.Way;
     31import org.openstreetmap.josm.gui.help.HelpUtil;
    3132import org.openstreetmap.josm.io.ChangesetClosedException;
    3233import org.openstreetmap.josm.io.IllegalDataException;
    3334import org.openstreetmap.josm.io.MissingOAuthAccessTokenException;
     
    578579                        errorHeader.startsWith("You requested too many nodes"))) {
    579580            message += "<br>"
    580581                + tr("The area you tried to download is too big or your request was too large."
    581                         + "<br>Either request a smaller area or use an export file provided by the OSM community.");
     582                        + "<br>Either request a smaller area or use an export file provided by the OSM community."
     583                        + "<br><ul>"
     584                        + "<li><a href=\"{0}\">Overpass</a></li>"
     585                        + "<li><a href=\"{1}\">Geofabrik</a></li>"
     586                        + "<li><a href=\"{2}\">Planet</a></li>"
     587                        + "</ul>", HelpUtil.getHelpTopicUrl("/Help/Action/Download#DownloadfromOverpassAPI"),
     588                    "https://www.geofabrik.de/data/download.html",
     589                    "https://planet.openstreetmap.org/");
    582590        } else if (errorHeader != null) {
    583591            message += tr("<br>Error message(untranslated): {0}", errorHeader);
    584592        }