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_STROKEFields inherited from class org.eclipse.jface.preference.FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates 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 Stringprotected booleanvoidsetFileExtensions(String[] extensions) Sets this file field editor's file extension filter.voidsetTooltip(String tooltip) Methods inherited from class org.eclipse.jface.preference.StringButtonFieldEditor
adjustForNumColumns, doFillIntoGrid, getChangeControl, getNumberOfControls, getShell, setChangeButtonText, setEnabledMethods 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, valueChangedMethods 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:
changePressedin classStringButtonFieldEditor
-
checkState
protected boolean checkState()- Overrides:
checkStatein classStringFieldEditor
-
setFileExtensions
Sets this file field editor's file extension filter.- Parameters:
extensions- a list of file extension, ornullto set the filter to the system's default value
-
setTooltip
-