Changeset 19045 in osm for applications/editors/josm/plugins/waydownloader/src
- Timestamp:
- 2009-12-12T13:33:59+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/waydownloader/src/org/openstreetmap/josm/plugins/waydownloader/WayDownloaderPlugin.java
r18962 r19045 92 92 public void actionPerformed(ActionEvent e) { 93 93 selectedNode = null; 94 Collection< OsmPrimitive> selection = Main.main.getCurrentDataSet().getSelectedNodes();94 Collection<Node> selection = Main.main.getCurrentDataSet().getSelectedNodes(); 95 95 if (selection.size()==0) { 96 selection= Main.main.getCurrentDataSet().getSelectedWays();97 if (!workFromWaySelection(sel ection)) {96 Collection<Way> selWays = Main.main.getCurrentDataSet().getSelectedWays(); 97 if (!workFromWaySelection(selWays)) { 98 98 showWarningMessage(tr("<html>Neither a node nor a way with an endpoint outside of the<br>current download areas is selected.<br>Select a node on the start or end of a way or an entire way first.</html>")); 99 99 return; … … 302 302 * return true if this worked 303 303 */ 304 private boolean workFromWaySelection(Collection< OsmPrimitive> selection) {304 private boolean workFromWaySelection(Collection<? extends OsmPrimitive> selection) { 305 305 if (selection.size() != 1) 306 306 return false;
Note:
See TracChangeset
for help on using the changeset viewer.