Changeset 33559 in osm for applications/editors/josm/plugins/dataimport/src
- Timestamp:
- 2017-08-27T19:14:10+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io/TangoGPS.java
r33557 r33559 22 22 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack; 23 23 import org.openstreetmap.josm.data.gpx.WayPoint; 24 import org.openstreetmap.josm.gui.MainApplication; 24 25 import org.openstreetmap.josm.gui.io.importexport.FileImporter; 25 26 import org.openstreetmap.josm.gui.layer.GpxLayer; 26 27 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 27 28 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 29 import org.openstreetmap.josm.tools.Logging; 28 30 29 31 /** … … 69 71 imported++; 70 72 } catch (NumberFormatException e) { 71 Main.error(e);73 Logging.error(e); 72 74 } 73 75 } … … 80 82 data.storageFile = file; 81 83 GpxLayer gpxLayer = new GpxLayer(data, file.getName()); 82 Main.getLayerManager().addLayer(gpxLayer); 84 MainApplication.getLayerManager().addLayer(gpxLayer); 83 85 if (Main.pref.getBoolean("marker.makeautomarkers", true)) { 84 86 MarkerLayer ml = new MarkerLayer(data, tr("Markers from {0}", file.getName()), file, gpxLayer); 85 87 if (ml.data.size() > 0) { 86 Main.getLayerManager().addLayer(ml); 88 MainApplication.getLayerManager().addLayer(ml); 87 89 } 88 90 }
Note:
See TracChangeset
for help on using the changeset viewer.