Changeset 28042 in osm for applications
- Timestamp:
- 2012-03-11T15:30:19+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVImporter.java
r27101 r28042 59 59 } 60 60 61 progressMonitor.beginTask(String.format( "Importing CSV file %s...",61 progressMonitor.beginTask(String.format(tr("Importing CSV file '%s'..."), 62 62 file.getName(), 4)); 63 63 progressMonitor.setTicksCount(1); … … 90 90 91 91 if (Main.pref.getBoolean("marker.makeautomarkers", true)) { 92 MarkerLayer ml = new MarkerLayer(gpxData, tr( 93 "Markers from {0}", file.getName()), file, gpxLayer); 92 MarkerLayer ml = new MarkerLayer(gpxData, String.format(tr("Markers from %s"), file.getName()), file, gpxLayer); 94 93 if (ml.data.size() > 0) { 95 94 Main.main.addLayer(ml); 95 } else { 96 System.err.println("Warning: File contains no markers."); 96 97 } 97 98 /* WORKAROUND (Bugfix: #6912): Set marker offset to 0.0 to avoid message "This is after the end of the recording" */ 98 /* WORKAROUND (Bugfix: #6912): Set marker offset to 0.0 to avoid message "This is after the end of the recording" 99 99 for (Marker marker : ml.data) { 100 100 marker.offset = 0.0; 101 } 101 }*/ 102 } else { 103 System.err.println("Warning: Option 'marker.makeautomarkers' is not set; audio marker layer is not created."); 102 104 } 103 105 } catch (Exception e) { 104 106 // catch and forward exception 107 e.printStackTrace(System.err); 105 108 throw new IllegalDataException(e); 106 109 } finally { // take care of monitor...
Note:
See TracChangeset
for help on using the changeset viewer.