Ignore:
Timestamp:
2010-08-03T08:11:51+02:00 (15 years ago)
Author:
jttt
Message:

Adapt to latest josm

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

Legend:

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

    r19444 r22547  
    3333        <property name="commit.message" value="Updated the constructor signature of the plugin main class" />
    3434        <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    35         <property name="plugin.main.version" value="2830" />
     35        <property name="plugin.main.version" value="3408" />
    3636
    3737        <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     
    9191
    9292        <!--
    93         ************************** Publishing the plugin *********************************** 
     93        ************************** Publishing the plugin ***********************************
    9494        -->
    9595        <!--
    96                 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
     96                ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    9797                ** property ${coreversion.info.entry.revision}
    9898                **
     
    143143
    144144        <!--
    145                 ** commits the plugin.jar 
     145                ** commits the plugin.jar
    146146                -->
    147147        <target name="commit-dist">
    148148                <echo>
    149149        ***** Properties of published ${plugin.jar} *****
    150         Commit message    : '${commit.message}'                                 
     150        Commit message    : '${commit.message}'
    151151        Plugin-Mainversion: ${plugin.main.version}
    152152        JOSM build version: ${coreversion.info.entry.revision}
    153153        Plugin-Version    : ${version.entry.commit.revision}
    154         ***** / Properties of published ${plugin.jar} *****                                     
    155                                                
     154        ***** / Properties of published ${plugin.jar} *****
     155
    156156        Now commiting ${plugin.jar} ...
    157157        </echo>
  • applications/editors/josm/plugins/imagewaypoint/src/org/insignificant/josm/plugins/imagewaypoint/ImageWayPointLayer.java

    r18595 r22547  
    33import static org.openstreetmap.josm.tools.I18n.tr;
    44
    5 import java.awt.Component;
    65import java.awt.Graphics2D;
    76import java.awt.Rectangle;
     
    109import java.awt.event.MouseListener;
    1110
     11import javax.swing.Action;
    1212import javax.swing.Icon;
    1313
     
    5151    }
    5252
    53     private static final class ImageChangeListener implements
    54     IImageChangeListener {
    55         private final ImageWayPointLayer layer;
    56 
    57         public ImageChangeListener(final ImageWayPointLayer layer) {
    58             this.layer = layer;
    59         }
    60 
     53    private static final class ImageChangeListener implements IImageChangeListener {
    6154        public final void onAvailableImageEntriesChanged(
    6255        final ImageEntries entries) {
     
    8073        Main.map.mapView.addMouseListener(this.layerMouseListener);
    8174
    82         this.imageChangeListener = new ImageChangeListener(this);
     75        this.imageChangeListener = new ImageChangeListener();
    8376        ImageEntries.getInstance().addListener(this.imageChangeListener);
    8477    }
     
    9588
    9689    @Override
    97     public final Component[] getMenuEntries() {
    98         return new Component[0];
     90    public final Action[] getMenuEntries() {
     91        return new Action[0];
    9992    }
    10093
Note: See TracChangeset for help on using the changeset viewer.