|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.preference.FieldEditor | +--org.eclipse.jface.preference.StringFieldEditor | +--org.eclipse.jface.preference.StringButtonFieldEditor | +--org.eclipse.jface.preference.FileFieldEditor
A field editor for a file path type preference. A standard file dialog appears when the user presses the change button.
Field Summary |
Fields inherited from class org.eclipse.jface.preference.StringFieldEditor |
UNLIMITED, VALIDATE_ON_FOCUS_LOST, VALIDATE_ON_KEY_STROKE |
Fields inherited from class org.eclipse.jface.preference.FieldEditor |
HORIZONTAL_GAP, IS_VALID, VALUE |
Constructor Summary | |
protected |
FileFieldEditor()
Creates a new file field editor |
|
FileFieldEditor(String name,
String labelText,
boolean enforceAbsolute,
Composite parent)
Creates a file field editor. |
|
FileFieldEditor(String name,
String labelText,
Composite parent)
Creates a file field editor. |
Method Summary | |
protected String |
changePressed()
Notifies that this field editor's change button has been pressed. |
protected boolean |
checkState()
Checks whether the text input field contains a valid value or not. |
void |
setFileExtensions(String[] extensions)
Sets this file field editor's file extension filter. |
Methods inherited from class org.eclipse.jface.preference.StringButtonFieldEditor |
adjustForNumColumns, doFillIntoGrid, getChangeControl, getNumberOfControls, getShell, setChangeButtonText |
Methods inherited from class org.eclipse.jface.preference.StringFieldEditor |
doCheckState, doLoad, doLoadDefault, doStore, getErrorMessage, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FileFieldEditor()
public FileFieldEditor(String name, String labelText, Composite parent)
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 controlpublic FileFieldEditor(String name, String labelText, boolean enforceAbsolute, Composite parent)
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 controlMethod Detail |
protected String changePressed()
StringButtonFieldEditor
Subclasses must implement this method to provide a corresponding
new string for the text field. If the returned value is null
,
the currently displayed value remains.
changePressed
in class StringButtonFieldEditor
null
to leave the
old string showingprotected boolean checkState()
StringFieldEditor
checkState
in class StringFieldEditor
true
if the field value is valid,
and false
if invalidpublic void setFileExtensions(String[] extensions)
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |