public class ExtendedFileFieldEditor
extends org.eclipse.jface.preference.FileFieldEditor
IContentType
sModifier | Constructor and Description |
---|---|
protected |
ExtendedFileFieldEditor(int style)
Create a file field editor
|
|
ExtendedFileFieldEditor(String name,
String labelText,
boolean enforceAbsolute,
org.eclipse.swt.widgets.Composite parent,
int style)
Create a file field editor
|
|
ExtendedFileFieldEditor(String name,
String labelText,
boolean enforceAbsolute,
int validationStrategy,
org.eclipse.swt.widgets.Composite parent,
int style)
Create a file field editor
|
|
ExtendedFileFieldEditor(String name,
String labelText,
org.eclipse.swt.widgets.Composite parent,
int style)
Create a file field editor
|
Modifier and Type | Method and Description |
---|---|
protected String |
changePressed() |
protected File |
getFile(File startingDirectory)
Helper to open the file chooser dialog.
|
void |
setContentTypes(Set<org.eclipse.core.runtime.content.IContentType> types)
Set the content types, this is an alternative to using
setFileExtensions(String[]) and
setFilterNames(String[]) |
void |
setFileExtensions(String[] extensions)
Sets this file field editor's file extension filter.
|
void |
setFilterNames(String[] names)
Sets this file field editor's file extension filter names.
|
adjustForNumColumns, doFillIntoGrid, getChangeControl, getNumberOfControls, getShell, setChangeButtonText, setEnabled
doCheckState, 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 ExtendedFileFieldEditor(int style)
style
- the file dialog stylepublic ExtendedFileFieldEditor(String name, String labelText, boolean enforceAbsolute, org.eclipse.swt.widgets.Composite parent, int style)
name
- the preference namelabelText
- the label textenforceAbsolute
- true
if the file path must be
absolute, and false
otherwiseparent
- the parent compositestyle
- the file dialog styleFileFieldEditor.FileFieldEditor(String, String, boolean, Composite)
public ExtendedFileFieldEditor(String name, String labelText, boolean enforceAbsolute, int validationStrategy, org.eclipse.swt.widgets.Composite parent, int style)
name
- the preference namelabelText
- the label textenforceAbsolute
- true
if the file path must be
absolute, and false
otherwisevalidationStrategy
- the validation strategyparent
- the parent compositestyle
- the file dialog styleFileFieldEditor.FileFieldEditor(String, String, boolean, int,
Composite)
public ExtendedFileFieldEditor(String name, String labelText, org.eclipse.swt.widgets.Composite parent, int style)
name
- the preference namelabelText
- the label textparent
- the parent compositestyle
- the file dialog styleFileFieldEditor.FileFieldEditor(String, String, Composite)
protected String changePressed()
changePressed
in class org.eclipse.jface.preference.FileFieldEditor
FileFieldEditor.changePressed()
protected File getFile(File startingDirectory)
startingDirectory
- the directory to open the dialog on.null
if they do
not.public void setFileExtensions(String[] extensions)
setFileExtensions
in class org.eclipse.jface.preference.FileFieldEditor
extensions
- a list of file extension, or null
to set
the filter to the system's default valuepublic void setFilterNames(String[] names)
names
- a list of filter names, must correspond with the extensions
set using setFileExtensions(String[])
public void setContentTypes(Set<org.eclipse.core.runtime.content.IContentType> types)
setFileExtensions(String[])
and
setFilterNames(String[])
types
- the content typesBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a