Package com.iizigo.text
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 Summary
Modifier and TypeMethodDescriptionprotected boolean
Can always edit if correct element: KStringProp.protected org.eclipse.jface.viewers.CellEditor
getCellEditor
(Object element) Gets the cell editor.protected Object
Gets the value to edit.protected void
initializeCellEditorValue
(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.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
protected void initializeCellEditorValue(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.ViewerCell cell) Initialize the editor.- Overrides:
initializeCellEditorValue
in classorg.eclipse.jface.viewers.EditingSupport
- Parameters:
cellEditor
- The cell editor.cell
- The cell the editor is working for.
getCellEditor
Gets the cell editor.- Specified by:
getCellEditor
in classorg.eclipse.jface.viewers.EditingSupport
canEdit
Can always edit if correct element: KStringProp.- Specified by:
canEdit
in classorg.eclipse.jface.viewers.EditingSupport
getValue
Gets the value to edit.- Specified by:
getValue
in classorg.eclipse.jface.viewers.EditingSupport
setValue
Sets the value after editing.- Specified by:
setValue
in classorg.eclipse.jface.viewers.EditingSupport
isValid
Checks for validity.- Specified by:
isValid
in interfaceorg.eclipse.jface.viewers.ICellEditorValidator