Subject: [PATCH] 23111.pmtiles
---
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/actions/downloadtasks/DownloadPMTilesTask.java b/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/actions/downloadtasks/DownloadPMTilesTask.java
|
a
|
b
|
|
| 17 | 17 | import org.openstreetmap.josm.data.Bounds; |
| 18 | 18 | import org.openstreetmap.josm.gui.MainApplication; |
| 19 | 19 | import org.openstreetmap.josm.gui.progress.ProgressMonitor; |
| 20 | | import org.openstreetmap.josm.io.XmlWriter; |
| 21 | 20 | import org.openstreetmap.josm.plugins.pmtiles.data.imagery.PMTilesImageryInfo; |
| 22 | 21 | import org.openstreetmap.josm.plugins.pmtiles.gui.layers.PMTilesImageLayer; |
| 23 | 22 | import org.openstreetmap.josm.plugins.pmtiles.gui.layers.PMTilesMVTLayer; |
| … |
… |
|
| 72 | 71 | return url.endsWith(".pmtiles"); |
| 73 | 72 | } |
| 74 | 73 | |
| 75 | | @Override |
| 76 | | public String acceptsDocumentationSummary() { |
| 77 | | // I think this should be a "default" implementation in DownloadTask |
| 78 | | StringBuilder buff = new StringBuilder(128) |
| 79 | | .append("<tr><td>") |
| 80 | | .append(getTitle()) |
| 81 | | .append(":</td><td>"); |
| 82 | | String[] patterns = getPatterns(); |
| 83 | | if (patterns.length > 0) { |
| 84 | | buff.append("<ul>"); |
| 85 | | for (String pattern: patterns) { |
| 86 | | buff.append("<li>") |
| 87 | | .append(XmlWriter.encode(pattern)) |
| 88 | | .append("</li>"); |
| 89 | | } |
| 90 | | buff.append("</ul>"); |
| 91 | | } |
| 92 | | buff.append("</td></tr>"); |
| 93 | | return buff.toString(); |
| 94 | | } |
| 95 | | |
| 96 | 74 | @Override |
| 97 | 75 | public String getTitle() { |
| 98 | 76 | return tr("Add PMTiles layer"); |