Class EmfObservablesDelegate


  • public final class EmfObservablesDelegate
    extends Object
    Utility class that delegates observables creation on EMFProperties or EMFEditObservables based on given values.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.eclipse.emf.ecore.EStructuralFeature getLastFeature​(org.eclipse.emf.databinding.FeaturePath featurePath)
      Get last feature from feature path.
      static org.eclipse.core.databinding.observable.value.IObservableValue observeGroup​(List<org.eclipse.emf.ecore.EObject> modelGroup, org.eclipse.emf.databinding.FeaturePath path)
      Create IObservableValue that will observe group of EObject for changes for the same feature, that is located on given feature path.
      static org.eclipse.core.databinding.observable.list.IObservableList observeList​(Object model, org.eclipse.emf.databinding.FeaturePath path)
      Create IObservableList that will observe model list feature, that is located on given feature path.
      static org.eclipse.core.databinding.observable.list.IObservableList observeList​(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.databinding.FeaturePath path)
      Create IObservableList that will observe single EObject list feature, that is located on given feature path.
      static org.eclipse.core.databinding.observable.map.IObservableMap observeMap​(Object model, org.eclipse.emf.databinding.FeaturePath path)
      Create IObservableValue that will observe model multi-feature, that is located on given feature path.
      static org.eclipse.core.databinding.observable.map.IObservableMap observeMap​(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature)
      Create IObservableValue that will observe single EObject multi-feature, that is located on given feature path.
      static org.eclipse.core.databinding.observable.value.IObservableValue observeValue​(Object model, org.eclipse.emf.databinding.FeaturePath path)
      Create IObservableValue that will observe model feature, that is located on given feature path.
      static org.eclipse.core.databinding.observable.value.IObservableValue observeValue​(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.databinding.FeaturePath path)
      Create IObservableValue that will observe single EObject feature, that is located on given feature path.
    • Method Detail

      • observeValue

        public static org.eclipse.core.databinding.observable.value.IObservableValue observeValue​(Object model,
                                                                                                  org.eclipse.emf.databinding.FeaturePath path)
        Create IObservableValue that will observe model feature, that is located on given feature path.
        Parameters:
        model - model
        path - feature path
        Returns:
        observable value
      • observeValue

        public static org.eclipse.core.databinding.observable.value.IObservableValue observeValue​(org.eclipse.emf.ecore.EObject model,
                                                                                                  org.eclipse.emf.databinding.FeaturePath path)
        Create IObservableValue that will observe single EObject feature, that is located on given feature path.
        Parameters:
        model - EObject
        path - feature path
        Returns:
        observable value
      • observeGroup

        public static org.eclipse.core.databinding.observable.value.IObservableValue observeGroup​(List<org.eclipse.emf.ecore.EObject> modelGroup,
                                                                                                  org.eclipse.emf.databinding.FeaturePath path)
        Create IObservableValue that will observe group of EObject for changes for the same feature, that is located on given feature path.
        Parameters:
        modelGroup - group of EObject
        path - feature path
        Returns:
        observable value
      • observeList

        public static org.eclipse.core.databinding.observable.list.IObservableList observeList​(Object model,
                                                                                               org.eclipse.emf.databinding.FeaturePath path)
        Create IObservableList that will observe model list feature, that is located on given feature path.
        Parameters:
        model - model
        path - feature path
        Returns:
        an IObservableList that observes the given list feature
      • observeList

        public static org.eclipse.core.databinding.observable.list.IObservableList observeList​(org.eclipse.emf.ecore.EObject model,
                                                                                               org.eclipse.emf.databinding.FeaturePath path)
        Create IObservableList that will observe single EObject list feature, that is located on given feature path.
        Parameters:
        model - EObject
        path - feature path
        Returns:
        observable value
      • observeMap

        public static org.eclipse.core.databinding.observable.map.IObservableMap observeMap​(Object model,
                                                                                            org.eclipse.emf.databinding.FeaturePath path)
        Create IObservableValue that will observe model multi-feature, that is located on given feature path.
        Parameters:
        model -
        path -
        Returns:
      • observeMap

        public static org.eclipse.core.databinding.observable.map.IObservableMap observeMap​(org.eclipse.emf.ecore.EObject model,
                                                                                            org.eclipse.emf.ecore.EStructuralFeature feature)
        Create IObservableValue that will observe single EObject multi-feature, that is located on given feature path.
        Parameters:
        modelGroup - group of EObject
        path - feature path
        Returns:
        observable value
      • getLastFeature

        public static org.eclipse.emf.ecore.EStructuralFeature getLastFeature​(org.eclipse.emf.databinding.FeaturePath featurePath)
        Get last feature from feature path.
        Parameters:
        featurePath - feature path
        Returns:
        last feature