Upload/Download of multiple files now possible
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / internal / Configuration.java
index 1cadc30..c961a81 100644 (file)
@@ -4,7 +4,7 @@
  * 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
  **********************************************************************/
@@ -220,8 +220,10 @@ public class Configuration implements IConfiguration, Comparable {
     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
@@ -236,10 +238,12 @@ public class Configuration implements IConfiguration, Comparable {
    */
   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;