From: Bob J. <jac...@us...> - 2008-09-10 06:14:44
|
Update of /cvsroot/jmri/jmri/jmrix/rps/swing In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv6104/src/jmri/jmrix/rps/swing Modified Files: CsvExportAction.java Log Message: better output format Index: CsvExportAction.java =================================================================== RCS file: /cvsroot/jmri/jmri/jmrix/rps/swing/CsvExportAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CsvExportAction.java 20 Jul 2008 17:44:15 -0000 1.1 --- CsvExportAction.java 10 Sep 2008 06:14:38 -0000 1.2 *************** *** 26,30 **** public CsvExportAction() { ! this("Start CSV Export..."); } --- 26,30 ---- public CsvExportAction() { ! this("Start CSV Export Reading..."); } *************** *** 44,48 **** // reset menu item ! ((JMenuItem)(e.getSource())).setText("Start CSV Export..."); logging = false; --- 44,48 ---- // reset menu item ! ((JMenuItem)(e.getSource())).setText("Start CSV Export Reading..."); logging = false; *************** *** 55,59 **** System.out.println(""+e); ! ((JMenuItem)(e.getSource())).setText("Stop CSV Export..."); // initialize chooser --- 55,59 ---- System.out.println(""+e); ! ((JMenuItem)(e.getSource())).setText("Stop CSV Export Reading..."); // initialize chooser *************** *** 87,94 **** public void notify(Reading r) { if (!logging || str == null) return; ! if (r.getRawData() == null) ! str.println("<no valid line>"); ! else ! str.println(r.getRawData()); } --- 87,95 ---- public void notify(Reading r) { if (!logging || str == null) return; ! str.print(r.getID()+","); ! for (int i = 0; i<r.getNSample()-1; i++) { ! str.print(r.getValue(i)+","); ! } ! str.println(r.getValue(r.getNSample()-1)); } |