Class WorkspaceFileFieldEditor
java.lang.Object
org.eclipse.jface.preference.FieldEditor
org.eclipse.jface.preference.StringFieldEditor
org.eclipse.jface.preference.StringButtonFieldEditor
org.csstudio.opibuilder.preferences.WorkspaceFileFieldEditor
A field editor for a workspace file path type preference. A workspace file dialog appears when the user presses the
change button.
-
Field Summary
Fields inherited from class org.eclipse.jface.preference.StringFieldEditor
oldValue, 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
ModifierConstructorDescriptionprotected
Creates a new file field editorWorkspaceFileFieldEditor
(String name, String labelText, String[] extensions, Composite parent) Creates a file field editor.WorkspaceFileFieldEditor
(String name, String labelText, Composite parent) Creates a file field editor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected boolean
void
setFileExtensions
(String[] extensions) Sets this file field editor's file extension filter.void
setTooltip
(String tooltip) Methods inherited from class org.eclipse.jface.preference.StringButtonFieldEditor
adjustForNumColumns, doFillIntoGrid, getChangeControl, getNumberOfControls, getShell, setChangeButtonText, setEnabled
Methods inherited from class org.eclipse.jface.preference.StringFieldEditor
createTextWidget, doCheckState, doLoad, doLoadDefault, doStore, getErrorMessage, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChanged
Methods inherited from class org.eclipse.jface.preference.FieldEditor
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
-
Constructor Details
-
WorkspaceFileFieldEditor
protected WorkspaceFileFieldEditor()Creates a new file field editor -
WorkspaceFileFieldEditor
Creates a file field editor.- Parameters:
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 control
-
WorkspaceFileFieldEditor
public WorkspaceFileFieldEditor(String name, String labelText, String[] extensions, Composite parent) Creates a file field editor.- Parameters:
name
- the name of the preference this field editor works onlabelText
- the label text of the field editorextensions
- the file extensionsparent
- the parent of the field editor's control
-
-
Method Details
-
changePressed
- Specified by:
changePressed
in classStringButtonFieldEditor
-
checkState
protected boolean checkState()- Overrides:
checkState
in classStringFieldEditor
-
setFileExtensions
Sets this file field editor's file extension filter.- Parameters:
extensions
- a list of file extension, ornull
to set the filter to the system's default value
-
setTooltip
-