Class TEditingSupport

java.lang.Object
org.eclipse.jface.viewers.EditingSupport
com.iizigo.text.TEditingSupport
All Implemented Interfaces:
org.eclipse.jface.viewers.ICellEditorValidator

public class TEditingSupport extends org.eclipse.jface.viewers.EditingSupport implements org.eclipse.jface.viewers.ICellEditorValidator
Editing support for ID column and KStrings in columns with index larger than zero.
Author:
Christopher Mindus
  • Method Details

    • initializeCellEditorValue

      protected void initializeCellEditorValue(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.ViewerCell cell)
      Initialize the editor.
      Overrides:
      initializeCellEditorValue in class org.eclipse.jface.viewers.EditingSupport
      Parameters:
      cellEditor - The cell editor.
      cell - The cell the editor is working for.
    • getCellEditor

      protected org.eclipse.jface.viewers.CellEditor getCellEditor(Object element)
      Gets the cell editor.
      Specified by:
      getCellEditor in class org.eclipse.jface.viewers.EditingSupport
    • canEdit

      protected boolean canEdit(Object element)
      Can always edit if correct element: KStringProp.
      Specified by:
      canEdit in class org.eclipse.jface.viewers.EditingSupport
    • getValue

      protected Object getValue(Object element)
      Gets the value to edit.
      Specified by:
      getValue in class org.eclipse.jface.viewers.EditingSupport
    • setValue

      protected void setValue(Object element, Object value)
      Sets the value after editing.
      Specified by:
      setValue in class org.eclipse.jface.viewers.EditingSupport
    • isValid

      public String isValid(Object value)
      Checks for validity.
      Specified by:
      isValid in interface org.eclipse.jface.viewers.ICellEditorValidator