public class DirectoryFieldEditor extends StringButtonFieldEditor
oldValue, UNLIMITED, VALIDATE_ON_FOCUS_LOST, VALIDATE_ON_KEY_STROKEHORIZONTAL_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, setEnabledcheckState, doLoad, doLoadDefault, doStore, getErrorMessage, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChangedapplyFont, 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, storeprotected DirectoryFieldEditor()
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 StringButtonFieldEditornull 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 StringFieldEditortrue if the field value is valid,
and false if invalidpublic void setFilterPath(File path)
path - initial path for the Browse dialog
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.