diff options
author | Matthew Hall | 2009-01-25 00:38:12 +0000 |
---|---|---|
committer | Matthew Hall | 2009-01-25 00:38:12 +0000 |
commit | f7ab7f333c26e5d4e3c07697ac08e31c8f1a4a79 (patch) | |
tree | a6b164629ed1d6632c89e8ee60a5984fed0cc669 /bundles/org.eclipse.core.databinding/src/org/eclipse/core | |
parent | 2d5f9eb753c8ec51d82fa9a347f58ad02d95daa3 (diff) | |
download | eclipse.platform.ui-f7ab7f333c26e5d4e3c07697ac08e31c8f1a4a79.tar.gz eclipse.platform.ui-f7ab7f333c26e5d4e3c07697ac08e31c8f1a4a79.tar.xz eclipse.platform.ui-f7ab7f333c26e5d4e3c07697ac08e31c8f1a4a79.zip |
FIXED - bug 262302: [DataBinding] Delegating*Property.observe(Object) should let the delegate choose the default realm
https://bugs.eclipse.org/bugs/show_bug.cgi?id=262302
Diffstat (limited to 'bundles/org.eclipse.core.databinding/src/org/eclipse/core')
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 { |