in org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/ui/components/SecuritySetupDialog.java [73:132]
protected Control createDialogArea(Composite parent) {
Composite errorContainer = (Composite) super.createDialogArea(parent);
GridLayout errorLayout = new GridLayout(2, false);
errorContainer.setLayout(errorLayout);
errorIcon = new Label(errorContainer, SWT.NONE);
errorIcon.setImage(JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_ERROR));
// errorIcon.setLayoutData(new GridData(20,20));
errorLabel = new Label(errorContainer, SWT.NONE);
errorLabel.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false));
Label separator = new Label(errorContainer, SWT.HORIZONTAL | SWT.SEPARATOR);
separator.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false, 2, 1));
Composite container = (Composite) super.createDialogArea(parent);
GridLayout layout = new GridLayout(2, false);
// layout.marginRight = 5;
// layout.marginLeft = 10;
container.setLayout(layout);
idLabel = new Label(container, SWT.NONE);
idLabel.setText("Id:");
idText = new Text(container, SWT.NONE);
idText.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false));
idText.setEditable(false);
idText.setEnabled(false);
hostLabel = new Label(container, SWT.NONE);
hostLabel.setText("Host:");
hostText = new Text(container, SWT.SINGLE | SWT.BORDER);
hostText.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false));
hostText.setToolTipText(TOOLTIP_HOST);
realmLabel = new Label(container, SWT.NONE);
realmLabel.setText("Realm:");
realmText = new Text(container, SWT.SINGLE | SWT.BORDER);
realmText.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false));
realmText.setToolTipText(TOOLTIP_REALM);
userNameLabel = new Label(container, SWT.NONE);
userNameLabel.setText("Username:");
userNameText = new Text(container, SWT.SINGLE | SWT.BORDER);
userNameText.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false));
userNameText.setToolTipText(TOOLTIP_USERNAME);
pwdLabel = new Label(container, SWT.NONE);
pwdLabel.setText("Password:");
pwdText = new Text(container, SWT.PASSWORD | SWT.BORDER);
pwdText.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
pwdText.setToolTipText(TOOLTIP_PASSWORD);
return container;
}