updated logger profile save as action

git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@761 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
kascade 2007-08-04 11:53:00 +00:00
parent 3023053413
commit adc334dfb1
1 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,10 @@ public final class SaveProfileAsAction extends AbstractAction {
if (fc.showSaveDialog(logger) == APPROVE_OPTION) {
File selectedFile = fc.getSelectedFile();
if (!selectedFile.exists() || showConfirmDialog(logger, selectedFile.getName() + " already exists! Overwrite?") == OK_OPTION) {
saveProfileToFile(logger.getCurrentProfile(), selectedFile);
String profileFilePath = saveProfileToFile(logger.getCurrentProfile(), selectedFile);
logger.getSettings().setLoggerProfileFilePath(profileFilePath);
logger.reportMessageInTitleBar("Profile: " + profileFilePath);
logger.reportMessage("Profile succesfully saved as: " + profileFilePath);
}
}
}