Class EmfObservablesDelegate
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.databinding.EmfObservablesDelegate
-
public final class EmfObservablesDelegate extends Object
Utility class that delegates observables creation onEMFProperties
orEMFEditObservables
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)
CreateIObservableValue
that will observe group ofEObject
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)
CreateIObservableList
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)
CreateIObservableList
that will observe singleEObject
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)
CreateIObservableValue
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)
CreateIObservableValue
that will observe singleEObject
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)
CreateIObservableValue
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)
CreateIObservableValue
that will observe singleEObject
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)
CreateIObservableValue
that will observe model feature, that is located on given feature path.- Parameters:
model
- modelpath
- 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)
CreateIObservableValue
that will observe singleEObject
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)
CreateIObservableValue
that will observe group ofEObject
for changes for the same feature, that is located on given feature path.- Parameters:
modelGroup
- group ofEObject
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)
CreateIObservableList
that will observe model list feature, that is located on given feature path.- Parameters:
model
- modelpath
- 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)
CreateIObservableList
that will observe singleEObject
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)
CreateIObservableValue
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)
CreateIObservableValue
that will observe singleEObject
multi-feature, that is located on given feature path.- Parameters:
modelGroup
- group ofEObject
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
-
-