use of org.eclipse.swt.custom.ScrolledComposite in project bndtools by bndtools.
the class ErrorDialog method createDialogArea.
@Override
protected Control createDialogArea(Composite parent) {
Composite composite = (Composite) super.createDialogArea(parent);
Composite c2 = new Composite(composite, SWT.NONE);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 2;
gridLayout.horizontalSpacing = 0;
gridLayout.verticalSpacing = 5;
gridLayout.marginWidth = 0;
gridLayout.marginHeight = 10;
c2.setLayout(gridLayout);
c2.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
Label label = new Label(c2, SWT.NONE);
label.setText(Messages.project);
Text projName = new Text(c2, SWT.BORDER);
projName.setEditable(false);
projName.setText(name);
ScrolledComposite scrolled = new ScrolledComposite(composite, SWT.H_SCROLL | SWT.V_SCROLL);
gridLayout = new GridLayout();
gridLayout.numColumns = 1;
gridLayout.horizontalSpacing = 0;
gridLayout.verticalSpacing = 5;
gridLayout.marginWidth = 10;
gridLayout.marginHeight = 10;
scrolled.setLayout(gridLayout);
GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, true);
scrolled.setLayoutData(gridData);
errorList.createControl(scrolled);
scrolled.setExpandHorizontal(true);
scrolled.setExpandVertical(true);
scrolled.setContent(errorList.getControl());
// scrolled.setMinSize(500, 500);
scrolled.layout(true);
return composite;
}
Aggregations