Changeset 29710 in osm for applications/editors/josm/plugins/imagery-xml-bounds/src
- Timestamp:
- 2013-06-26T22:32:34+02:00 (11 years ago)
- 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 15 15 // along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 package org.openstreetmap.josm.plugins.imageryxmlbounds.actions.downloadtask; 17 18 import static org.openstreetmap.josm.tools.I18n.tr; 17 19 18 20 import java.util.concurrent.Future; … … 48 50 49 51 @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"); 52 62 } 53 63
Note:
See TracChangeset
for help on using the changeset viewer.