Changeset 11116 in josm for trunk/src/org
- Timestamp:
- 2016-10-11T19:27:12+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r10748 r11116 26 26 import org.openstreetmap.josm.command.SequenceCommand; 27 27 import org.openstreetmap.josm.data.coor.EastNorth; 28 import org.openstreetmap.josm.data.osm.DataSet;29 28 import org.openstreetmap.josm.data.osm.Node; 30 29 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 124 123 .show(); 125 124 } 125 } 126 127 @Override 128 protected void updateEnabledState() { 129 updateEnabledStateOnCurrentSelection(); 130 } 131 132 @Override 133 protected void updateEnabledState(Collection<? extends OsmPrimitive> selection) { 134 setEnabled(selection != null && !selection.isEmpty()); 126 135 } 127 136 } … … 618 627 @Override 619 628 protected void updateEnabledState() { 620 DataSet ds = getLayerManager().getEditDataSet(); 621 setEnabled(ds != null && !ds.selectionEmpty()); 629 updateEnabledStateOnCurrentSelection(); 622 630 } 623 631
Note:
See TracChangeset
for help on using the changeset viewer.