Ignore:
Timestamp:
2009-12-12T17:34:12+01:00 (15 years ago)
Author:
jttt
Message:

Fix compilation problems

File:
1 edited

Legend:

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

    r18597 r19050  
    6969                clearTileStorage();
    7070
    71             Layer.listeners.add(new LayerChangeListener() {
     71            Layer.addLayerChangeListener(new LayerChangeListener() {
    7272                public void activeLayerChange(Layer oldLayer, Layer newLayer) {
    7373                        // if user changes to a walking papers layer, zoom there just as if
     
    8686
    8787                public void layerRemoved(Layer oldLayer) {
     88                        //
    8889                }
    8990            });
     
    407408        }
    408409
    409         @Override
    410         public void destroy() {
    411                 Main.pref.listener.remove(WalkingPapersLayer.this);
    412         }
    413 
    414410        public String getWalkingPapersId() {
    415411                return walkingPapersId;
Note: See TracChangeset for help on using the changeset viewer.