Package org.eclipse.jface.viewers
Class EditingSupport
java.lang.Object
org.eclipse.jface.viewers.EditingSupport
- Direct Known Subclasses:
- ObservableValueEditingSupport,- PropertyEditingSupport
EditingSupport is the abstract superclass of the support for cell editing.
- Since:
- 3.3
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract booleanIs the cell editableprotected abstract CellEditorgetCellEditor(Object element) The editor to be shownprotected abstract ObjectGet the value to set to the editorprotected voidinitializeCellEditorValue(CellEditor cellEditor, ViewerCell cell) Initialize the editor.protected voidsaveCellEditorValue(CellEditor cellEditor, ViewerCell cell) Save the value of the cell editor back to the model.protected abstract voidSets the new value on the given element.
- 
Constructor Details- 
EditingSupport- Parameters:
- viewer- a new viewer
 
 
- 
- 
Method Details- 
getCellEditorThe editor to be shown- Parameters:
- element- the model element
- Returns:
- the CellEditor
 
- 
canEditIs the cell editable- Parameters:
- element- the model element
- Returns:
- true if editable
 
- 
getValueGet the value to set to the editor- Parameters:
- element- the model element
- Returns:
- the value shown
 
- 
setValueSets the new value on the given element. Note that implementers need to ensure thatgetViewer().update(element, null)or similar methods are called, either directly or through some kind of listener mechanism on the implementer's model, to cause the new value to appear in the viewer.Subclasses should overwrite. - Parameters:
- element- the model element
- value- the new value
 
- 
getViewer- Returns:
- the viewer this editing support works for
 
- 
initializeCellEditorValueInitialize the editor. Frameworks like Databinding can hook in here and provide a customized implementation.Standard customers should not overwrite this method but getValue(Object)- Parameters:
- cellEditor- the cell editor
- cell- the cell the editor is working for
 
- 
saveCellEditorValueSave the value of the cell editor back to the model. Frameworks like Databinding can hook in here and provide a customized implementation.Standard customers should not overwrite this method but setValue(Object, Object)- Parameters:
- cellEditor- the cell-editor
- cell- the cell the editor is working for
 
 
-