Class EmfAutoCompleteTextDataBinding<T extends org.eclipse.emf.ecore.EObject,V>

Type Parameters:
T - The type of EObject container
V - The type of the bound feature value
All Implemented Interfaces:
AbstractDataBinding<V>, AbstractSelectObjectDataBinding<V>, ContainerDataBinding<T,V>, EmfDataBinding<T,V>

public class EmfAutoCompleteTextDataBinding<T extends org.eclipse.emf.ecore.EObject,V> extends ContainerAutoCompleteTextDataBinding<T,V> implements EmfDataBinding<T,V>
A specialized auto-complete text binding implementation for EMF (Eclipse Modeling Framework) models. Extends ContainerAutoCompleteTextDataBinding and implements EmfDataBinding to provide EMF-specific auto-complete functionality.
Author:
Ionov Ivan
See Also:
  • Constructor Details

    • EmfAutoCompleteTextDataBinding

      public EmfAutoCompleteTextDataBinding()
  • Method Details

    • feature

      public EmfAutoCompleteTextDataBinding<T,V> feature(org.eclipse.emf.ecore.EStructuralFeature feature)
      Sets the EMF structural feature to bind to the text control. 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 EmfAutoCompleteTextDataBinding<T,V> nameFeature(org.eclipse.emf.ecore.EStructuralFeature nameFeature)
      Sets a separate EMF feature to use for displaying values in the auto-complete dropdown.
      Parameters:
      nameFeature - The EMF feature containing display names
      Returns:
      this binding instance for method chaining
    • createBinding

      public void createBinding()
      Description copied from interface: AbstractDataBinding
      Creates and initializes the data binding.
      Specified by:
      createBinding in interface AbstractDataBinding<T extends org.eclipse.emf.ecore.EObject>
      Overrides:
      createBinding in class ContainerAutoCompleteTextDataBinding<T extends org.eclipse.emf.ecore.EObject,V>
    • getFeature

      public org.eclipse.emf.ecore.EStructuralFeature getFeature()
      Description copied from interface: EmfDataBinding
      Gets the EMF structural feature being bound.
      Specified by:
      getFeature in interface EmfDataBinding<T extends org.eclipse.emf.ecore.EObject,V>
      Returns:
      The EStructuralFeature representing the model attribute being bound to the UI control. This defines which property of the EObject container is being observed/modified.