Last change
on this file since 13727 was 13497, checked in by skela, 16 years ago |
applications/editors/josm: Set svn:eol-style native on all *.java files
in plugins. Normalize the eol-style in
plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/StringEnumConfigurer.java.
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Line | |
---|
1 | package cadastre_fr;
|
---|
2 |
|
---|
3 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
4 |
|
---|
5 | import java.awt.event.ActionEvent;
|
---|
6 | import java.awt.event.KeyEvent;
|
---|
7 |
|
---|
8 | import org.openstreetmap.josm.Main;
|
---|
9 | import org.openstreetmap.josm.actions.JosmAction;
|
---|
10 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
11 |
|
---|
12 | public class MenuActionGrab extends JosmAction {
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * Action calling the wms grabber for cadastre.gouv.fr
|
---|
16 | */
|
---|
17 | private static final long serialVersionUID = 1L;
|
---|
18 |
|
---|
19 | public static String name = "Cadastre grab";
|
---|
20 |
|
---|
21 | public MenuActionGrab() {
|
---|
22 | super(tr(name), "cadastre_small", tr("Download Image from french Cadastre WMS"),
|
---|
23 | Shortcut.registerShortcut("cadastre:grab", tr("Cadastre: {0}", tr("Download Image from french Cadastre WMS")),
|
---|
24 | KeyEvent.VK_F11, Shortcut.GROUP_DIRECT), false);
|
---|
25 | }
|
---|
26 |
|
---|
27 | public void actionPerformed(ActionEvent e) {
|
---|
28 | if (Main.map != null) {
|
---|
29 | WMSLayer wmsLayer = WMSDownloadAction.getLayer();
|
---|
30 | if (wmsLayer != null)
|
---|
31 | DownloadWMSTask.download(wmsLayer);
|
---|
32 | }
|
---|
33 | }
|
---|
34 |
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.