* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
- *
+ �*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
return true;
}
/**
- * Asks the User to enter a Password. Places the results in the supplied string[]. result[0] must contain the username, result[1]
- * must contain the fPassword. If the fUser canceled, both values must be zero.
+ * Asks the user to enter a password. Places the results in the supplied string[].
+ * result[0] must contain the username,
+ * result[1] must contain the fPassword.
+ * If the user canceled, both values must be zero.
*
* @param location
* the location to obtain the fPassword for
*/
public boolean promptForPassword(final String username, final String message, final boolean userMutable, final String[] result) {
if (isUserComplete()) {
- result[0] = fUser;
+ result[0] = fUser;
result[1] = fPassword;
return true;
}
+ result[0] = null;
+ result[1] = null;
Shell shell = Util.findShell();
if (shell == null) {
return false;