Class EMFAutoCompleteTextEditingSupport<T,V>
java.lang.Object
org.eclipse.jface.viewers.EditingSupport
com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.TextEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.AutoCompleteTextEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.EMFAutoCompleteTextEditingSupport<T,V>
- Type Parameters:
T- type of row valueV- type of column value (cell value)
Class is used to enable editing a table cell via a auto complete with a list of values.
After pressing CTRL-Space a combo box with a list of values appears
Used only with EMF (EObject).
- Author:
- Ionov Ivan
-
Field Summary
Fields inherited from class com.amalgamasimulation.desktop.binding.editingsupports.TextEditingSupport
selectionListener, strategy, valueExtractorFields inherited from class com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport
canEditCell, parent, viewer -
Constructor Summary
ConstructorsConstructorDescriptionEMFAutoCompleteTextEditingSupport(org.eclipse.jface.viewers.ColumnViewer viewer, org.eclipse.swt.widgets.Composite parent) -
Method Summary
Modifier and TypeMethodDescriptioneditedFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Set up the featurenameFeature(org.eclipse.emf.ecore.EStructuralFeature nameFeature) Set up the combo box elements naming.nameFeatures(org.eclipse.emf.ecore.EStructuralFeature idFeature, org.eclipse.emf.ecore.EStructuralFeature nameFeature) Methods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.AutoCompleteTextEditingSupport
enableNullElement, getCellEditorInternal, setComparator, setElements, setFilter, setNameExtractor, setValueInternalMethods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.TextEditingSupport
getValueInternal, setSelectionListener, setStrategy, setValueExtractorMethods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport
canEdit, canEditInternal, getCellEditor, getValue, initializeCellEditorValue, initializeCellEditorValueInternal, setCanEditCell, setValueMethods inherited from class org.eclipse.jface.viewers.EditingSupport
getViewer, saveCellEditorValue
-
Constructor Details
-
EMFAutoCompleteTextEditingSupport
public EMFAutoCompleteTextEditingSupport(org.eclipse.jface.viewers.ColumnViewer viewer, org.eclipse.swt.widgets.Composite parent)
-
-
Method Details
-
nameFeature
public EMFAutoCompleteTextEditingSupport<T,V> nameFeature(org.eclipse.emf.ecore.EStructuralFeature nameFeature) Set up the combo box elements naming. The structural feature value is used.- Parameters:
nameFeature- feature of the combo box elements whose value will be displayed in the combo box- Returns:
- this object
-
nameFeatures
public EMFAutoCompleteTextEditingSupport<T,V> nameFeatures(org.eclipse.emf.ecore.EStructuralFeature idFeature, org.eclipse.emf.ecore.EStructuralFeature nameFeature) -
editedFeature
public EMFAutoCompleteTextEditingSupport<T,V> editedFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Set up the feature- Parameters:
feature- container reference to value- Returns:
- this object
-