- Timestamp:
- 2016-07-17T13:41:52+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r10463 r10548 245 245 @Override 246 246 protected void updateEnabledState() { 247 DataSet ds = getLayerManager().getEditDataSet(); 248 if (ds == null) { 249 setEnabled(false); 250 return; 251 } 252 updateEnabledState(ds.getSelected()); 247 updateEnabledStateOnCurrentSelection(); 253 248 } 254 249 -
trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
r10453 r10548 263 263 @Override 264 264 protected void updateEnabledState() { 265 DataSet ds = getLayerManager().getEditDataSet(); 266 if (ds == null) { 267 setEnabled(false); 268 } else { 269 updateEnabledState(ds.getSelected()); 270 } 265 updateEnabledStateOnCurrentSelection(); 271 266 } 272 267 -
trunk/src/org/openstreetmap/josm/actions/InfoAction.java
r10413 r10548 43 43 @Override 44 44 public void updateEnabledState() { 45 DataSet ds = getLayerManager().getEditDataSet(); 46 if (ds == null) { 47 setEnabled(false); 48 } else { 49 updateEnabledState(ds.getAllSelected()); 50 } 45 updateEnabledStateOnCurrentSelection(); 51 46 } 52 47 -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r10463 r10548 353 353 @Override 354 354 protected void updateEnabledState() { 355 DataSet ds = getLayerManager().getEditDataSet(); 356 if (ds == null) { 357 setEnabled(false); 358 } else { 359 updateEnabledState(ds.getAllSelected()); 360 } 355 updateEnabledStateOnCurrentSelection(); 361 356 } 362 357 -
trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java
r10448 r10548 71 71 @Override 72 72 protected void updateEnabledState() { 73 DataSet ds = getLayerManager().getEditDataSet(); 74 if (ds == null) { 75 setEnabled(false); 76 } else { 77 updateEnabledState(ds.getAllSelected()); 78 } 73 updateEnabledStateOnCurrentSelection(); 79 74 } 80 75 -
trunk/src/org/openstreetmap/josm/actions/MoveNodeAction.java
r10382 r10548 56 56 @Override 57 57 protected void updateEnabledState() { 58 DataSet ds = getLayerManager().getEditDataSet(); 59 if (ds == null) { 60 setEnabled(false); 61 } else { 62 updateEnabledState(ds.getSelected()); 63 } 58 updateEnabledStateOnCurrentSelection(); 64 59 } 65 60 -
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r10467 r10548 130 130 @Override 131 131 protected void updateEnabledState() { 132 DataSet ds = getLayerManager().getEditDataSet(); 133 if (ds == null) { 134 setEnabled(false); 135 } else { 136 updateEnabledState(ds.getSelected()); 137 } 132 updateEnabledStateOnCurrentSelection(); 138 133 } 139 134 -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r10448 r10548 751 751 @Override 752 752 protected void updateEnabledState() { 753 DataSet ds = getLayerManager().getEditDataSet(); 754 if (ds == null) { 755 setEnabled(false); 756 } else { 757 updateEnabledState(ds.getSelected()); 758 } 753 updateEnabledStateOnCurrentSelection(); 759 754 } 760 755 -
trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
r10448 r10548 113 113 @Override 114 114 protected void updateEnabledState() { 115 DataSet ds = getLayerManager().getEditDataSet(); 116 if (ds == null) { 117 setEnabled(false); 118 } else { 119 updateEnabledState(ds.getAllSelected()); 120 } 115 updateEnabledStateOnCurrentSelection(); 121 116 } 122 117 -
trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java
r10382 r10548 58 58 @Override 59 59 protected void updateEnabledState() { 60 DataSet ds = getLayerManager().getEditDataSet(); 61 if (ds == null) { 62 setEnabled(false); 63 } else { 64 updateEnabledState(ds.getAllSelected()); 65 } 60 updateEnabledStateOnCurrentSelection(); 66 61 } 67 62
Note:
See TracChangeset
for help on using the changeset viewer.