Bug 50627 [Preferences] Bug when disabling RadioGroupFieldEditor
If I disable a RadioGroupFieldEditor in the initialize of a FieldEditorPreferencePage, the label of the group gets added to the preference page at the bottom. The problem is that the method FieldEditor#getLabelControl (Composite) creates a label control. In general, this is correct but a radio button group uses a different label so when the disable occurs, an additional label is created. We have released changes to the Team>CVS>Watch/Edit preference page that illustrates this problem.
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/RadioGroupFieldEditor.java
}
		});
	} else {
		checkParent(radioBox, parent);
	}
	return radioBox;
}
/**
 * Sets the indent used for the first column of the radion button matrix.
 *
 * @param indent the indent (in pixels)
 */
public void setIndent(int indent) {
	if (indent < 0)
		this.indent = 0;
	else
		this.indent = indent;
}
/**
 * Select the radio button that conforms to the given value.
 *
 * @param selectedValue the selected value
 */
private void updateValue(String selectedValue) {
	this.value = selectedValue;
	if (radioButtons == null)
		return;
	if (this.value != null) {
		boolean found = false;
		for (int i = 0; i < radioButtons.length; i++) {