public class ColorTooltipFieldEditor
extends ColorFieldEditor
org.eclipse.jface.preference.ColorFieldEditor
enhanced
with support for tooltips.Constructor and Description |
---|
ColorTooltipFieldEditor()
Default contructor
|
ColorTooltipFieldEditor(java.lang.String name,
java.lang.String labelText,
java.lang.String tooltip,
Composite parent)
Creates a color field editor in the default style.
|
Modifier and Type | Method and Description |
---|---|
Button |
getButton() |
void |
setButtonEnabled(boolean enabled) |
void |
setTooltipText(java.lang.String text,
Composite parent)
Sets the tooltip on the button and the label.
|
public ColorTooltipFieldEditor()
public ColorTooltipFieldEditor(java.lang.String name, java.lang.String labelText, java.lang.String tooltip, Composite parent)
name
- the name of the preference this field editor works onlabelText
- the label text of the field editortooltip
- the tooltip to be displayed on the checkbox and the labelparent
- the parent of the field editor's controlpublic void setTooltipText(java.lang.String text, Composite parent)
text
- The tooltip text to be usedparent
- The editors parent compositepublic void setButtonEnabled(boolean enabled)
enabled
- true
to enable the button,
false
to disable it.public Button getButton()