Changeset 29710 in osm for applications/editors


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

[josm_imagery_xml_bounds] Update to JOSM 6031

Location:
applications/editors/josm/plugins/imagery-xml-bounds
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/build.xml

    r29461 r29710  
    44    <property name="commit.message" value="Commit message"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="5821"/>
     6    <property name="plugin.main.version" value="6031"/>
    77       
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/downloadtask/DownloadXmlBoundsTask.java

    r26896 r29710  
    1515//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1616package org.openstreetmap.josm.plugins.imageryxmlbounds.actions.downloadtask;
     17
     18import static org.openstreetmap.josm.tools.I18n.tr;
    1719
    1820import java.util.concurrent.Future;
     
    4850
    4951    @Override
    50     public boolean acceptsUrl(String url) {
    51         return url != null && (url.equals(XML_LOCATION) || url.matches("http://.*\\."+EXTENSION.replace(".", "\\.")));
     52    public String[] getPatterns() {
     53        return new String[]{
     54                XML_LOCATION.replace(".", "\\."),
     55                "http://.*\\."+EXTENSION.replace(".", "\\.")
     56        };
     57    }
     58
     59    @Override
     60    public String getTitle() {
     61        return tr("Download imagery XML bounds");
    5262    }
    5363
Note: See TracChangeset for help on using the changeset viewer.