Changeset 30145 in osm for applications/editors/josm/plugins/surveyor/src/at
- Timestamp:
- 2013-12-22T12:27:11+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java
r27243 r30145 32 32 } 33 33 34 /* (non-Javadoc)35 * @see java.util.TimerTask#run()36 */37 34 @Override 38 35 public void run() { 39 if(Main.map == null || Main.map.mapView == null || Main.map.mapView.getEditLayer() == null) { 36 OsmDataLayer layer = Main.main.getEditLayer(); 37 if (layer == null) { 40 38 return; 41 39 } 42 OsmDataLayer layer = Main.map.mapView.getEditLayer();43 40 try { 44 41 DataSet dataset = layer.data; 45 46 // File outFile = layer.associatedFile;47 // if(outFile == null) {48 // outFile = file;49 // }50 42 51 43 // write to temporary file, on success, rename tmp file to target file: … … 69 61 } 70 62 } 71 72 73 63 }
Note:
See TracChangeset
for help on using the changeset viewer.