public final class EncodingFieldEditor extends AbstractEncodingFieldEditor
This class may be instantiated; it is not intended to be subclassed.
HORIZONTAL_GAP, IS_VALID, VALUE| Constructor and Description |
|---|
EncodingFieldEditor(String name,
String labelText,
Composite parent)
Create a new instance of the receiver on the preference called name
with a label of labelText.
|
EncodingFieldEditor(String name,
String labelText,
String groupTitle,
Composite parent)
Creates a new encoding field editor with the given preference name, label
and parent.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStore()
Stores the preference value from this field editor into
the preference store.
|
protected String |
getStoredValue()
Returns the value that is currently stored for the encoding.
|
adjustForNumColumns, createEncodingGroup, defaultButtonText, doFillIntoGrid, doLoad, doLoadDefault, findDefaultEncoding, getDefaultEnc, getNumberOfControls, getSelectedEncoding, hasSameEncoding, isValid, refreshValidState, setEnabled, setGroupTitle, setPreferenceStoreapplyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPage, getPreferenceName, getPreferencePage, getPreferenceStore, init, load, loadDefault, presentsDefaultValue, setButtonLayoutData, setFocus, setLabelText, setPage, setPreferenceName, setPreferencePage, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage, storepublic EncodingFieldEditor(String name, String labelText, String groupTitle, Composite parent)
name - the name of the preference this field editor works onlabelText - the label text of the field editorgroupTitle - the title for the field editor's control. If groupTitle is
null the control will be unlabelled
(by default a Composite instead of a Group.parent - the parent of the field editor's controlAbstractEncodingFieldEditor.setGroupTitle(String)protected String getStoredValue()
AbstractEncodingFieldEditorgetStoredValue in class AbstractEncodingFieldEditorprotected void doStore()
FieldEditorSubclasses must implement this method to save the entered value into the preference store.
doStore in class FieldEditor
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.