Class FontCellEditor
java.lang.Object
org.eclipse.jface.viewers.CellEditor
org.csstudio.opibuilder.visualparts.FontCellEditor
A table cell editor for values of type Font.
There is already a FontCellEditor, but when activated, it adds another step where it only displays a small color patch, the Font indices and then a button to start the dialog.
That's a waste of real estate, adds another 'click' to the editing of fonts, plus the overall layout was really poor on Mac OS X, where the button didn't fully show.
This implementation, based on the CheckboxCellEditor sources, jumps right into the font dialog.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor
CellEditor.LayoutData
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.CellEditor
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO
-
Constructor Summary
ConstructorDescriptionFontCellEditor
(Composite parent) Creates a new font cell editor parented under the given control. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
protected Control
createControl
(Composite parent) protected Object
protected void
protected void
doSetValue
(Object value) Methods inherited from class org.eclipse.jface.viewers.CellEditor
activate, addListener, addPropertyChangeListener, create, deactivate, deactivate, dependsOnExternalFocusListener, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getDoubleClickTimeout, getErrorMessage, getLayoutData, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCorrect, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, keyReleaseOccured, markDirty, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged
-
Constructor Details
-
FontCellEditor
Creates a new font cell editor parented under the given control. The cell editor value is an SWT Font value.- Parameters:
parent
- The parent table.
-
-
Method Details
-
activate
public void activate()- Overrides:
activate
in classCellEditor
-
createControl
- Specified by:
createControl
in classCellEditor
-
doGetValue
- Specified by:
doGetValue
in classCellEditor
-
doSetFocus
protected void doSetFocus()- Specified by:
doSetFocus
in classCellEditor
-
doSetValue
- Specified by:
doSetValue
in classCellEditor
-