Changeset 18278 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
- Timestamp:
- 2009-10-25T20:48:47+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
r18207 r18278 7 7 import java.util.ArrayList; 8 8 9 import javax.swing.JComboBox;10 9 import javax.swing.JLabel; 11 10 import javax.swing.JOptionPane; … … 50 49 inputTown.setToolTipText(tr("<html>Enter the town,village or city name.<br>" 51 50 + "Use the syntax and punctuation known by www.cadastre.gouv.fr .</html>")); 52 JComboBox inputWMSList = null;53 51 54 52 p.add(labelSectionNewLocation, GBC.eol()); … … 88 86 Main.main.addLayer(wmsLayer); 89 87 System.out.println("Add new layer with Location:" + inputTown.getText()); 90 } else if (existingLayers != null && existingLayers.size() > 0 && inputWMSList.getSelectedIndex() > 0) {91 wmsLayer = existingLayers.get(inputWMSList.getSelectedIndex()-1);88 } else if (existingLayers != null && existingLayers.size() > 0 && Main.map.mapView.getActiveLayer() instanceof WMSLayer) { 89 wmsLayer = (WMSLayer)Main.map.mapView.getActiveLayer(); 92 90 resetCookie = true; 93 91 }
Note:
See TracChangeset
for help on using the changeset viewer.
