Changeset 16929 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrab.java
- Timestamp:
- 2009-08-09T00:39:02+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrab.java
r16007 r16929 5 5 import java.awt.event.ActionEvent; 6 6 import java.awt.event.KeyEvent; 7 8 import javax.swing.JOptionPane; 7 9 8 10 import org.openstreetmap.josm.Main; … … 27 29 public void actionPerformed(ActionEvent e) { 28 30 if (Main.map != null) { 29 WMSLayer wmsLayer = WMSDownloadAction.getLayer(); 30 if (wmsLayer != null) 31 DownloadWMSTask.download(wmsLayer); 31 if (CadastrePlugin.isCadastreProjection()) { 32 WMSLayer wmsLayer = WMSDownloadAction.getLayer(); 33 if (wmsLayer != null) 34 DownloadWMSTask.download(wmsLayer); 35 } else { 36 JOptionPane.showMessageDialog(Main.parent, 37 tr("To enable the cadastre WMS plugin, change\n" 38 + "the current projection to one of the cadastre\n" 39 + "projection and retry")); 40 } 32 41 } 33 42 }
Note:
See TracChangeset
for help on using the changeset viewer.