- Timestamp:
- 2009-12-14T15:30:24+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r2348 r2633 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;6 6 7 7 import java.awt.event.ActionEvent; … … 20 20 import org.openstreetmap.josm.corrector.ReverseWayTagCorrector; 21 21 import org.openstreetmap.josm.corrector.UserCancelException; 22 import org.openstreetmap.josm.data.osm.DataSet;23 22 import org.openstreetmap.josm.data.osm.Node; 24 23 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 40 39 return; 41 40 42 final Collection<Way> sel = new LinkedList<Way>(); 43 for (OsmPrimitive primitive : getCurrentDataSet().getSelected()) { 44 if (primitive instanceof Way) { 45 sel.add((Way)primitive); 46 } 47 } 41 final Collection<Way> sel = getCurrentDataSet().getSelectedWays(); 48 42 if (sel.isEmpty()) { 49 43 JOptionPane.showMessageDialog(
Note:
See TracChangeset
for help on using the changeset viewer.