final Composite main = new Composite(parent, SWT.NONE); main.setLayout(new GridLayout(1, false)); GridDataFactory.fillDefaults().grab(true, true).minSize(SWT.DEFAULT, SWT.DEFAULT).applyTo(main); uriViewer = new TableViewer(pushUriDetails, SWT.BORDER | SWT.MULTI); GridDataFactory.fillDefaults().grab(true, true) .minSize(SWT.DEFAULT, 30).applyTo(uriViewer.getTable()); uriViewer.setContentProvider(ArrayContentProvider.getInstance()); GridDataFactory.fillDefaults().grab(true, true).minSize(SWT.DEFAULT, SWT.DEFAULT).applyTo(refSpecGroup); refSpecGroup.setText(UIText.SimpleConfigurePushDialog_RefMappingGroup); refSpecGroup.setLayout(new GridLayout(2, false)); specViewer.setContentProvider(ArrayContentProvider.getInstance()); GridDataFactory.fillDefaults().grab(true, true) .minSize(SWT.DEFAULT, 30).applyTo(specViewer.getTable()); specViewer.getTable().addKeyListener(new KeyAdapter() { @Override GridDataFactory.fillDefaults().grab(false, true).minSize(SWT.DEFAULT, SWT.DEFAULT).applyTo(refButtonArea);
specViewer.setContentProvider(ArrayContentProvider.getInstance()); GridDataFactory.fillDefaults().hint(SWT.DEFAULT, 150) .minSize(SWT.DEFAULT, 30).grab(true, true) .applyTo(specViewer.getTable());
GridDataFactory.createFrom((GridData)title.getLayoutData()) .hint(SWT.DEFAULT, SWT.DEFAULT) .minSize(CustomizePerspectiveDialog.MIN_TOOLTIP_WIDTH, 1) .applyTo(title);
GridDataFactory.fillDefaults().grab(true, true).minSize(SWT.DEFAULT, 400).applyTo(table.getControl()); allCommits = new SWTCommitList(table.getControl(), resources);
GridDataFactory.fillDefaults().grab(true, true).minSize(0, 300) .applyTo(fTree);
.grab(false, false) .hint(FILTER_WIDTH_MIN, SWT.DEFAULT) .minSize(FILTER_WIDTH_MIN, SWT.DEFAULT) .applyTo(parent); filterComposite.addControlListener(new ControlAdapter() {
.align(SWT.FILL, SWT.FILL) .grab(true, true) .minSize(0, 80) .applyTo(control);
if (control != null) { int minHeight = control.computeSize(SWT.DEFAULT, SWT.DEFAULT).y; GridDataFactory.fillDefaults().grab(true, true).minSize(SWT.DEFAULT, minHeight).span(3, 1).applyTo(control);
int minHeight = commitText.getTextWidget().getLineHeight() * 3; commitText.setLayoutData(GridDataFactory.fillDefaults() .grab(true, true).hint(size).minSize(size.x, minHeight) .align(SWT.FILL, SWT.FILL).create());