Changeset 13545 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java
- Timestamp:
- 2009-02-05T01:00:53+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSDownloadAction.java
r13497 r13545 5 5 import java.awt.event.ActionEvent; 6 6 import java.util.ArrayList; 7 8 import javax.swing.JOptionPane; 7 9 8 10 import org.openstreetmap.josm.Main; … … 14 16 private static final long serialVersionUID = 1L; 15 17 16 //private String layerName;17 18 18 public WMSDownloadAction(String layerName) { 19 19 super(layerName, "wmsmenu", tr("Download WMS tile from {0}",layerName), null, false); … … 38 38 if (existingWMSlayers.size() == 1) 39 39 return existingWMSlayers.get(0); 40 return new MenuActionNewLocation().addNewLayer(existingWMSlayers); 40 if (existingWMSlayers.size() == 0) 41 return new MenuActionNewLocation().addNewLayer(existingWMSlayers); 42 JOptionPane.showMessageDialog(Main.parent, 43 tr("More than one WMS layer present\nSelect one of them first, then retry")); 41 44 } 42 45 return null;
Note:
See TracChangeset
for help on using the changeset viewer.
