Changeset 74 in josm for src/org/openstreetmap/josm/io/RawCsvReader.java
- Timestamp:
- 2006-03-28T23:37:37+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/RawCsvReader.java
r71 r74 30 30 public Collection<LatLon> parse() throws JDOMException, IOException { 31 31 Collection<LatLon> data = new LinkedList<LatLon>(); 32 String formatStr = Main.pref. csvImportString;32 String formatStr = Main.pref.get("csvImportString"); 33 33 if (formatStr == null) 34 34 formatStr = in.readLine(); … … 52 52 // test for completness 53 53 if (!format.contains("lat") || !format.contains("lon")) { 54 if (Main.pref. csvImportString != null)55 throw new JDOMException("Format string i s incomplete. Need at least 'lat' and 'lon' specification");56 throw new JDOMException("Format string i n data is incomplete or not found. Try setting an manual format string in Preferences.");54 if (Main.pref.get("csvImportString").equals("")) 55 throw new JDOMException("Format string in data is incomplete or not found. Try setting an manual format string in Preferences."); 56 throw new JDOMException("Format string is incomplete. Need at least 'lat' and 'lon' specification"); 57 57 } 58 58 … … 71 71 st.nextToken(); 72 72 else 73 throw new JDOMException("Unknown data type: '"+token+"'."+(Main.pref. csvImportString == null? " Maybe add an format string in preferences." : ""));73 throw new JDOMException("Unknown data type: '"+token+"'."+(Main.pref.get("csvImportString").equals("") ? " Maybe add an format string in preferences." : "")); 74 74 } 75 75 data.add(new LatLon(lat, lon));
Note:
See TracChangeset
for help on using the changeset viewer.