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

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

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

Field editor that uses FileListControl for user input.


Field Summary
 
Fields inherited from class org.eclipse.jface.preference.FieldEditor
IS_VALID, VALUE
 
Constructor Summary
FileListControlFieldEditor(java.lang.String name, java.lang.String labelText, org.eclipse.swt.widgets.Composite parent, int type)
          Creates a file list control field editor.
FileListControlFieldEditor(java.lang.String name, java.lang.String labelText, org.eclipse.swt.widgets.Composite parent, java.lang.String value, int type)
          Creates a file list control field editor.
FileListControlFieldEditor(java.lang.String name, java.lang.String labelText, java.lang.String tooltip, org.eclipse.swt.widgets.Composite parent, int type)
          Creates a file list control field editor.
 
Method Summary
 org.eclipse.swt.widgets.Label getLabelControl(org.eclipse.swt.widgets.Composite parent)
           
 int getNumberOfControls()
          Returns the number of basic controls this field editor consists of.
 java.lang.String[] getStringListValue()
           
 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)
           
 void setStyle()
          Set style
 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, 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

FileListControlFieldEditor

public FileListControlFieldEditor(java.lang.String name,
                                  java.lang.String labelText,
                                  org.eclipse.swt.widgets.Composite parent,
                                  int type)
Creates a file list control field editor.

Parameters:
name - the name of the preference this field editor works on
labelText - the label text of the field editor
parent - the parent of the field editor's control
type - the browseType of the file list control

FileListControlFieldEditor

public FileListControlFieldEditor(java.lang.String name,
                                  java.lang.String labelText,
                                  java.lang.String tooltip,
                                  org.eclipse.swt.widgets.Composite parent,
                                  int type)
Creates a file list control field editor.

Parameters:
name - the name of the preference this field editor works on
labelText - the label text of the field editor
tooltip - the tooltip text of the field editor
parent - the parent of the field editor's control
type - the browseType of the file list control

FileListControlFieldEditor

public FileListControlFieldEditor(java.lang.String name,
                                  java.lang.String labelText,
                                  org.eclipse.swt.widgets.Composite parent,
                                  java.lang.String value,
                                  int type)
Creates a file list control field editor.

Parameters:
name - the name of the preference this field editor works on
labelText - the label text of the field editor
parent - the parent of the field editor's control
value - the field editor's value
type - the browseType of the file list control
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

getStringListValue

public java.lang.String[] getStringListValue()

getNumberOfControls

public int getNumberOfControls()
Returns the number of basic controls this field editor consists of.

Specified by:
getNumberOfControls in class org.eclipse.jface.preference.FieldEditor
Returns:
the number of controls

setStyle

public void setStyle()
Set style


getLabelControl

public org.eclipse.swt.widgets.Label getLabelControl(org.eclipse.swt.widgets.Composite parent)
Overrides:
getLabelControl in class org.eclipse.jface.preference.FieldEditor

setEnabled

public void setEnabled(boolean enabled,
                       org.eclipse.swt.widgets.Composite parent)
Overrides:
setEnabled in class org.eclipse.jface.preference.FieldEditor