Changeset 26670 in osm for applications/editors/josm/plugins/utilsplugin2
- Timestamp:
- 2011-09-18T18:17:43+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin2
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectAllInsideAction.java
r26662 r26670 10 10 import java.util.HashSet; 11 11 import java.util.Set; 12 12 13 import javax.swing.JOptionPane; 14 13 15 import org.openstreetmap.josm.Main; 14 16 import org.openstreetmap.josm.actions.JosmAction; 15 import org.openstreetmap.josm.data.osm.*; 16 17 import org.openstreetmap.josm.data.osm.Node; 18 import org.openstreetmap.josm.data.osm.OsmPrimitive; 19 import org.openstreetmap.josm.data.osm.Relation; 20 import org.openstreetmap.josm.data.osm.Way; 17 21 import org.openstreetmap.josm.tools.Shortcut; 18 import sun.awt.windows.WWindowPeer;19 22 20 23 /** … … 35 38 Set<Way> selectedWays = OsmPrimitive.getFilteredSet(getCurrentDataSet().getSelected(), Way.class); 36 39 Set<Relation> selectedRels = OsmPrimitive.getFilteredSet(getCurrentDataSet().getSelected(), Relation.class); 37 40 38 41 for (Way w: selectedWays) { 39 42 if (!w.isClosed()) selectedWays.remove(w);
Note:
See TracChangeset
for help on using the changeset viewer.