diff options
Diffstat (limited to 'bundles/org.eclipse.core.databinding')
4 files changed, 19 insertions, 6 deletions
diff --git a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/list/DelegatingListProperty.java b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/list/DelegatingListProperty.java index 6dcde2667db..1a8e4b9ab57 100644 --- a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/list/DelegatingListProperty.java +++ b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/list/DelegatingListProperty.java @@ -70,6 +70,10 @@ public abstract class DelegatingListProperty extends ListProperty { return elementType; } + public IObservableList observe(Object source) { + return getDelegate(source).observe(source); + } + public IObservableList observe(Realm realm, Object source) { return getDelegate(source).observe(realm, source); } diff --git a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/map/DelegatingMapProperty.java b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/map/DelegatingMapProperty.java index eb92c04c3cc..372320ce91a 100644 --- a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/map/DelegatingMapProperty.java +++ b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/map/DelegatingMapProperty.java @@ -75,6 +75,10 @@ public abstract class DelegatingMapProperty extends MapProperty { return valueType; } + public IObservableMap observe(Object source) { + return getDelegate(source).observe(source); + } + public IObservableMap observe(Realm realm, Object source) { return getDelegate(source).observe(realm, source); } diff --git a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/set/DelegatingSetProperty.java b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/set/DelegatingSetProperty.java index 9cbcd177c14..554e9b2ba6b 100644 --- a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/set/DelegatingSetProperty.java +++ b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/set/DelegatingSetProperty.java @@ -69,6 +69,10 @@ public abstract class DelegatingSetProperty extends SetProperty { return elementType; } + public IObservableSet observe(Object source) { + return getDelegate(source).observe(source); + } + public IObservableSet observe(Realm realm, Object source) { return getDelegate(source).observe(realm, source); } diff --git a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/value/DelegatingValueProperty.java b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/value/DelegatingValueProperty.java index 5a35aad9f27..b1e75667cc2 100644 --- a/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/value/DelegatingValueProperty.java +++ b/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/property/value/DelegatingValueProperty.java @@ -71,23 +71,24 @@ public abstract class DelegatingValueProperty extends ValueProperty { return valueType; } + public IObservableValue observe(Object source) { + return getDelegate(source).observe(source); + } + public IObservableValue observe(Realm realm, Object source) { return getDelegate(source).observe(realm, source); } public IObservableList observeDetail(IObservableList master) { - return new ListDelegatingValueObservableList(master, - this); + return new ListDelegatingValueObservableList(master, this); } public IObservableMap observeDetail(IObservableSet master) { - return new SetDelegatingValueObservableMap(master, - this); + return new SetDelegatingValueObservableMap(master, this); } public IObservableMap observeDetail(IObservableMap master) { - return new MapDelegatingValueObservableMap(master, - this); + return new MapDelegatingValueObservableMap(master, this); } private class NullValueProperty extends SimpleValueProperty { |