Last change
on this file since 11170 was 8624, checked in by bastiK, 9 years ago |
add missing svn:eol-style=native
|
-
Property svn:eol-style
set to
native
|
File size:
868 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.actions.downloadtasks;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import java.util.concurrent.Future;
|
---|
7 |
|
---|
8 | import org.openstreetmap.josm.gui.progress.ProgressMonitor;
|
---|
9 | import org.openstreetmap.josm.tools.OsmUrlToBounds;
|
---|
10 |
|
---|
11 | public class DownloadNotesUrlBoundsTask extends DownloadNotesTask {
|
---|
12 |
|
---|
13 | @Override
|
---|
14 | public Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor) {
|
---|
15 | return download(newLayer, OsmUrlToBounds.parse(url), null);
|
---|
16 | }
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public String[] getPatterns() {
|
---|
20 | return new String[]{
|
---|
21 | "https?://www\\.(osm|openstreetmap)\\.org/(.*)?#map=\\p{Digit}+/.*/.*&layers=[A-MO-Z]*N[A-MO-Z]*"};
|
---|
22 | }
|
---|
23 |
|
---|
24 | @Override
|
---|
25 | public String getTitle() {
|
---|
26 | return tr("Download OSM Notes within Bounds");
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.