Class FontCellEditor

java.lang.Object
org.eclipse.jface.viewers.CellEditor
org.csstudio.opibuilder.visualparts.FontCellEditor

public final class FontCellEditor extends CellEditor
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.

  • Constructor Details

    • FontCellEditor

      public FontCellEditor(Composite parent)
      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