Ignore:
Timestamp:
2013-06-26T22:23:54+02:00 (11 years ago)
Author:
donvip
Message:

[josm_pbf] Update to JOSM 6031

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

Legend:

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

    r29435 r29708  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <!--
    3 ** This is a template build file for the PBF plugin.
    4 **
    5 ** Maintaining versions
    6 ** ====================
    7 ** see README.template
    8 **
    9 ** Usage
    10 ** =====
    11 ** To build it run
    12 **
    13 **    > ant  dist
    14 **
    15 ** To install the generated plugin locally (in you default plugin directory) run
    16 **
    17 **    > ant  install
    18 **
    19 ** The generated plugin jar is not automatically available in JOSMs plugin configuration
    20 ** dialog. You have to check it in first.
    21 **
    22 ** Use the ant target 'publish' to check in the plugin and make it available to other
    23 ** JOSM users:
    24 **    set the properties commit.message and plugin.main.version
    25 ** and run
    26 **    > ant  publish
    27 **
    28 **
    29 -->
    302<project name="pbf" default="dist" basedir=".">
    313
     
    335    <property name="commit.message" value="Commit message"/>
    346    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    35     <property name="plugin.main.version" value="4687"/>
     7    <property name="plugin.main.version" value="6031"/>
    368
    379    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/action/DownloadPbfTask.java

    r26961 r29708  
    1515//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1616package org.openstreetmap.josm.plugins.pbf.action;
     17
     18import static org.openstreetmap.josm.tools.I18n.tr;
    1719
    1820import java.util.concurrent.Future;
     
    4345        }
    4446
    45         @Override
    46         public boolean acceptsUrl(String url) {
    47                 return url != null && url.endsWith(EXTENSION);
    48         }
     47    @Override
     48    public String[] getPatterns() {
     49        return new String[]{".*\\."+EXTENSION};
     50    }
     51
     52    @Override
     53    public String getTitle() {
     54        return tr("Download PBF");
     55    }
    4956}
Note: See TracChangeset for help on using the changeset viewer.