X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosDataChooser.java;h=488e1068b18bad58958726d00ffd0c19ef4a2696;hb=64e2e66a5239541b15f43172655cfb3560bec79b;hp=15de05c2bb510723dabbe22704cbc41d55e57dad;hpb=f01096c4b42f9a4720ed0414826c2a283a992545;p=fw%2Faltos diff --git a/altosui/AltosDataChooser.java b/altosui/AltosDataChooser.java index 15de05c2..488e1068 100644 --- a/altosui/AltosDataChooser.java +++ b/altosui/AltosDataChooser.java @@ -56,12 +56,15 @@ public class AltosDataChooser extends JFileChooser { } else if (filename.endsWith("telem")) { FileInputStream in = new FileInputStream(file); return new AltosTelemetryIterable(in); + } else if (filename.endsWith("mega")) { + FileInputStream in = new FileInputStream(file); + return new AltosEepromMegaIterable(in); } else { throw new FileNotFoundException(); } } catch (FileNotFoundException fe) { JOptionPane.showMessageDialog(frame, - filename, + fe.getMessage(), "Cannot open file", JOptionPane.ERROR_MESSAGE); }