Changeset 19074 in osm for applications/editors/josm/plugins/walkingpapers/src/org
- Timestamp:
- 2009-12-12T18:51:05+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersLayer.java
r19050 r19074 23 23 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 24 24 import org.openstreetmap.josm.gui.MapView; 25 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 25 26 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 26 27 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; … … 69 70 clearTileStorage(); 70 71 71 Layer.addLayerChangeListener(new LayerChangeListener() {72 MapView.addLayerChangeListener(new LayerChangeListener() { 72 73 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 73 74 // if user changes to a walking papers layer, zoom there just as if … … 86 87 87 88 public void layerRemoved(Layer oldLayer) { 88 // 89 if (oldLayer == WalkingPapersLayer.this) { 90 MapView.removeLayerChangeListener(this); 91 } 89 92 } 90 93 });
Note:
See TracChangeset
for help on using the changeset viewer.