Changeset 33547 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetWatcher.java
- Timestamp:
- 2017-08-26T21:28:34+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetWatcher.java
r33309 r33547 15 15 import org.openstreetmap.josm.data.coor.LatLon; 16 16 import org.openstreetmap.josm.data.imagery.OffsetBookmark; 17 import org.openstreetmap.josm.gui.MainApplication; 17 18 import org.openstreetmap.josm.gui.MapView; 18 19 import org.openstreetmap.josm.gui.NavigatableComponent.ZoomChangeListener; … … 51 52 maxDistance = Main.pref.getDouble("iodb.offset.radius", 15); 52 53 MapView.addZoomChangeListener(this); 53 Main.getLayerManager().addLayerChangeListener(this); 54 Main.getLayerManager().addActiveLayerChangeListener(this); 54 MainApplication.getLayerManager().addLayerChangeListener(this); 55 MainApplication.getLayerManager().addActiveLayerChangeListener(this); 55 56 checkOffset(); // we assume there's at the most one imagery layer at this moment 56 57 time = new Timer(); … … 64 65 public void destroy() { 65 66 MapView.removeZoomChangeListener(this); 66 Main.getLayerManager().removeLayerChangeListener(this); 67 Main.getLayerManager().removeActiveLayerChangeListener(this); 67 MainApplication.getLayerManager().removeLayerChangeListener(this); 68 MainApplication.getLayerManager().removeActiveLayerChangeListener(this); 68 69 time.cancel(); 69 70 }
Note:
See TracChangeset
for help on using the changeset viewer.
