diff options
author | Jean Michel-Lemieux | 2003-03-13 16:52:03 +0000 |
---|---|---|
committer | Jean Michel-Lemieux | 2003-03-13 16:52:03 +0000 |
commit | 577f5cfa8d09217dc55e27e4ac0e512e8f62255b (patch) | |
tree | 78117d25ca1489a208ee6e516942d2e91129103c /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/UserValidationDialog.java | |
parent | 921212ab6faf4656945ec6af55fe6b79df45f5b8 (diff) | |
download | eclipse.platform.team-577f5cfa8d09217dc55e27e4ac0e512e8f62255b.tar.gz eclipse.platform.team-577f5cfa8d09217dc55e27e4ac0e512e8f62255b.tar.xz eclipse.platform.team-577f5cfa8d09217dc55e27e4ac0e512e8f62255b.zip |
Bug 34429 Changed host key error dialog text does not wrap
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/UserValidationDialog.java')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/UserValidationDialog.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/UserValidationDialog.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/UserValidationDialog.java index 81f6ec590..48252c447 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/UserValidationDialog.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/UserValidationDialog.java @@ -88,14 +88,15 @@ public class UserValidationDialog extends Dialog { GridLayout layout = new GridLayout(); layout.numColumns = 3; main.setLayout(layout); - main.setLayoutData(new GridData(GridData.FILL_BOTH)); + main.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); if (message != null) { Label messageLabel = new Label(main, SWT.WRAP); messageLabel.setText(message); messageLabel.setForeground(messageLabel.getDisplay().getSystemColor(SWT.COLOR_RED)); - GridData data = new GridData(GridData.FILL_HORIZONTAL); + GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL); data.horizontalSpan = 3; + data.widthHint = 400; messageLabel.setLayoutData(data); } @@ -105,8 +106,9 @@ public class UserValidationDialog extends Dialog { } else { label.setText(Policy.bind("UserValidationDialog.labelPassword", new Object[] {defaultUsername, domain})); //$NON-NLS-1$ } - GridData data = new GridData(GridData.FILL_HORIZONTAL); + GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL); data.horizontalSpan = 3; + data.widthHint = 400; label.setLayoutData(data); createUsernameFields(main); @@ -124,12 +126,10 @@ public class UserValidationDialog extends Dialog { passwordField = new Text(parent, SWT.BORDER); GridData data = new GridData(GridData.FILL_HORIZONTAL); + data.horizontalSpan = 2; data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.ENTRY_FIELD_WIDTH); passwordField.setLayoutData(data); passwordField.setEchoChar('*'); - - // spacer - new Label(parent, SWT.NONE); } /** * Creates the three widgets that represent the user name entry area. @@ -141,11 +141,9 @@ public class UserValidationDialog extends Dialog { usernameField = new Text(parent, SWT.BORDER); GridData data = new GridData(GridData.FILL_HORIZONTAL); + data.horizontalSpan = 2; data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.ENTRY_FIELD_WIDTH); usernameField.setLayoutData(data); - - // spacer - new Label(parent, SWT.NONE); } /** * Returns the password entered by the user, or null |