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

[josm_imagery_xml_bounds] Update to JOSM 6031

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.