Changeset 36144 in osm for applications/editors/josm


Ignore:
Timestamp:
2023-09-18T20:32:00+02:00 (16 months ago)
Author:
taylor.smock
Message:

See #23111: Use the common acceptsDocumentationSummary DownloadTask method definition

Location:
applications/editors/josm/plugins/pmtiles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pmtiles/build.xml

    r36112 r36144  
    88    <property name="commit.message" value="Commit message"/>
    99    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    10     <property name="plugin.main.version" value="10580"/>
     10    <property name="plugin.main.version" value="18830"/>
    1111
    1212    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/actions/downloadtasks/DownloadPMTilesTask.java

    r36112 r36144  
    1818import org.openstreetmap.josm.gui.MainApplication;
    1919import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    20 import org.openstreetmap.josm.io.XmlWriter;
    2120import org.openstreetmap.josm.plugins.pmtiles.data.imagery.PMTilesImageryInfo;
    2221import org.openstreetmap.josm.plugins.pmtiles.gui.layers.PMTilesImageLayer;
     
    7473
    7574    @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     @Override
    9775    public String getTitle() {
    9876        return tr("Add PMTiles layer");
Note: See TracChangeset for help on using the changeset viewer.