logger.debug("Entered password for the 1st time, length is "
+ password1.length());
if (password1.equals(password2)) {
logger.info("Entered passwords match, OK");
String password = password1;
PWListContentProvider contentProvider = (PWListContentProvider) view
.getContentProvider();
try {
contentProvider.saveEncryptedFile(password, file);
MessageDialog.showInfoMessage("Successfully saved to "
+ file.getAbsolutePath(), "File saved", logger);
} catch (SysGenericException e) {
String msg = "Cannot save file to file " + e.getMessage();
MessageDialog.showExpectedErrorMessage(msg, logger, e);