Project: Eclipse_Platform_UI
Bug 259952 [Preferences] Duplicated text when using tooltip in BooleanFieldEditor
Reported: 2009-01-05 09:28:26 | Status: resolved fixed

Build ID: M20080911-1700 Steps To Reproduce: 1. Set a tooltip to the field: bfe.getLabelControl(parent).setToolTipText(tooltipText); 2. When the preference page is shown, the text that describes the preference being edited appears duplicated. More information: The usual way to set the tool tip to a field editor is calling "getLabelControl(parent).setToolTipText(tooltipText)", but in the BooleanFieldEditor this creates a Label that is not needed (when using the BooleanFieldEditor.DEFAULT style), which makes the textual description be shown twice, in the Checkbox control, and in the (unnecessary) Label control. One solution for this issue would be to turn the method "BooleanFieldEditor.getChangeControl()" to be public instead of protected. This way one could set the tool tip directly in the checkbox Button control.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/BooleanFieldEditor.java