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/openstreetbugs
Files:
2 edited

Legend:

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

    r29435 r29854  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <!--
    3 ** This is the build file for the openstreetbugs plugin
    4 **
    5 ** Maintaining versions
    6 ** ====================
    7 ** see README.template
    8 **
    9 ** Usage
    10 ** =====
    11 ** To build it run
    12 **
    13 **    > ant  dist
    14 **
    15 ** To install the generated plugin locally (in your default plugin directory) run
    16 **
    17 **    > ant  install
    18 **
    19 ** To build against the core in ../../core, create a correct manifest and deploy to
    20 ** SVN,
    21 **    set the properties commit.message and plugin.main.version
    22 ** and run
    23 **    > ant  publish
    24 **
    25 **
    26 -->
    272<project name="openstreetbugs" default="dist" basedir=".">
    283    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    29     <property name="plugin.main.version" value="4980"/>
     4    <property name="plugin.main.version" value="6162"/>
    305    <property name="josm" location="../../core/dist/josm-custom.jar"/>
    316    <property name="plugin.dist.dir" value="../../dist"/>
    327    <property name="plugin.build.dir" value="build"/>
    338    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    34     <property name="ant.build.javac.target" value="1.5"/>
     9    <property name="ant.build.javac.target" value="1.6"/>
    3510    <target name="init">
    3611        <mkdir dir="${plugin.build.dir}"/>
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbDownloadLoop.java

    r23191 r29854  
    3030import static org.openstreetmap.josm.tools.I18n.tr;
    3131
    32 import java.awt.geom.Point2D;
    3332import java.util.concurrent.TimeUnit;
    3433
    3534import org.openstreetmap.josm.Main;
     35import org.openstreetmap.josm.data.coor.EastNorth;
    3636
    3737public class OsbDownloadLoop extends Thread {
     
    4747    private OsbPlugin plugin;
    4848
    49     private Point2D lastCenter;
     49    private EastNorth lastCenter;
    5050
    5151    public OsbDownloadLoop() {
     
    7070                // zoomed the map
    7171                if(Main.map != null && Main.map.mapView != null) {
    72                     Point2D currentCenter = Main.map.mapView.getCenter();
     72                    EastNorth currentCenter = Main.map.mapView.getCenter();
    7373                    if(currentCenter != null && !currentCenter.equals(lastCenter)) {
    7474                        resetCountdown();
Note: See TracChangeset for help on using the changeset viewer.