Changeset 93 in josm for src/org/openstreetmap/josm/io
- Timestamp:
- 2006-04-23T00:41:38+02:00 (19 years ago)
- Location:
- src/org/openstreetmap/josm/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/ProgressReader.java
r92 r93 4 4 import java.io.InputStreamReader; 5 5 import java.io.Reader; 6 import java.net. HttpURLConnection;6 import java.net.URLConnection; 7 7 8 8 import javax.swing.BoundedRangeModel; … … 17 17 private final BoundedRangeModel progress; 18 18 19 public ProgressReader( HttpURLConnection con, BoundedRangeModel progress) throws IOException {19 public ProgressReader(URLConnection con, BoundedRangeModel progress) throws IOException { 20 20 this.in = new InputStreamReader(con.getInputStream()); 21 21 this.progress = progress; -
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.