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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEdit(java.lang.Object element)
Can always edit if correct element: KStringProp.protected org.eclipse.jface.viewers.CellEditor
getCellEditor(java.lang.Object element)
Gets the cell editor.protected java.lang.Object
getValue(java.lang.Object element)
Gets the value to edit.protected void
initializeCellEditorValue(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.ViewerCell cell)
Initialize the editor.java.lang.String
isValid(java.lang.Object value)
Checks for validity.protected void
setValue(java.lang.Object element, java.lang.Object value)
Sets the value after editing.
Method Detail
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
protected org.eclipse.jface.viewers.CellEditor getCellEditor(java.lang.Object element)
Gets the cell editor.- Specified by:
getCellEditor
in classorg.eclipse.jface.viewers.EditingSupport
canEdit
protected boolean canEdit(java.lang.Object element)
Can always edit if correct element: KStringProp.- Specified by:
canEdit
in classorg.eclipse.jface.viewers.EditingSupport
getValue
protected java.lang.Object getValue(java.lang.Object element)
Gets the value to edit.- Specified by:
getValue
in classorg.eclipse.jface.viewers.EditingSupport
setValue
protected void setValue(java.lang.Object element, java.lang.Object value)
Sets the value after editing.- Specified by:
setValue
in classorg.eclipse.jface.viewers.EditingSupport
isValid
public java.lang.String isValid(java.lang.Object value)
Checks for validity.- Specified by:
isValid
in interfaceorg.eclipse.jface.viewers.ICellEditorValidator