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/surveyor
Files:
2 added
1 deleted
5 edited

Legend:

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

    r29841 r29854  
    77    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    88    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    9     <property name="plugin.main.version" value="4980"/>
     9    <property name="plugin.main.version" value="6162"/>
    1010    <property name="livegpsplugin.jar" value="${plugin.dist.dir}/livegps.jar"/>
    1111
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveAction.java

    r27852 r29854  
    88
    99import java.awt.event.ActionEvent;
     10import java.awt.event.KeyEvent;
    1011import java.text.MessageFormat;
    1112import java.util.Date;
     
    1314import java.util.TimerTask;
    1415
    15 import javax.swing.AbstractAction;
    1616import javax.swing.AbstractButton;
    17 import java.awt.event.KeyEvent;
    1817
    19 import at.dallermassl.josm.plugin.surveyor.action.SetWaypointAction;
     18import livegps.LiveGpsLayer;
     19
    2020import org.openstreetmap.josm.actions.JosmAction;
    2121import org.openstreetmap.josm.tools.Shortcut;
    22 
    23 import livegps.LiveGpsLayer;
    2422
    2523/**
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveGpsLayerTimerTask.java

    r19681 r29854  
    7575            GpxWriter gpxWriter = new GpxWriter(out);
    7676            gpxWriter.write(gpsLayer.data);
     77            gpxWriter.close();
    7778            tmpFile.renameTo(file);
    7879        } catch (IOException ioExc) {
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java

    r19681 r29854  
    1414
    1515import org.openstreetmap.josm.Main;
    16 import org.openstreetmap.josm.data.coor.LatLon;
    1716import org.openstreetmap.josm.data.gpx.GpxData;
    1817import org.openstreetmap.josm.data.gpx.WayPoint;
     
    5352     */
    5453    public void actionPerformed(GpsActionEvent event) {
    55         LatLon coordinates = event.getCoordinates();
    5654        //System.out.println(getClass().getSimpleName() + " KOORD: " + coordinates.lat() + ", " + coordinates.lon());
    5755        String markerTitle = getParameters().get(0);
  • applications/editors/josm/plugins/surveyor/src/org/dinopolis/util/collection/Tuple.java

    r13497 r29854  
    1111 *
    1212 * @author cdaller
    13  *
     13 * @deprecated Should be replaced by {@link org.openstreetmap.josm.tools.Pair}
    1414 */
    1515public class Tuple<T1 extends Object, T2 extends Object> implements Map.Entry<T1, T2>{
    1616    T1 first;
    1717    T2 second;
    18 
    19     /**
    20      * Default Constructor
    21      */
    22     public Tuple() {
    23     }
    2418
    2519    /**
     
    10296     * @see java.lang.Object#equals(java.lang.Object)
    10397     */
    104     @SuppressWarnings("unchecked")
    10598    @Override
    10699    public boolean equals(Object obj) {
     
    111104        if (getClass() != obj.getClass())
    112105            return false;
    113         final Tuple other = (Tuple) obj;
     106        final Tuple<?, ?> other = (Tuple<?, ?>) obj;
    114107        if (this.first == null) {
    115108            if (other.first != null)
Note: See TracChangeset for help on using the changeset viewer.