String newMasterPassword = null;
while ( true )
{
// We ask the user to reset his master password
ResetPasswordDialog resetPasswordDialog = new ResetPasswordDialog( changeMasterPasswordButton.getShell(),
"", null, null ); //$NON-NLS-1$
if ( resetPasswordDialog.open() != ResetPasswordDialog.OK )
{
// The user cancelled the action
return;
}
// Checking the password
Exception checkPasswordException = null;
try
{
if ( passwordsKeyStoreManager.checkMasterPassword( resetPasswordDialog.getCurrentPassword() ) )
{
newMasterPassword = resetPasswordDialog.getNewPassword();
break;
}
}
catch ( KeyStoreException e )
{