|
From: Carlos <ma...@us...> - 2007-10-15 21:22:44
|
Update of /cvsroot/tail/TailS/src/java/net/sf/tails/swing/frame In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14260/src/java/net/sf/tails/swing/frame Modified Files: Index.java Log Message: Update. Index: Index.java =================================================================== RCS file: /cvsroot/tail/TailS/src/java/net/sf/tails/swing/frame/Index.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Index.java 15 Oct 2007 21:04:42 -0000 1.22 --- Index.java 15 Oct 2007 21:22:47 -0000 1.23 *************** *** 345,348 **** --- 345,350 ---- String filePath = xlsFileChooser.getSelectedFile().getAbsolutePath(); filePath = filePath.substring(0, filePath.length() - (1 + fileName.length())); + this.appendConsoleArea("Generating report in XLS."); + if(!fileName.endsWith(".xls")) { *************** *** 352,356 **** complete.generateXLSFile(stockAnalysis.getReports().get(reportTable.getSelectedRow()), stockAnalysis.getAdditionalCriteria(), stockAnalysis.getSlicer().getPeriod(), filePath, fileName); - } } --- 354,357 ---- *************** *** 371,375 **** String directoryPath = htmlFileChooser.getSelectedFile().getAbsolutePath(); directoryPath = directoryPath.substring(0, directoryPath.length() - (1 + directoryName.length())); ! CompleteReportGenerator complete = new CompleteReportGenerator(this); try { --- 372,376 ---- String directoryPath = htmlFileChooser.getSelectedFile().getAbsolutePath(); directoryPath = directoryPath.substring(0, directoryPath.length() - (1 + directoryName.length())); ! this.appendConsoleArea("Generating report in HTML."); CompleteReportGenerator complete = new CompleteReportGenerator(this); try { *************** *** 409,413 **** StockAnalysis analysis = serializer.fromXML(stringAnalysis); loadStockAnalysis(analysis); ! this.appendConsoleArea("Stock Analysis loaded succesfully."); } catch (Exception e) { --- 410,414 ---- StockAnalysis analysis = serializer.fromXML(stringAnalysis); loadStockAnalysis(analysis); ! this.appendConsoleArea("Stock Analysis " + directoryFileChooser.getSelectedFile().getName() + " loaded succesfully."); } catch (Exception e) { *************** *** 461,465 **** write.close(); this.setTitle(stockAnalysisXML.getName() + " - " + messageBundle.getString("DEFAULT_TITLE")); ! this.appendConsoleArea(stockAnalysisXML.getName() + " saved succesfully."); } --- 462,466 ---- write.close(); this.setTitle(stockAnalysisXML.getName() + " - " + messageBundle.getString("DEFAULT_TITLE")); ! this.appendConsoleArea("Stock Analysis " + stockAnalysisXML.getName() + " saved succesfully."); } *************** *** 487,491 **** write.close(); this.setTitle(stockAnalysisXML.getName() + " - " + messageBundle.getString("DEFAULT_TITLE")); ! this.appendConsoleArea(stockAnalysisXML.getName() + " saved succesfully."); break; } --- 488,492 ---- write.close(); this.setTitle(stockAnalysisXML.getName() + " - " + messageBundle.getString("DEFAULT_TITLE")); ! this.appendConsoleArea("Stock Analysis " + stockAnalysisXML.getName() + " saved succesfully."); break; } *************** *** 507,510 **** --- 508,512 ---- reportProgress.setVisible(false); reportProgress.setValue(value); + this.appendConsoleArea("Report exported succesfully."); } else |