Changeset 93 in josm for src/org/openstreetmap/josm/io/RawCsvReader.java
- Timestamp:
- 2006-04-23T00:41:38+02:00 (20 years ago)
- File:
-
- 1 edited
-
src/org/openstreetmap/josm/io/RawCsvReader.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/RawCsvReader.java
r78 r93 31 31 public Collection<GpsPoint> parse() throws JDOMException, IOException { 32 32 Collection<GpsPoint> data = new LinkedList<GpsPoint>(); 33 String formatStr = Main.pref.get("csv ImportString");33 String formatStr = Main.pref.get("csv.importstring"); 34 34 if (formatStr == null) 35 35 formatStr = in.readLine(); … … 53 53 // test for completness 54 54 if (!format.contains("lat") || !format.contains("lon")) { 55 if (Main.pref.get("csv ImportString").equals(""))55 if (Main.pref.get("csv.importstring").equals("")) 56 56 throw new JDOMException("Format string in data is incomplete or not found. Try setting an manual format string in Preferences."); 57 57 throw new JDOMException("Format string is incomplete. Need at least 'lat' and 'lon' specification"); … … 75 75 st.nextToken(); 76 76 else 77 throw new JDOMException("Unknown data type: '"+token+"'."+(Main.pref.get("csv ImportString").equals("") ? " Maybe add an format string in preferences." : ""));77 throw new JDOMException("Unknown data type: '"+token+"'."+(Main.pref.get("csv.importstring").equals("") ? " Maybe add an format string in preferences." : "")); 78 78 } 79 79 data.add(new GpsPoint(new LatLon(lat, lon), time));
Note:
See TracChangeset
for help on using the changeset viewer.
