Changeset 3093 in josm for trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
- Timestamp:
- 07.03.2010 14:41:05 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
r3092 r3093 118 118 if (! isEnabled()) 119 119 return; 120 Collection<OsmPrimitive> selection =getCurrentDataSet().getSelected();121 if ( selection.size() == 0) {120 Collection<OsmPrimitive> toUpdate =getData(); 121 if (toUpdate.size() == 0) { 122 122 JOptionPane.showMessageDialog( 123 123 Main.parent, … … 128 128 return; 129 129 } 130 updatePrimitives(selection); 130 updatePrimitives(toUpdate); 131 } 132 133 public Collection<OsmPrimitive> getData() { 134 return getCurrentDataSet().getSelected(); 131 135 } 132 136 }
Note: See TracChangeset
for help on using the changeset viewer.
