|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.preference.FieldEditor | +--org.eclipse.jface.preference.FontFieldEditor | +--org.eclipse.jface.text.PropagatingFontFieldEditor
This font field editor implements chaining between a source preference store and a target preference store. Any time the source preference store changes, the change is propagated to the target store. Propagation means that the actual value stored in the source store is set as default value in the target store. If the target store does not contain a value other than the default value, the new default value is immediately effective.
FontFieldEditor
Field Summary |
Fields inherited from class org.eclipse.jface.preference.FieldEditor |
HORIZONTAL_GAP, IS_VALID, VALUE |
Constructor Summary | |
PropagatingFontFieldEditor(String name,
String labelText,
Composite parent,
String defaultFontLabel)
Creates a new font field editor with the given parameters. |
Method Summary | |
protected void |
doLoad()
Initializes this field editor with the preference value from the preference store. |
protected void |
doLoadDefault()
Initializes this field editor with the default preference value from the preference store. |
static void |
startPropagate(IPreferenceStore source,
String sourceKey,
IPreferenceStore target,
String targetKey)
Starts the propagation of the font preference stored in the source preference store under the source key to the target preference store using the target preference key. |
Methods inherited from class org.eclipse.jface.preference.FontFieldEditor |
adjustForNumColumns, applyFont, doFillIntoGrid, doStore, getChangeControl, getNumberOfControls, getPreferredPreviewHeight, getPreviewControl, getValueControl, setChangeButtonText, setToDefault |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropagatingFontFieldEditor(String name, String labelText, Composite parent, String defaultFontLabel)
name
- the editor's namelabelText
- the text shown as editor descriptionparent
- the editor's parent widgetdefaultFontLabel
- the label shown in the editor value field when the default value should be takenMethod Detail |
protected void doLoad()
FieldEditor
Subclasses must implement this method to properly initialize the field editor.
doLoad
in class FontFieldEditor
protected void doLoadDefault()
FieldEditor
Subclasses must implement this method to properly initialize the field editor.
doLoadDefault
in class FontFieldEditor
public static void startPropagate(IPreferenceStore source, String sourceKey, IPreferenceStore target, String targetKey)
source
- the source preference storesourceKey
- the key to be used in the source preference storetarget
- the target preference storetargetKey
- the key to be used in the target preference store
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |