String testPassword = testPasswordText.getText();
if ( currentPassword != null )
{
if ( currentPassword.verify( testPassword ) )
{
MessageDialog dialog = new MessageDialog( getShell(), "Password Verification", getShell().getImage(),
"Password verified sucessfully", MessageDialog.INFORMATION, new String[]
{ IDialogConstants.OK_LABEL }, 0 );
dialog.open();
}
else
{
MessageDialog dialog = new MessageDialog( getShell(), "Password Verification", getShell().getImage(),
"Password verification failed", MessageDialog.ERROR, new String[]
{ IDialogConstants.OK_LABEL }, 0 );
dialog.open();
}
}
}