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
ConstructorsConstructorDescriptionFontCellEditor(Composite parent) Creates a new font cell editor parented under the given control. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()protected ControlcreateControl(Composite parent) protected Objectprotected voidprotected voiddoSetValue(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:
activatein classCellEditor
-
createControl
- Specified by:
createControlin classCellEditor
-
doGetValue
- Specified by:
doGetValuein classCellEditor
-
doSetFocus
protected void doSetFocus()- Specified by:
doSetFocusin classCellEditor
-
doSetValue
- Specified by:
doSetValuein classCellEditor
-