Class EMFAutoCompleteComboBoxEditingSupport<T,V>
java.lang.Object
org.eclipse.jface.viewers.EditingSupport
com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.ComboBoxEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.AutoCompleteComboBoxEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.EMFAutoCompleteComboBoxEditingSupport<T,V>
- Type Parameters:
T- type of row valueV- type of column value (cell value)
public class EMFAutoCompleteComboBoxEditingSupport<T,V>
extends AutoCompleteComboBoxEditingSupport<T,V>
Class is used to enable editing a table cell via a combo box with a list of values and 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.ComboBoxEditingSupport
maxComboBoxElementsCount, nameExtractor, notSetLiteral, readOnlyComboBox, selectionListener, sortedElements, valueExtractorFields inherited from class com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport
canEditCell, parent, viewer -
Constructor Summary
ConstructorsConstructorDescriptionEMFAutoCompleteComboBoxEditingSupport(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.Methods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.AutoCompleteComboBoxEditingSupport
createAutoCompleteField, getCellEditorInternal, getContentAdapterMethods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.ComboBoxEditingSupport
createComboBoxCellEditor, enableNullElement, getValueInternal, initializeCellEditorValueInternal, setComparator, setElements, setElements, setFilter, setMaxComboBoxElementsCount, setNameExtractor, setSelectionListener, setValueExtractor, setValueInternal, sortAndFilterElementsMethods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.GenericEditingSupport
canEdit, canEditInternal, getCellEditor, getValue, initializeCellEditorValue, setCanEditCell, setValueMethods inherited from class org.eclipse.jface.viewers.EditingSupport
getViewer, saveCellEditorValue
-
Constructor Details
-
EMFAutoCompleteComboBoxEditingSupport
public EMFAutoCompleteComboBoxEditingSupport(org.eclipse.jface.viewers.ColumnViewer viewer, org.eclipse.swt.widgets.Composite parent)
-
-
Method Details
-
editedFeature
public EMFAutoCompleteComboBoxEditingSupport<T,V> editedFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Set up the feature- Parameters:
feature- container reference to value- Returns:
- this object
-
nameFeature
public EMFAutoCompleteComboBoxEditingSupport<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
-