org.eclipse.cdt.managedbuilder.ui.properties
Class BuildOptionComboFieldEditor

java.lang.Object
  extended by org.eclipse.jface.preference.FieldEditor
      extended by org.eclipse.cdt.managedbuilder.ui.properties.BuildOptionComboFieldEditor

public class BuildOptionComboFieldEditor
extends org.eclipse.jface.preference.FieldEditor


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

BuildOptionComboFieldEditor

public BuildOptionComboFieldEditor(java.lang.String name,
                                   java.lang.String label,
                                   java.lang.String[] opts,
                                   java.lang.String sel,
                                   org.eclipse.swt.widgets.Composite parent)
Parameters:
name -
label -
opts -
sel -
parent -

BuildOptionComboFieldEditor

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)
Parameters:
name -
label -
tooltip -
opts -
sel -
parent -
Method Detail

setToolTip

public 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.

Parameters:
string - the new tool tip text (or null)
Throws:
org.eclipse.swt.SWTException -
  • ERROR_WIDGET_DISPOSED - if the field editor has been disposed
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the field editor

getToolTipText

public java.lang.String getToolTipText()
Returns the field editor's tool tip text, or null if it has not been set.

Returns:
the field editor's tool tip text
Throws:
org.eclipse.swt.SWTException -
  • ERROR_WIDGET_DISPOSED - if the field editor has been disposed
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the field editor

getSelection

public java.lang.String getSelection()

getNumberOfControls

public int getNumberOfControls()
Specified by:
getNumberOfControls in class org.eclipse.jface.preference.FieldEditor

getComboControl

public org.eclipse.swt.widgets.Combo getComboControl(org.eclipse.swt.widgets.Composite parent)
Returns this field editor's text control.

Returns:
the text control, or null if no text field is created yet

setEnabled

public void setEnabled(boolean enabled,
                       org.eclipse.swt.widgets.Composite parent)
Set whether or not the controls in the field editor are enabled.

Overrides:
setEnabled in class org.eclipse.jface.preference.FieldEditor
Parameters:
enabled - The enabled state.
parent - The parent of the controls in the group. Used to create the controls if required.

setOptions

public void setOptions(java.lang.String[] options)
Set the list of enum values for this combo field editor


getOptions

public java.lang.String[] getOptions()
Set the list of enum values for this combo field editor