projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Add AltosGreatCircle constructors
[fw/altos]
/
ao-tools
/
altosui
/
AltosLogfileChooser.java
diff --git
a/ao-tools/altosui/AltosLogfileChooser.java
b/ao-tools/altosui/AltosLogfileChooser.java
index 3e9e48922b2f1268642755fbb5899b306feba6ad..36b51de65c993bece80378fb3d11b2d0bafb5f24 100644
(file)
--- a/
ao-tools/altosui/AltosLogfileChooser.java
+++ b/
ao-tools/altosui/AltosLogfileChooser.java
@@
-35,17
+35,22
@@
import altosui.AltosTelemetryReader;
public class AltosLogfileChooser extends JFileChooser {
JFrame frame;
String filename;
public class AltosLogfileChooser extends JFileChooser {
JFrame frame;
String filename;
+ File file;
public String filename() {
return filename;
}
public String filename() {
return filename;
}
+ public File file() {
+ return file;
+ }
+
public AltosReader runDialog() {
int ret;
ret = showOpenDialog(frame);
if (ret == APPROVE_OPTION) {
public AltosReader runDialog() {
int ret;
ret = showOpenDialog(frame);
if (ret == APPROVE_OPTION) {
-
File
file = getSelectedFile();
+ file = getSelectedFile();
if (file == null)
return null;
filename = file.getName();
if (file == null)
return null;
filename = file.getName();
@@
-68,7
+73,7
@@
public class AltosLogfileChooser extends JFileChooser {
}
public AltosLogfileChooser(JFrame in_frame) {
}
public AltosLogfileChooser(JFrame in_frame) {
-
in_frame =
frame;
+
frame = in_
frame;
setDialogTitle("Select Flight Record File");
setFileFilter(new FileNameExtensionFilter("Flight data file",
"eeprom",
setDialogTitle("Select Flight Record File");
setFileFilter(new FileNameExtensionFilter("Flight data file",
"eeprom",