public class DirectoryFieldEditor extends StringButtonFieldEditor
oldValue, UNLIMITED, VALIDATE_ON_FOCUS_LOST, VALIDATE_ON_KEY_STROKE
HORIZONTAL_GAP, IS_VALID, VALUE
Modifier | Constructor and Description |
---|---|
protected |
DirectoryFieldEditor()
Creates a new directory field editor
|
|
DirectoryFieldEditor(String name,
String labelText,
Composite parent)
Creates a directory field editor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
changePressed()
Notifies that this field editor's change button has been pressed.
|
protected boolean |
doCheckState()
Hook for subclasses to do specific state checks.
|
void |
setFilterPath(File path)
Sets the initial path for the Browse dialog.
|
adjustForNumColumns, doFillIntoGrid, getChangeControl, getNumberOfControls, getShell, setChangeButtonText, setEnabled
checkState, doLoad, doLoadDefault, doStore, getErrorMessage, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChanged
applyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPage, getPreferenceName, getPreferencePage, getPreferenceStore, init, load, loadDefault, presentsDefaultValue, setButtonLayoutData, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage, store
protected DirectoryFieldEditor()
public DirectoryFieldEditor(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 controlprotected 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 doCheckState()
StringFieldEditor
The default implementation of this framework method does
nothing and returns true
. Subclasses should
override this method to specific state checks.
doCheckState
in class StringFieldEditor
true
if the field value is valid,
and false
if invalidpublic void setFilterPath(File path)
path
- initial path for the Browse dialog
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.