|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.preference.FieldEditor
org.eclipse.cdt.managedbuilder.ui.properties.BuildOptionComboFieldEditor
public class BuildOptionComboFieldEditor
Field Summary |
---|
Fields inherited from class org.eclipse.jface.preference.FieldEditor |
---|
IS_VALID, VALUE |
Constructor Summary | |
---|---|
BuildOptionComboFieldEditor(java.lang.String name,
java.lang.String label,
java.lang.String[] opts,
java.lang.String sel,
org.eclipse.swt.widgets.Composite parent)
|
|
BuildOptionComboFieldEditor(java.lang.String name,
java.lang.String label,
java.lang.String tooltip,
java.lang.String[] opts,
java.lang.String sel,
org.eclipse.swt.widgets.Composite parent)
|
Method Summary | |
---|---|
org.eclipse.swt.widgets.Combo |
getComboControl(org.eclipse.swt.widgets.Composite parent)
Returns this field editor's text control. |
int |
getNumberOfControls()
|
java.lang.String[] |
getOptions()
Set the list of enum values for this combo field editor |
java.lang.String |
getSelection()
|
java.lang.String |
getToolTipText()
Returns the field editor's tool tip text, or null if it has not been set. |
void |
setEnabled(boolean enabled,
org.eclipse.swt.widgets.Composite parent)
Set whether or not the controls in the field editor are enabled. |
void |
setOptions(java.lang.String[] options)
Set the list of enum values for this combo field editor |
void |
setToolTip(java.lang.String tooltip)
Sets the field editor's tool tip text to the argument, which may be null indicating that no tool tip text should be shown. |
Methods inherited from class org.eclipse.jface.preference.FieldEditor |
---|
dispose, fillIntoGrid, getFieldEditorFontName, getLabelControl, getLabelText, getPreferenceName, getPreferenceStore, isValid, load, loadDefault, presentsDefaultValue, setFocus, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPropertyChangeListener, store |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildOptionComboFieldEditor(java.lang.String name, java.lang.String label, java.lang.String[] opts, java.lang.String sel, org.eclipse.swt.widgets.Composite parent)
name
- label
- opts
- sel
- parent
- public BuildOptionComboFieldEditor(java.lang.String name, java.lang.String label, java.lang.String tooltip, java.lang.String[] opts, java.lang.String sel, org.eclipse.swt.widgets.Composite parent)
name
- label
- tooltip
- opts
- sel
- parent
- Method Detail |
---|
public void setToolTip(java.lang.String tooltip)
string
- the new tool tip text (or null)
org.eclipse.swt.SWTException
- public java.lang.String getToolTipText()
org.eclipse.swt.SWTException
- public java.lang.String getSelection()
public int getNumberOfControls()
getNumberOfControls
in class org.eclipse.jface.preference.FieldEditor
public org.eclipse.swt.widgets.Combo getComboControl(org.eclipse.swt.widgets.Composite parent)
null
if no
text field is created yetpublic void setEnabled(boolean enabled, org.eclipse.swt.widgets.Composite parent)
setEnabled
in class org.eclipse.jface.preference.FieldEditor
enabled
- The enabled state.parent
- The parent of the controls in the group.
Used to create the controls if required.public void setOptions(java.lang.String[] options)
public java.lang.String[] getOptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |