From: pastith Date: Mon, 16 Mar 2009 13:38:31 +0000 (+0000) Subject: Fix a merge error by returning the token field to its former read-only status. Fixed... X-Git-Url: https://code.grnet.gr/git/pithos/commitdiff_plain/57d95ead7e7ceaad0f7d352fce6b3b365a794e0a Fix a merge error by returning the token field to its former read-only status. Fixed a warning, too. --- diff --git a/gss/src/gr/ebs/gss/client/CredentialsDialog.java b/gss/src/gr/ebs/gss/client/CredentialsDialog.java index 480e271..b69e4c4 100644 --- a/gss/src/gr/ebs/gss/client/CredentialsDialog.java +++ b/gss/src/gr/ebs/gss/client/CredentialsDialog.java @@ -32,8 +32,10 @@ import com.google.gwt.user.client.ui.Widget; /** - * @author kman + * A dialog box that displays the user credentials for use in other client + * applications, such as WebDAV clients. * + * @author kman */ public class CredentialsDialog extends DialogBox { /** @@ -67,7 +69,7 @@ public class CredentialsDialog extends DialogBox { table.setWidget(0, 1, username); TextBox tokenBox = new TextBox(); tokenBox.setText(token); - tokenBox.setReadOnly(false); + tokenBox.setReadOnly(true); table.setWidget(1, 1, tokenBox); table.getFlexCellFormatter().setStyleName(0, 0, "props-labels"); table.getFlexCellFormatter().setStyleName(0, 1, "props-values"); @@ -89,11 +91,7 @@ public class CredentialsDialog extends DialogBox { setWidget(outer); } - /* - * (non-Javadoc) - * - * @see com.google.gwt.user.client.ui.PopupPanel#onKeyDownPreview(char, int) - */ + @Override public boolean onKeyDownPreview(char key, int modifiers) { // Use the popup's key preview hooks to close the dialog when either // enter or escape is pressed. @@ -103,10 +101,7 @@ public class CredentialsDialog extends DialogBox { hide(); break; } - return true; } - - }