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
*			},
 *          parent,
 *          true);	
 * </pre>
 * </p>
 * 
 * @param name the name of the preference this field editor works on
 * @param labelText the label text of the field editor
 * @param numColumns the number of columns for the radio button presentation
 * @param labelAndValues list of radio button [label, value] entries;
 *  the value is returned when the radio button is selected
 * @param parent the parent of the field editor's control
 * @param useGroup whether to use a Group control to contain the radio buttons
 */
public RadioGroupFieldEditor(String name, String labelText, int numColumns, String[][] labelAndValues, Composite parent, boolean useGroup) {
	init(name, labelText);
	Assert.isTrue(checkArray(labelAndValues));
	this.labelsAndValues = labelAndValues;
	this.numColumns = numColumns;
	this.useGroup = useGroup;
	createControl(parent);
}
/* (non-Javadoc)
 * Method declared on FieldEditor.
 */
protected void adjustForNumColumns(int numColumns) {
	Control control = getLabelControl();
	if (control != null) {
		((GridData)control.getLayoutData()).horizontalSpan = numColumns;
	}