Class AbstractDialogCellEditor

java.lang.Object
org.eclipse.jface.viewers.CellEditor
org.csstudio.opibuilder.visualparts.AbstractDialogCellEditor
Direct Known Subclasses:
ActionsCellEditor, ColorMapCellEditor, ComplexDataCellEditor, FilePathCellDialogEditorWithFilter, FilePathCellEditor, JavaScriptCellEditor, MacrosCellEditor, MultiLineTextCellEditor, OPIColorCellEditor, OPIFontCellEditor, PointListCellEditor, PythonScriptCellEditor, RGBColorCellEditor, RulesInputCellEditor, ScriptsInputCellEditor, StringListCellEditor, StringMapCellEditor, StringTableCellEditor

public abstract class AbstractDialogCellEditor extends CellEditor
An abstract cell editor, which values should be edited by a custom Dialog.
  • Constructor Details

    • AbstractDialogCellEditor

      public AbstractDialogCellEditor(Composite parent, String title)
      Creates a new string cell editor parented under the given control. The cell editor value is a Map of Strings.
      Parameters:
      parent - The parent table.
      title - The title for this CellEditor
  • Method Details

    • activate

      public void activate()
      Overrides:
      activate in class CellEditor
    • openDialog

      protected abstract void openDialog(Shell parentShell, String dialogTitle)
      Creates and opens the Dialog.
      Parameters:
      parentShell - The parent shell for the dialog
      dialogTitle - The title for the dialog
    • shouldFireChanges

      protected abstract boolean shouldFireChanges()
      Returns, if CellEditor.fireApplyEditorValue() should be called.
      Returns:
      true if CellEditor.fireApplyEditorValue() should be called, false otherwise
    • createControl

      protected final Control createControl(Composite parent)
      Specified by:
      createControl in class CellEditor
    • doSetFocus

      protected void doSetFocus()
      Specified by:
      doSetFocus in class CellEditor