Ignore:
Timestamp:
2010-01-30T20:10:15+01:00 (14 years ago)
Author:
jttt
Message:

Adapted for JOSM r2907

Location:
applications/editors/josm/plugins/surveyor
Files:
1 added
5 edited

Legend:

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

    r19479 r19681  
    3333        <property name="commit.message" value="Changed 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="2907" />
    3636
    3737
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java

    r18490 r19681  
    1414
    1515import javax.swing.JOptionPane;
    16 
    17 import livegps.LiveGpsLock;
    1816
    1917import org.openstreetmap.josm.Main;
     
    5351            File tmpFile = new File(file.getAbsoluteFile()+".tmp");
    5452            System.out.println("AutoSaving osm data to file " + file.getAbsolutePath());
    55             synchronized(LiveGpsLock.class) {
     53            synchronized(SurveyorLock.class) {
    5654                OsmWriter w = new OsmWriter(new PrintWriter(new FileOutputStream(tmpFile)), false, dataset.getVersion());
    5755                w.header();
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveGpsLayerTimerTask.java

    r13497 r19681  
    1515
    1616import javax.swing.JOptionPane;
    17 
    18 import livegps.LiveGpsLock;
    1917
    2018import org.openstreetmap.josm.Main;
     
    7674            PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(tmpFile)));
    7775            GpxWriter gpxWriter = new GpxWriter(out);
    78             synchronized(LiveGpsLock.class) {
    79                 gpxWriter.write(gpsLayer.data);
    80             }
     76            gpxWriter.write(gpsLayer.data);
    8177            tmpFile.renameTo(file);
    8278        } catch (IOException ioExc) {
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetNodeAction.java

    r19211 r19681  
    1010import java.util.Map.Entry;
    1111
    12 import livegps.LiveGpsLock;
    13 
    1412import org.dinopolis.util.collection.Tuple;
    1513import org.openstreetmap.josm.Main;
     
    2018import at.dallermassl.josm.plugin.surveyor.GpsActionEvent;
    2119import at.dallermassl.josm.plugin.surveyor.SurveyorAction;
     20import at.dallermassl.josm.plugin.surveyor.SurveyorLock;
    2221
    2322/**
     
    6968            node.put(entry.getKey(), entry.getValue());
    7069        }
    71         synchronized(LiveGpsLock.class) {
     70        synchronized(SurveyorLock.class) {
    7271            DataSet ds = Main.main.getCurrentDataSet();
    7372            if(ds != null)
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java

    r19211 r19681  
    1212
    1313import livegps.LiveGpsLayer;
    14 import livegps.LiveGpsLock;
    1514
    1615import org.openstreetmap.josm.Main;
     
    2423
    2524import at.dallermassl.josm.plugin.surveyor.GpsActionEvent;
     25import at.dallermassl.josm.plugin.surveyor.SurveyorLock;
    2626import at.dallermassl.josm.plugin.surveyor.SurveyorPlugin;
    2727import at.dallermassl.josm.plugin.surveyor.action.gui.WaypointDialog;
     
    8686        if(iconName != null)
    8787            waypoint.attr.put("sym", iconName);
    88         synchronized(LiveGpsLock.class) {
     88        synchronized(SurveyorLock.class) {
    8989            //layer.data.add(new Marker(event.getCoordinates(), markerText, iconName));
    9090            layer.data.add(new Marker(event.getCoordinates(), markerText, iconName, null, -1.0, 0.0));
Note: See TracChangeset for help on using the changeset viewer.