Changeset 19681 in osm for applications/editors/josm/plugins/surveyor/src
- Timestamp:
- 2010-01-30T20:10:15+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java
r18490 r19681 14 14 15 15 import javax.swing.JOptionPane; 16 17 import livegps.LiveGpsLock;18 16 19 17 import org.openstreetmap.josm.Main; … … 53 51 File tmpFile = new File(file.getAbsoluteFile()+".tmp"); 54 52 System.out.println("AutoSaving osm data to file " + file.getAbsolutePath()); 55 synchronized( LiveGpsLock.class) {53 synchronized(SurveyorLock.class) { 56 54 OsmWriter w = new OsmWriter(new PrintWriter(new FileOutputStream(tmpFile)), false, dataset.getVersion()); 57 55 w.header(); -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveGpsLayerTimerTask.java
r13497 r19681 15 15 16 16 import javax.swing.JOptionPane; 17 18 import livegps.LiveGpsLock;19 17 20 18 import org.openstreetmap.josm.Main; … … 76 74 PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(tmpFile))); 77 75 GpxWriter gpxWriter = new GpxWriter(out); 78 synchronized(LiveGpsLock.class) { 79 gpxWriter.write(gpsLayer.data); 80 } 76 gpxWriter.write(gpsLayer.data); 81 77 tmpFile.renameTo(file); 82 78 } catch (IOException ioExc) { -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetNodeAction.java
r19211 r19681 10 10 import java.util.Map.Entry; 11 11 12 import livegps.LiveGpsLock;13 14 12 import org.dinopolis.util.collection.Tuple; 15 13 import org.openstreetmap.josm.Main; … … 20 18 import at.dallermassl.josm.plugin.surveyor.GpsActionEvent; 21 19 import at.dallermassl.josm.plugin.surveyor.SurveyorAction; 20 import at.dallermassl.josm.plugin.surveyor.SurveyorLock; 22 21 23 22 /** … … 69 68 node.put(entry.getKey(), entry.getValue()); 70 69 } 71 synchronized( LiveGpsLock.class) {70 synchronized(SurveyorLock.class) { 72 71 DataSet ds = Main.main.getCurrentDataSet(); 73 72 if(ds != null) -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java
r19211 r19681 12 12 13 13 import livegps.LiveGpsLayer; 14 import livegps.LiveGpsLock;15 14 16 15 import org.openstreetmap.josm.Main; … … 24 23 25 24 import at.dallermassl.josm.plugin.surveyor.GpsActionEvent; 25 import at.dallermassl.josm.plugin.surveyor.SurveyorLock; 26 26 import at.dallermassl.josm.plugin.surveyor.SurveyorPlugin; 27 27 import at.dallermassl.josm.plugin.surveyor.action.gui.WaypointDialog; … … 86 86 if(iconName != null) 87 87 waypoint.attr.put("sym", iconName); 88 synchronized( LiveGpsLock.class) {88 synchronized(SurveyorLock.class) { 89 89 //layer.data.add(new Marker(event.getCoordinates(), markerText, iconName)); 90 90 layer.data.add(new Marker(event.getCoordinates(), markerText, iconName, null, -1.0, 0.0));
Note:
See TracChangeset
for help on using the changeset viewer.