Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2020-02-09 16:57:04 +0000
committerKarsten Thoms2020-03-10 02:58:29 +0000
commit65940e4856f60a74a0d8b733fcce4f3c4db708e6 (patch)
treef2b36f94f9d90edc640317185c6208da3d442a46
parent7bb59267ab3f26e33bd615477f3717e13c2e040a (diff)
downloadeclipse.platform.team-I20200312-1800.tar.gz
eclipse.platform.team-I20200312-1800.tar.xz
eclipse.platform.team-I20200312-1800.zip
Change-Id: Ib497768c0680d8f8eddaafbd12a76445de0352e3 Signed-off-by: Karsten Thoms <karsten.thoms@karakun.com> Also-by: Carsten Hammer <carsten.hammer@t-online.de>
-rw-r--r--bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/auth/UserValidationDialog.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/auth/UserValidationDialog.java b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/auth/UserValidationDialog.java
index 6746e875a..21000ba35 100644
--- a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/auth/UserValidationDialog.java
+++ b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/auth/UserValidationDialog.java
@@ -61,8 +61,12 @@ public class UserValidationDialog extends Dialog {
}
return uio.authentication;
}
+
/**
- * Gets user and password from a user Must be called from UI thread
+ * Gets user and password from a user. Must be called from UI thread.
+ *
+ * @param host the host name
+ * @param message the message to be displayed when prompting
*
* @return UserAuthentication that contains the userid and the password or
* <code>null</code> if the dialog has been cancelled
@@ -73,11 +77,13 @@ public class UserValidationDialog extends Dialog {
ui.open();
return ui.getAuthentication();
}
+
/**
* Creates a new UserValidationDialog.
*
- * @param parentShell
- * parent Shell or null
+ * @param parentShell parent Shell or <code>null</code>
+ * @param host the host name
+ * @param message the message to be displayed when prompting
*/
protected UserValidationDialog(Shell parentShell, String host,
String message) {
@@ -126,8 +132,11 @@ public class UserValidationDialog extends Dialog {
"org.eclipse.update.ui.UserValidationDialog"); //$NON-NLS-1$
return main;
}
+
/**
* Creates the three widgets that represent the user name entry area.
+ *
+ * @param parent
*/
protected void createPasswordFields(Composite parent) {
new Label(parent, SWT.NONE).setText(NetUIMessages.UserValidationDialog_2);
@@ -139,8 +148,11 @@ public class UserValidationDialog extends Dialog {
new Label(parent, SWT.NONE); //spacer
}
+
/**
* Creates the three widgets that represent the user name entry area.
+ *
+ * @param parent
*/
protected void createUsernameFields(Composite parent) {
new Label(parent, SWT.NONE).setText(NetUIMessages.UserValidationDialog_3);

Back to the top