summaryrefslogtreecommitdiff
path: root/altosui/AltosCSVUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-08-29 19:24:51 -0500
committerKeith Packard <keithp@keithp.com>2013-08-29 19:24:51 -0500
commitde8d9c5630ae46378c50faf97f7d2e97fe139e30 (patch)
treee8e41e4186c5d27e1a5184d915bdb9f08926fa7a /altosui/AltosCSVUI.java
parentce1378385ef273010498e81c205f42d8e32c7dc1 (diff)
altoslib, altosui: Restructured state management now does TM eeprom files
Removed uses of AltosRecord from AltosState, now just need to rewrite the other AltosState changing code to match Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosCSVUI.java')
-rw-r--r--altosui/AltosCSVUI.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/altosui/AltosCSVUI.java b/altosui/AltosCSVUI.java
index 42508346..4b48bdf6 100644
--- a/altosui/AltosCSVUI.java
+++ b/altosui/AltosCSVUI.java
@@ -31,7 +31,7 @@ public class AltosCSVUI
JFileChooser csv_chooser;
JPanel accessory;
JComboBox combo_box;
- AltosRecordIterable iterable;
+ Iterable<AltosState> states;
AltosWriter writer;
static String[] combo_box_items = { "Comma Separated Values (.CSV)", "Googleearth Data (.KML)" };
@@ -55,8 +55,8 @@ public class AltosCSVUI
set_default_file();
}
- public AltosCSVUI(JFrame frame, AltosRecordIterable in_iterable, File source_file) {
- iterable = in_iterable;
+ public AltosCSVUI(JFrame frame, AltosStateIterable states, File source_file) {
+ this.states = states;
csv_chooser = new JFileChooser(source_file);
accessory = new JPanel();
@@ -91,7 +91,7 @@ public class AltosCSVUI
writer = new AltosCSV(file);
else
writer = new AltosKML(file);
- writer.write(iterable);
+ writer.write(states);
writer.close();
} catch (FileNotFoundException ee) {
JOptionPane.showMessageDialog(frame,