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 booleanCan always edit if correct element: KStringProp.protected CellEditorgetCellEditor(Object element) Gets the cell editor.protected ObjectGets the value to edit.protected voidinitializeCellEditorValue(CellEditor cellEditor, ViewerCell cell) Initialize the editor.Checks for validity.protected voidSets the value after editing.Methods inherited from class org.eclipse.jface.viewers.EditingSupport
getViewer, saveCellEditorValue
Method Details
initializeCellEditorValue
Initialize the editor.- Overrides:
initializeCellEditorValuein classEditingSupport- Parameters:
cellEditor- The cell editor.cell- The cell the editor is working for.
getCellEditor
Gets the cell editor.- Specified by:
getCellEditorin classEditingSupport
canEdit
Can always edit if correct element: KStringProp.- Specified by:
canEditin classEditingSupport
getValue
Gets the value to edit.- Specified by:
getValuein classEditingSupport
setValue
Sets the value after editing.- Specified by:
setValuein classEditingSupport
isValid
Checks for validity.- Specified by:
isValidin interfaceICellEditorValidator