public class FileSourceFileFieldEditor extends OpenFileFieldEditor
OpenFileFieldEditor
with support for relative URIs with regard to
the current project's location.Constructor and Description |
---|
FileSourceFileFieldEditor()
Default constructor.
|
FileSourceFileFieldEditor(String name,
String labelText,
org.eclipse.swt.widgets.Composite parent,
URI projectURI) |
FileSourceFileFieldEditor(String name,
String labelText,
int validationStrategy,
org.eclipse.swt.widgets.Composite parent,
URI projectURI) |
FileSourceFileFieldEditor(URI projectURI)
Constructor with the specified project URI.
|
Modifier and Type | Method and Description |
---|---|
protected String |
changePressed() |
protected boolean |
checkState() |
void |
setUseRelativeIfPossible(boolean useRelative)
Sets the editor to allow relative values.
|
getFile, setContentTypes, setFileExtensions, setFilterNames
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
public FileSourceFileFieldEditor()
public FileSourceFileFieldEditor(URI projectURI)
setUseRelativeIfPossible(boolean)
.projectURI
- the project URI to usepublic FileSourceFileFieldEditor(String name, String labelText, org.eclipse.swt.widgets.Composite parent, URI projectURI)
FileFieldEditor.FileFieldEditor(String, String, Composite)
,
FileSourceFileFieldEditor(URI)
public FileSourceFileFieldEditor(String name, String labelText, int validationStrategy, org.eclipse.swt.widgets.Composite parent, URI projectURI)
FileFieldEditor.FileFieldEditor(String, String, boolean, int,
Composite)
,
FileSourceFileFieldEditor(URI)
public void setUseRelativeIfPossible(boolean useRelative)
useRelative
- the new valueprotected String changePressed()
changePressed
in class ExtendedFileFieldEditor
FileFieldEditor.changePressed()
protected boolean checkState()
checkState
in class org.eclipse.jface.preference.FileFieldEditor
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a