Source:
<code><START> public void createContributionControls(final Composite parent) { <END> super.createContributionControls(parent); Composite newSection = new Composite(compositeContainer, SWT.NONE); GridLayout layout = new GridLayout(2, false); newSection.setLayout(layout); newSection.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, true, 3, 2)); Label guidedLabel = new Label(newSection, SWT.NONE); guidedLabel.setText(Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed); gerritUsageCombo = new Combo(newSection, SWT.DROP_DOWN | SWT.READ_ONLY); gerritUsageCombo.add(Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed_WithTracker); gerritUsageCombo.add(Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed_Alone); final Composite fullWidth = new Composite(parent.getParent().getParent(), SWT.NONE); fullWidth.setLayout(new RowLayout(SWT.WRAP)); final Label guidedDescriptionLabel = new Label(fullWidth, SWT.WRAP | SWT.LEFT); gerritUsageCombo.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent e) { String usageType = getCurrentUsageType(); if (usageType.equals(ReviewUsageType.ALONE.name())) { guidedDescriptionLabel .setText(Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed_Alone_Description); } if (usageType.equals(ReviewUsageType.WITH_TASK_TOOL.name())) { guidedDescriptionLabel.setText( Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed_WithTracker_Description); } fullWidth.getParent().layout(); isPageComplete(); } }); if (repository != null) { String value = repository.getProperty(GerritConnector.KEY_REPOSITORY_USAGE); gerritUsageCombo.setText((value != null) ? value : ""); if (gerritUsageCombo.getSelectionIndex() == -1) { gerritUsageCombo.select(0); } } }</code><technical_language>override createAdditionalControls instead</technical_language>

Target:
public void createContributionControls(final Composite parent) { super.createContributionControls(parent); Composite newSection = new Composite(compositeContainer, SWT.NONE); GridLayoutFactory.swtDefaults().numColumns(2).equalWidth(true).applyTo(newSection); GridDataFactory.swtDefaults().grab(true, true).align(SWT.LEFT, SWT.TOP).span(3, 2).applyTo(newSection); Label guidedLabel = new Label(newSection, SWT.NONE); guidedLabel.setText(Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed); gerritUsageCombo = new Combo(newSection, SWT.DROP_DOWN | SWT.READ_ONLY); gerritUsageCombo.add(Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed_WithTracker); gerritUsageCombo.add(Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed_Alone); final Composite fullWidth = new Composite(parent.getParent().getParent(), SWT.NONE); fullWidth.setLayout(new RowLayout(SWT.WRAP)); final Label guidedDescriptionLabel = new Label(fullWidth, SWT.WRAP | SWT.LEFT); gerritUsageCombo.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent e) { String usageType = getCurrentUsageType(); if (usageType.equals(ReviewUsageType.ALONE.name())) { guidedDescriptionLabel .setText(Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed_Alone_Description); } if (usageType.equals(ReviewUsageType.WITH_TASK_TOOL.name())) { guidedDescriptionLabel.setText( Messages.GerritRepositorySettingsPage_Gerrit_Repository_HowUsed_WithTracker_Description); } fullWidth.getParent().layout(); isPageComplete(); } }); if (repository != null) { String value = repository.getProperty(GerritConnector.KEY_REPOSITORY_USAGE); gerritUsageCombo.setText((value != null) ? value : ""); if (gerritUsageCombo.getSelectionIndex() == -1) { gerritUsageCombo.select(0); } } }