Changeset 3092 in josm for trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
- Timestamp:
- 07.03.2010 14:34:27 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
r3083 r3092 103 103 setEnabled(false); 104 104 } else { 105 updateEnabledState(get Data());105 updateEnabledState(getCurrentDataSet().getSelected()); 106 106 } 107 107 } … … 118 118 if (! isEnabled()) 119 119 return; 120 Collection<OsmPrimitive> selection = getData();120 Collection<OsmPrimitive> selection =getCurrentDataSet().getSelected(); 121 121 if (selection.size() == 0) { 122 122 JOptionPane.showMessageDialog( … … 130 130 updatePrimitives(selection); 131 131 } 132 133 protected Collection<OsmPrimitive> getData() {134 return getCurrentDataSet().getSelected();135 }136 132 }
Note: See TracChangeset
for help on using the changeset viewer.
