Class EmfComboboxDataBinding<T extends org.eclipse.emf.ecore.EObject,V>
java.lang.Object
com.amalgamasimulation.desktop.binding.widgets.AbstractComboboxDataBinding<V>
com.amalgamasimulation.desktop.binding.widgets.ContainerComboboxDataBinding<T,V>
com.amalgamasimulation.desktop.binding.widgets.EmfComboboxDataBinding<T,V>
- Type Parameters:
T- The type of EObject containerV- The type of the bound feature value
- All Implemented Interfaces:
AbstractDataBinding<V>,AbstractSelectObjectDataBinding<V>,ContainerDataBinding<T,,V> EmfDataBinding<T,V>
public class EmfComboboxDataBinding<T extends org.eclipse.emf.ecore.EObject,V>
extends ContainerComboboxDataBinding<T,V>
implements EmfDataBinding<T,V>
A specialized combo box binding implementation for EMF (Eclipse Modeling Framework) models.
Extends
ContainerComboboxDataBinding and implements EmfDataBinding to provide
EMF-specific combo box functionality.- Author:
- Ionov Ivan
- See Also:
-
Field Summary
Fields inherited from class com.amalgamasimulation.desktop.binding.widgets.ContainerComboboxDataBinding
containerObservable, handler, modelChangeListener, nameExtractor, valueExtractorFields inherited from class com.amalgamasimulation.desktop.binding.widgets.AbstractComboboxDataBinding
canBeNull, comboViewer, comparator, contentProvider, controlDecoration, filter, values -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates and initializes the data binding.feature(org.eclipse.emf.ecore.EStructuralFeature feature) Sets the EMF structural feature to bind to the combo box.org.eclipse.emf.ecore.EStructuralFeatureGets the EMF structural feature being bound.protected org.eclipse.jface.viewers.IBaseLabelProviderCreates an appropriate label provider based on configuration.nameFeature(org.eclipse.emf.ecore.EStructuralFeature nameFeature) Sets the EMF feature to use for displaying item labels.Methods inherited from class com.amalgamasimulation.desktop.binding.widgets.ContainerComboboxDataBinding
containerObservable, doAction, executeToModel, executeToTarget, getContainer, getValue, handler, nameExtractor, valueExtractorMethods inherited from class com.amalgamasimulation.desktop.binding.widgets.AbstractComboboxDataBinding
canBeNull, enable, setComparator, setControl, setFilter, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.desktop.binding.widgets.AbstractDataBinding
createControlDecoration, doAction, enable, executeToModel, executeToTarget, getValue, setControlMethods inherited from interface com.amalgamasimulation.desktop.binding.widgets.ContainerDataBinding
getContainer
-
Constructor Details
-
EmfComboboxDataBinding
public EmfComboboxDataBinding()
-
-
Method Details
-
feature
Sets the EMF structural feature to bind to the combo box. Configures automatic value extraction and command-based updates.- Parameters:
feature- The EMF structural feature to bind- Returns:
- this binding instance for method chaining
-
nameFeature
public EmfComboboxDataBinding<T,V> nameFeature(org.eclipse.emf.ecore.EStructuralFeature nameFeature) Sets the EMF feature to use for displaying item labels.- Parameters:
nameFeature- The EMF feature containing display names- Returns:
- this binding instance for method chaining
-
getLabelProvider
protected org.eclipse.jface.viewers.IBaseLabelProvider getLabelProvider()Creates an appropriate label provider based on configuration. If nameFeature is specified, creates anObservableMapLabelProviderthat automatically updates when feature values change.- Overrides:
getLabelProviderin classContainerComboboxDataBinding<T extends org.eclipse.emf.ecore.EObject,V> - Returns:
- Configured label provider instance
-
createBinding
public void createBinding()Description copied from interface:AbstractDataBindingCreates and initializes the data binding.- Specified by:
createBindingin interfaceAbstractDataBinding<T extends org.eclipse.emf.ecore.EObject>- Overrides:
createBindingin classContainerComboboxDataBinding<T extends org.eclipse.emf.ecore.EObject,V>
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()Description copied from interface:EmfDataBindingGets the EMF structural feature being bound.- Specified by:
getFeaturein interfaceEmfDataBinding<T extends org.eclipse.emf.ecore.EObject,V> - Returns:
- The
EStructuralFeaturerepresenting the model attribute being bound to the UI control. This defines which property of the EObject container is being observed/modified.
-