Class EMFEnumComboBoxEditingSupport<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.EnumComboBoxEditingSupport<T,V>
com.amalgamasimulation.desktop.binding.editingsupports.EMFEnumComboBoxEditingSupport<T,V>
- Type Parameters:
T- type of row valueV- type of column value (cell value)
Class is used to select from a enum of values in a cell.
Creates a combo box in the cell where a new cell value can be selected
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
ConstructorsConstructorDescriptionEMFEnumComboBoxEditingSupport(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 featureMethods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.EnumComboBoxEditingSupport
setElementsMethods inherited from class com.amalgamasimulation.desktop.binding.editingsupports.ComboBoxEditingSupport
createComboBoxCellEditor, enableNullElement, getCellEditorInternal, 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
-
EMFEnumComboBoxEditingSupport
public EMFEnumComboBoxEditingSupport(org.eclipse.jface.viewers.ColumnViewer viewer, org.eclipse.swt.widgets.Composite parent)
-
-
Method Details
-
editedFeature
public EMFEnumComboBoxEditingSupport<T,V> editedFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Set up the feature- Parameters:
feature- container reference to value- Returns:
- this object
-