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 booleanCan always edit if correct element: KStringProp.protected org.eclipse.jface.viewers.CellEditorgetCellEditor(Object element) Gets the cell editor.protected ObjectGets the value to edit.protected voidinitializeCellEditorValue(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.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
protected void initializeCellEditorValue(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.ViewerCell cell) Initialize the editor.- Overrides:
initializeCellEditorValuein 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:
getCellEditorin classorg.eclipse.jface.viewers.EditingSupport
canEdit
Can always edit if correct element: KStringProp.- Specified by:
canEditin classorg.eclipse.jface.viewers.EditingSupport
getValue
Gets the value to edit.- Specified by:
getValuein classorg.eclipse.jface.viewers.EditingSupport
setValue
Sets the value after editing.- Specified by:
setValuein classorg.eclipse.jface.viewers.EditingSupport
isValid
Checks for validity.- Specified by:
isValidin interfaceorg.eclipse.jface.viewers.ICellEditorValidator