Ignore:
Timestamp:
2009-08-09T00:39:02+02:00 (15 years ago)
Author:
pieren
Message:

support new projections for French overseas departements and move projection checking from startup to grab action (since projection is dynamic)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrab.java

    r16007 r16929  
    55import java.awt.event.ActionEvent;
    66import java.awt.event.KeyEvent;
     7
     8import javax.swing.JOptionPane;
    79
    810import org.openstreetmap.josm.Main;
     
    2729    public void actionPerformed(ActionEvent e) {
    2830        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            }
    3241        }
    3342    }
Note: See TracChangeset for help on using the changeset viewer.