@Override public void createControl(final Composite parent) { initializeDialogUnits(parent); final Composite composite = new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); composite.setLayout(LayoutUtil.createContentGrid(1)); final IRLibPaths rLibPaths = fRPkgManager.getRLibPaths(); { final Group group = new Group(composite, SWT.NONE); group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); group.setText("Target Library:"); group.setLayout(LayoutUtil.createGroupGrid(1)); fSelectTargetControl = new RLibrarySelectionComposite(group); fSelectTargetControl.setLayoutData(fSelectTargetControl.createGD()); fSelectTargetControl.getValidator().setRequired(IRLibPaths.WRITABLE); fSelectTargetControl.setInput(rLibPaths); if (fMode == MODE_UPDATE) { fSameTargetControl = new Button(group, SWT.CHECK); fSameTargetControl.setText( "Install updates to the library of the installed package, if possible."); fSameTargetControl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); } } Dialog.applyDialogFont(composite); setControl(composite); final DataBindingSupport databinding = new DataBindingSupport(composite); addBindings(databinding); fTargetLibraryValue.setValue(RPkgUtil.getDefaultInstallLocation(rLibPaths)); WizardPageSupport.create(this, databinding.getContext()); }