passwordDialog.open();
String password2 = passwordDialog.getValue();
if (password1.equals(password2)) {
String password = password1;
PWListContentProvider contentProvider = (PWListContentProvider) view
.getContentProvider();
try {
contentProvider.saveEncryptedFile(password, file);
} catch (ParserConfigurationException e) {
MessageDialog.openError(shell, "Cannot save file",
"Failed to write XML to file "
+ file.getAbsolutePath());
e.printStackTrace();