Ignore:
Timestamp:
2009-12-12T18:51:05+01:00 (15 years ago)
Author:
guggis
Message:

'Updated to JOSM 2621'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersLayer.java

    r19050 r19074  
    2323import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    2424import org.openstreetmap.josm.gui.MapView;
     25import org.openstreetmap.josm.gui.MapView.LayerChangeListener;
    2526import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
    2627import org.openstreetmap.josm.gui.dialogs.LayerListPopup;
     
    6970                clearTileStorage();
    7071
    71             Layer.addLayerChangeListener(new LayerChangeListener() {
     72            MapView.addLayerChangeListener(new LayerChangeListener() {
    7273                public void activeLayerChange(Layer oldLayer, Layer newLayer) {
    7374                        // if user changes to a walking papers layer, zoom there just as if
     
    8687
    8788                public void layerRemoved(Layer oldLayer) {
    88                         //
     89                        if (oldLayer == WalkingPapersLayer.this) {
     90                                MapView.removeLayerChangeListener(this);
     91                        }
    8992                }
    9093            });
Note: See TracChangeset for help on using the changeset viewer.