Changeset 11536 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-02-04T15:26:23+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r11396 r11536 119 119 120 120 private final List<ToggleDialog> allDialogs = new ArrayList<>(); 121 private final List<MapMode> mapModes = new ArrayList<>();122 121 private final List<IconToggleButton> allDialogButtons = new ArrayList<>(); 123 122 public final List<IconToggleButton> allMapModeButtons = new ArrayList<>(); … … 388 387 389 388 public void addMapMode(IconToggleButton b) { 390 if (b.getAction() instanceof MapMode) { 391 mapModes.add((MapMode) b.getAction()); 392 } else 389 if (!(b.getAction() instanceof MapMode)) 393 390 throw new IllegalArgumentException("MapMode action must be subclass of MapMode"); 394 391 allMapModeButtons.add(b);
Note:
See TracChangeset
for help on using the changeset viewer.