Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListPopup.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListPopup.java
r8419 r8510 80 80 separatorAdded = true; 81 81 actions.add(a); 82 } else if (a instanceof LayerAction && ((LayerAction) a).supportLayers(selectedLayers)) {82 } else if (a instanceof LayerAction && ((LayerAction) a).supportLayers(selectedLayers)) { 83 83 separatorAdded = false; 84 if (a instanceof MultiLayerAction)85 a = ((MultiLayerAction) a).getMultiLayerAction(selectedLayers);84 if (a instanceof MultiLayerAction) 85 a = ((MultiLayerAction) a).getMultiLayerAction(selectedLayers); 86 86 actions.add(a); 87 87 } 88 88 } 89 89 // This will usually add no action, because if some action support all selected layers then it was probably used also in first layer 90 for (int i =1; i<selectedLayers.size(); i++) {90 for (int i = 1; i < selectedLayers.size(); i++) { 91 91 separatorAdded = false; 92 92 for (Action a: selectedLayers.get(i).getMenuEntries()) { 93 93 if (a instanceof LayerAction && !(a instanceof MultiLayerAction) 94 && ((LayerAction) a).supportLayers(selectedLayers) && !actions.contains(a)) {94 && ((LayerAction) a).supportLayers(selectedLayers) && !actions.contains(a)) { 95 95 if (!separatorAdded) { 96 96 separatorAdded = true;
Note:
See TracChangeset
for help on using the changeset viewer.