public class HelpLinkFileFieldEditor
extends FileFieldEditor
org.eclipse.jface.preference.FileFieldEditor
enhanced
with support for a help button linking to an Eclipse help entry.Constructor and Description |
---|
HelpLinkFileFieldEditor(java.lang.String name,
java.lang.String labelText,
boolean enforceAbsolute,
Composite parent,
java.lang.String helpURL,
java.lang.String helpImageTooltip)
Constructor setting all parameters
|
HelpLinkFileFieldEditor(java.lang.String name,
java.lang.String labelText,
Composite parent,
java.lang.String helpURL,
java.lang.String helpImageTooltip)
Constructor setting all parameters
|
Modifier and Type | Method and Description |
---|---|
protected void |
adjustForNumColumns(int numColumns) |
protected void |
doFillIntoGrid(Composite parent,
int numColumns) |
Button |
getChangeControl(Composite parent) |
int |
getNumberOfControls() |
void |
setEnabled(boolean enabled,
Composite parent) |
public HelpLinkFileFieldEditor(java.lang.String name, java.lang.String labelText, 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 editorparent
- 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 HelpLinkFileFieldEditor(java.lang.String name, java.lang.String labelText, boolean enforceAbsolute, 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 editorenforceAbsolute
- true
if the file path
must be absolute, and false
otherwiseparent
- 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 iconprotected void doFillIntoGrid(Composite parent, int numColumns)
org.eclipse.jface.preference.StringButtonFieldEditor#doFillIntoGrid(org.eclipse.swt.widgets.Composite, int)
public Button getChangeControl(Composite parent)
public int getNumberOfControls()
org.eclipse.jface.preference.StringButtonFieldEditor#getNumberOfControls()
protected void adjustForNumColumns(int numColumns)
org.eclipse.jface.preference.StringButtonFieldEditor#adjustForNumColumns(int)
public void setEnabled(boolean enabled, Composite parent)
org.eclipse.jface.preference.StringButtonFieldEditor#setEnabled(boolean, org.eclipse.swt.widgets.Composite)