Changeset 13200 in josm
- Timestamp:
- 2017-12-12T19:48:44+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r13181 r13200 61 61 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource; 62 62 import org.openstreetmap.josm.gui.util.CursorManager; 63 import org.openstreetmap.josm.gui.util.GuiHelper; 63 64 import org.openstreetmap.josm.spi.preferences.Config; 64 65 import org.openstreetmap.josm.tools.Logging; … … 122 123 * @param listener the listener. Ignored if null or already absent 123 124 */ 124 public static void removeZoomChangeListener( NavigatableComponent.ZoomChangeListener listener) {125 public static void removeZoomChangeListener(ZoomChangeListener listener) { 125 126 zoomChangeListeners.remove(listener); 126 127 } … … 131 132 * @param listener the listener. Ignored if null or already registered. 132 133 */ 133 public static void addZoomChangeListener( NavigatableComponent.ZoomChangeListener listener) {134 public static void addZoomChangeListener(ZoomChangeListener listener) { 134 135 if (listener != null) { 135 136 zoomChangeListeners.addIfAbsent(listener); … … 138 139 139 140 protected static void fireZoomChanged() { 140 for (ZoomChangeListener l : zoomChangeListeners) { 141 l.zoomChanged(); 142 } 141 GuiHelper.runInEDTAndWait(() -> { 142 for (ZoomChangeListener l : zoomChangeListeners) { 143 l.zoomChanged(); 144 } 145 }); 143 146 } 144 147
Note:
See TracChangeset
for help on using the changeset viewer.