public class HelpLinkColorTooltipFieldEditor extends ColorTooltipFieldEditor
ColorTooltipFieldEditor
enhanced
with support for a help button linking to an Eclipse help entry.Constructor and Description |
---|
HelpLinkColorTooltipFieldEditor()
Default constructor
|
HelpLinkColorTooltipFieldEditor(java.lang.String name,
java.lang.String labelText,
java.lang.String tooltip,
Composite parent,
java.lang.String helpURL,
java.lang.String helpImageTooltip)
Constructor setting all parameters
|
HelpLinkColorTooltipFieldEditor(java.lang.String name,
java.lang.String labelText,
java.lang.String tooltip,
Composite parent,
java.lang.String helpURL,
java.lang.String helpImageTooltip,
boolean showHelpLink)
Constructor setting all parameters
|
Modifier and Type | Method and Description |
---|---|
protected void |
adjustForNumColumns(int numColumns) |
protected void |
doFillIntoGrid(Composite parent,
int numColumns) |
int |
getNumberOfControls() |
void |
setEnabled(boolean enabled,
Composite parent) |
getButton, setButtonEnabled, setTooltipText
public HelpLinkColorTooltipFieldEditor()
public HelpLinkColorTooltipFieldEditor(java.lang.String name, java.lang.String labelText, java.lang.String tooltip, Composite parent, java.lang.String helpURL, java.lang.String helpImageTooltip)
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 editor item and the labelparent
- the parent of the field editor's controlhelpURL
- the URL to the help item to displayhelpImageTooltip
- the tooltip to be displayed for the help link iconpublic HelpLinkColorTooltipFieldEditor(java.lang.String name, java.lang.String labelText, java.lang.String tooltip, Composite parent, java.lang.String helpURL, java.lang.String helpImageTooltip, boolean showHelpLink)
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 editor item and the labelparent
- the parent of the field editor's controlhelpURL
- the URL to the help item to displayhelpImageTooltip
- the tooltip to be displayed for the help link iconshowHelpLink
- true
to show the help link (default),
false
to hide it. Use hiding if there are other
HelpLink editors and you do not want to show
a help link icon for this editor in order to prevent layout issues.protected void doFillIntoGrid(Composite parent, int numColumns)
org.eclipse.jface.preference.ColorFieldEditor#doFillIntoGrid(org.eclipse.swt.widgets.Composite, int)
public int getNumberOfControls()
org.eclipse.jface.preference.ColorFieldEditor#getNumberOfControls()
protected void adjustForNumColumns(int numColumns)
org.eclipse.jface.preference.ColorFieldEditor#adjustForNumColumns(int)
public void setEnabled(boolean enabled, Composite parent)
org.eclipse.jface.preference.ColorFieldEditor#setEnabled(boolean, org.eclipse.swt.widgets.Composite)