Ignore:
Timestamp:
2013-08-21T03:47:16+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] fix #8987 - bump min JOSM version of nearly all plugins to r6162 + code update/cleanup, fix warnings

Location:
applications/editors/josm/plugins/wms-turbo-challenge2
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wms-turbo-challenge2/build.xml

    r29435 r29854  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <!--
    3 ** This is a template build file for a JOSM  plugin.
    4 **
    5 ** Maintaining versions
    6 ** ====================
    7 ** See README.template
    8 **
    9 ** Usage
    10 ** =====
    11 ** Call "ant help" to get possible build targets.
    12 **
    13 -->
    142<project name="wms-turbo-challenge2" default="dist" basedir=".">
    153
     
    175    <property name="commit.message" value="Commit message"/>
    186    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    19     <property name="plugin.main.version" value="4670"/>
     7    <property name="plugin.main.version" value="6162"/>
    208
    219    <property name="plugin.author" value="Andrzej Zaborowski"/>
  • applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/FakeMapView.java

    r29210 r29854  
    2525import org.openstreetmap.josm.gui.MapView;
    2626
    27 class fake_map_view extends MapView {
     27class FakeMapView extends MapView {
    2828    public ProjectionBounds view_bounds;
    2929    public MapView parent;
     
    3636    public double max_east_west;
    3737
    38     public fake_map_view(MapView parent, double scale) {
     38    public FakeMapView(MapView parent, double scale) {
    3939        super(null, null); //TODO MapView constructor contains registering listeners and other code, that probably shouldn't be called in fake map view
    4040        this.parent = parent;
  • applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java

    r26299 r29854  
    6262
    6363        this.ground = ground;
    64         ground_view = new fake_map_view(Main.map.mapView, 0.0000001);
     64        ground_view = new FakeMapView(Main.map.mapView, 0.0000001);
    6565
    6666        /* Retrieve start position */
     
    474474    }
    475475
    476     protected class sprite_pos implements Comparable {
     476    protected class sprite_pos implements Comparable<sprite_pos> {
    477477        double dist;
    478478
     
    483483        }
    484484
    485         public int compareTo(Object x) {
    486             sprite_pos other = (sprite_pos) x;
    487             return (int) ((other.dist - this.dist) * 1000000.0);
     485        public int compareTo(sprite_pos x) {
     486            return (int) ((x.dist - this.dist) * 1000000.0);
    488487        }
    489488    }
     
    700699        }
    701700    }
    702     protected fake_map_view ground_view;
     701    protected FakeMapView ground_view;
    703702}
  • applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/WMSRacer.java

    r26174 r29854  
    99
    1010import org.openstreetmap.josm.gui.layer.Layer;
     11import org.openstreetmap.josm.gui.MapView;
    1112import org.openstreetmap.josm.gui.MapView.LayerChangeListener;
    1213import org.openstreetmap.josm.gui.MapFrame;
     
    9596    public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
    9697        if (oldFrame != null)
    97             oldFrame.mapView.removeLayerChangeListener(this);
     98            MapView.removeLayerChangeListener(this);
    9899
    99100        driveAction.frame = newFrame;
     
    101102
    102103        if (newFrame != null)
    103             newFrame.mapView.addLayerChangeListener(this);
     104            MapView.addLayerChangeListener(this);
    104105    }
    105106
Note: See TracChangeset for help on using the changeset viewer.