Package com.iizigo.text
Class TEditingSupport
java.lang.Object
org.eclipse.jface.viewers.EditingSupport
com.iizigo.text.TEditingSupport
- All Implemented Interfaces:
ICellEditorValidator
Editing support for ID column and KStrings in columns with index larger than zero.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Can always edit if correct element: KStringProp.protected CellEditor
getCellEditor
(Object element) Gets the cell editor.protected Object
Gets the value to edit.protected void
initializeCellEditorValue
(CellEditor cellEditor, ViewerCell cell) Initialize the editor.Checks for validity.protected void
Sets the value after editing.Methods inherited from class org.eclipse.jface.viewers.EditingSupport
getViewer, saveCellEditorValue
Method Details
initializeCellEditorValue
Initialize the editor.- Overrides:
initializeCellEditorValue
in classEditingSupport
- Parameters:
cellEditor
- The cell editor.cell
- The cell the editor is working for.
getCellEditor
Gets the cell editor.- Specified by:
getCellEditor
in classEditingSupport
canEdit
Can always edit if correct element: KStringProp.- Specified by:
canEdit
in classEditingSupport
getValue
Gets the value to edit.- Specified by:
getValue
in classEditingSupport
setValue
Sets the value after editing.- Specified by:
setValue
in classEditingSupport
isValid
Checks for validity.- Specified by:
isValid
in interfaceICellEditorValidator