import java.text.*;
import java.util.prefs.*;
-import altosui.AltosPreferences;
-import altosui.AltosCsvReader;
-import altosui.AltosDataPointReader;
-import altosui.AltosEepromIterable;
-import altosui.AltosTelemetryIterable;
-
public class AltosGraphDataChooser extends JFileChooser {
JFrame frame;
String filename;
} else if (filename.endsWith("telem")) {
FileInputStream in = new FileInputStream(file);
return new AltosDataPointReader(new AltosTelemetryIterable(in));
- } else if (filename.endsWith("csv")) {
- return new AltosCsvReader(new FileReader(file));
} else {
throw new FileNotFoundException();
}
frame = in_frame;
setDialogTitle("Select Flight Record File");
setFileFilter(new FileNameExtensionFilter("Flight data file",
- "csv", "telem", "eeprom"));
+ "telem", "eeprom"));
setCurrentDirectory(AltosPreferences.logdir());
}
}