statusBar.setText(MessageManager.formatMessage(
"label.successfully_saved_to_file_in_format", new Object[]
- { fileName, format }));
+ { file, format }));
}
else
try
{
- Cache.log.debug("ALIGNFRAME setting PrintWriter");
- PrintWriter out = new PrintWriter(
- new FileWriter(backupfiles.getTempFilePath()));
+ String tempFilePath = backupfiles.getTempFilePath();
+ Cache.log.debug(
+ "ALIGNFRAME setting PrintWriter to " + tempFilePath);
+ PrintWriter out = new PrintWriter(new FileWriter(tempFilePath));
- Cache.log.debug("ALIGNFRAME about to write to temp file "
- + backupfiles.getTempFilePath());
+ Cache.log.debug(
+ "ALIGNFRAME about to write to temp file " + tempFilePath);
out.print(output);
Cache.log.debug("ALIGNFRAME about to close file");
this.setTitle(file);
statusBar.setText(MessageManager.formatMessage(
"label.successfully_saved_to_file_in_format", new Object[]
- { fileName, format.getName() }));
+ { file, format.getName() }));
} catch (IOException e)
{
success = false;
Cache.log.error(
"ALIGNFRAME Something happened writing the temp file");
Cache.log.error(e.getMessage());
- Cache.log.debug(e.getStackTrace());
+ Cache.log.debug(Cache.getStackTraceString(e));
} catch (Exception ex)
{
Cache.log.error(
"ALIGNFRAME Something else happened writing the temp file");
Cache.log.error(ex.getMessage());
- Cache.log.debug(ex.getStackTrace());
+ Cache.log.debug(Cache.getStackTraceString(ex));
}
backupfiles.setWriteSuccess(success);
{
JvOptionPane.showInternalMessageDialog(this, MessageManager
.formatMessage("label.couldnt_save_file", new Object[]
- { fileName }),
+ { file }),
MessageManager.getString("label.error_saving_file"),
JvOptionPane.WARNING_MESSAGE);
}