Ignore:
Timestamp:
2009-12-12T13:33:59+01:00 (15 years ago)
Author:
guggis
Message:

'Update to JOSM 2616'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/waydownloader/src/org/openstreetmap/josm/plugins/waydownloader/WayDownloaderPlugin.java

    r18962 r19045  
    9292        public void actionPerformed(ActionEvent e) {
    9393            selectedNode = null;
    94             Collection<OsmPrimitive> selection = Main.main.getCurrentDataSet().getSelectedNodes();
     94            Collection<Node> selection = Main.main.getCurrentDataSet().getSelectedNodes();
    9595            if (selection.size()==0) {
    96                 selection = Main.main.getCurrentDataSet().getSelectedWays();
    97                 if (!workFromWaySelection(selection)) {
     96                Collection<Way> selWays = Main.main.getCurrentDataSet().getSelectedWays();
     97                if (!workFromWaySelection(selWays)) {
    9898                    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>"));
    9999                    return;
     
    302302     * return true if this worked
    303303     */
    304     private boolean workFromWaySelection(Collection<OsmPrimitive> selection) {
     304    private boolean workFromWaySelection(Collection<? extends OsmPrimitive> selection) {
    305305        if (selection.size() != 1)
    306306            return false;
Note: See TracChangeset for help on using the changeset viewer.