Changeset 15961 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
- Timestamp:
- 2009-06-17T09:46:26+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
r13545 r15961 21 21 public class MenuActionNewLocation extends JosmAction { 22 22 23 private static final long serialVersionUID = 1L; 24 25 public MenuActionNewLocation() { 26 super(tr("Change location"), "cadastre_small", tr("Set a new location for the next request"), null, false); 27 } 23 private static final long serialVersionUID = 1L; 28 24 29 public void actionPerformed(ActionEvent e) { 25 public MenuActionNewLocation() { 26 super(tr("Change location"), "cadastre_small", tr("Set a new location for the next request"), null, false); 27 } 28 29 public void actionPerformed(ActionEvent e) { 30 30 WMSLayer wmsLayer = addNewLayer(new ArrayList<WMSLayer>()); 31 31 if (wmsLayer != null) 32 32 DownloadWMSTask.download(wmsLayer); 33 33 } 34 35 public WMSLayer addNewLayer(ArrayList<WMSLayer> existingLayers) {34 35 public WMSLayer addNewLayer(ArrayList<WMSLayer> existingLayers) { 36 36 if (Main.map == null) { 37 37 JOptionPane.showMessageDialog(Main.parent, … … 88 88 System.out.println("Add new layer with Location:" + inputTown.getText()); 89 89 } else if (existingLayers != null && existingLayers.size() > 0 && inputWMSList.getSelectedIndex() > 0) { 90 wmsLayer = existingLayers.get(inputWMSList.getSelectedIndex()-1); 90 wmsLayer = existingLayers.get(inputWMSList.getSelectedIndex()-1); 91 91 resetCookie = true; 92 92 } … … 97 97 } 98 98 } 99 99 100 100 }
Note:
See TracChangeset
for help on using the changeset viewer.
