|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.preference.FieldEditor
org.eclipse.jface.preference.StringFieldEditor
org.eclipse.jface.preference.StringButtonFieldEditor
org.eclipse.jface.preference.FileFieldEditor
eu.esdihumboldt.hale.ui.io.util.ExtendedFileFieldEditor
public class ExtendedFileFieldEditor
File field editor that allows setting the file dialog style and filter names
or IContentType
s
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 | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.jface.preference.FileFieldEditor |
---|
checkState, setFilterPath |
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 |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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 types
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |