Changeset 32484 in osm for applications/editors/josm/plugins/dataimport
- Timestamp:
- 2016-07-01T09:42:01+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io/TangoGPS.java
r30738 r32484 82 82 data.storageFile = file; 83 83 GpxLayer gpxLayer = new GpxLayer(data, file.getName()); 84 Main. main.addLayer(gpxLayer);84 Main.getLayerManager().addLayer(gpxLayer); 85 85 if (Main.pref.getBoolean("marker.makeautomarkers", true)) { 86 86 MarkerLayer ml = new MarkerLayer(data, tr("Markers from {0}", file.getName()), file, gpxLayer); 87 87 if (ml.data.size() > 0) { 88 Main. main.addLayer(ml);88 Main.getLayerManager().addLayer(ml); 89 89 } 90 90 } -
applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io/Tcx.java
r30737 r32484 74 74 @Override 75 75 public void importData(File tcxFile, ProgressMonitor progressMonitor) throws IOException { 76 //this.tcxFile = tcxFile;77 76 parseFile(tcxFile); 78 77 … … 80 79 gpxData.storageFile = tcxFile; 81 80 GpxLayer gpxLayer = new GpxLayer(gpxData, tcxFile.getName()); 82 Main. main.addLayer(gpxLayer);81 Main.getLayerManager().addLayer(gpxLayer); 83 82 if (Main.pref.getBoolean("marker.makeautomarkers", true)) 84 83 { … … 86 85 if (ml.data.size() > 0) 87 86 { 88 Main. main.addLayer(ml);87 Main.getLayerManager().addLayer(ml); 89 88 } 90 89 } 91 92 90 } 93 91
Note:
See TracChangeset
for help on using the changeset viewer.