source: osm/applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrab.java@ 15961

Last change on this file since 15961 was 15961, checked in by stoecker, 15 years ago

fix build issues

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1package cadastre_fr;
2
3import static org.openstreetmap.josm.tools.I18n.tr;
4
5import java.awt.event.ActionEvent;
6import java.awt.event.KeyEvent;
7
8import org.openstreetmap.josm.Main;
9import org.openstreetmap.josm.actions.JosmAction;
10import org.openstreetmap.josm.tools.Shortcut;
11
12public 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.