Ignore:
Timestamp:
2009-02-05T01:00:53+01:00 (17 years ago)
Author:
pieren
Message:

Add municipality boundary import from SVG data delivered by cadastre WMS.

File:
1 edited

Legend:

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

    r13497 r13545  
    55import java.awt.event.ActionEvent;
    66import java.util.ArrayList;
     7
     8import javax.swing.JOptionPane;
    79
    810import org.openstreetmap.josm.Main;
     
    1416    private static final long serialVersionUID = 1L;
    1517
    16     //private String layerName;
    17        
    1818        public WMSDownloadAction(String layerName) {
    1919                super(layerName, "wmsmenu", tr("Download WMS tile from {0}",layerName), null, false);
     
    3838            if (existingWMSlayers.size() == 1)
    3939                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"));
    4144        }
    4245        return null;
Note: See TracChangeset for help on using the changeset viewer.