Changeset 15961 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java
- Timestamp:
- 2009-06-17T09:46:26+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java
r13784 r15961 16 16 private static final long serialVersionUID = 1L; 17 17 18 public WMSDownloadAction(String layerName) { 19 super(layerName, "wmsmenu", tr("Download WMS tile from {0}",layerName), null, false); 20 } 21 22 public void actionPerformed(ActionEvent e) { 23 DownloadWMSTask.download(getLayer()); 24 } 18 public WMSDownloadAction(String layerName) { 19 super(layerName, "wmsmenu", tr("Download WMS tile from {0}",layerName), null, false); 20 } 25 21 26 public static WMSLayer getLayer() { 27 // check if we already have a layer created. if not, create; if yes, reuse. 22 public void actionPerformed(ActionEvent e) { 23 DownloadWMSTask.download(getLayer()); 24 } 25 26 public static WMSLayer getLayer() { 27 // check if we already have a layer created. if not, create; if yes, reuse. 28 28 if (Main.map != null) { 29 29 Layer activeLayer = Main.map.mapView.getActiveLayer(); … … 44 44 } 45 45 return null; 46 46 } 47 47 }; 48 48
Note:
See TracChangeset
for help on using the changeset viewer.