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

Fix compilation problems

Location:
applications/editors/josm/plugins/walkingpapers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/walkingpapers/build.xml

    r18597 r19050  
    2626                <attribute name="Plugin-Description" value="Supports downloading tiled, scanned maps from walking-papers.org. This plugin is still under early development and may be buggy."/>
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/WalkingPapers"/>
    28                 <attribute name="Plugin-Mainversion" value="2450"/>
     28                <attribute name="Plugin-Mainversion" value="2620"/>
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • 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.