Class EmfObservablesDelegate
java.lang.Object
com._1c.g5.v8.dt.common.ui.databinding.EmfObservablesDelegate
Utility class that delegates observables creation on
EMFProperties or EMFEditObservables based on
given values.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.emf.ecore.EStructuralFeaturegetLastFeature(org.eclipse.emf.databinding.FeaturePath featurePath) Get last feature from feature path.static org.eclipse.core.databinding.observable.value.IObservableValueobserveGroup(List<org.eclipse.emf.ecore.EObject> modelGroup, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableValuethat will observe group ofEObjectfor changes for the same feature, that is located on given feature path.static org.eclipse.core.databinding.observable.list.IObservableListobserveList(Object model, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableListthat will observe model list feature, that is located on given feature path.static org.eclipse.core.databinding.observable.list.IObservableListobserveList(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableListthat will observe singleEObjectlist feature, that is located on given feature path.static org.eclipse.core.databinding.observable.map.IObservableMapobserveMap(Object model, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableValuethat will observe model multi-feature, that is located on given feature path.static org.eclipse.core.databinding.observable.map.IObservableMapobserveMap(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EStructuralFeature feature) CreateIObservableValuethat will observe singleEObjectmulti-feature, that is located on given feature path.static org.eclipse.core.databinding.observable.value.IObservableValueobserveValue(Object model, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableValuethat will observe model feature, that is located on given feature path.static org.eclipse.core.databinding.observable.value.IObservableValueobserveValue(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableValuethat will observe singleEObjectfeature, that is located on given feature path.
-
Method Details
-
observeValue
public static org.eclipse.core.databinding.observable.value.IObservableValue observeValue(Object model, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableValuethat 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) CreateIObservableValuethat will observe singleEObjectfeature, that is located on given feature path.- Parameters:
model-EObjectpath- 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) CreateIObservableValuethat will observe group ofEObjectfor changes for the same feature, that is located on given feature path.- Parameters:
modelGroup- group ofEObjectpath- feature path- Returns:
- observable value
-
observeList
public static org.eclipse.core.databinding.observable.list.IObservableList observeList(Object model, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableListthat will observe model list feature, that is located on given feature path.- Parameters:
model- modelpath- feature path- Returns:
- an
IObservableListthat 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) CreateIObservableListthat will observe singleEObjectlist feature, that is located on given feature path.- Parameters:
model-EObjectpath- feature path- Returns:
- observable value
-
observeMap
public static org.eclipse.core.databinding.observable.map.IObservableMap observeMap(Object model, org.eclipse.emf.databinding.FeaturePath path) CreateIObservableValuethat 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) CreateIObservableValuethat will observe singleEObjectmulti-feature, that is located on given feature path.- Parameters:
modelGroup- group ofEObjectpath- 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
-