Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Hall2008-02-13 19:58:01 +0000
committerMatthew Hall2008-02-13 19:58:01 +0000
commit8c03dfccc567031312e5f024f6c907e98c118c6b (patch)
tree5345b3b74febe9ad13a55a3b55315b10dcc46cd1 /bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/value
parent9bf407553603cd3d404e76f982b643007e9ae659 (diff)
downloadeclipse.platform.ui-8c03dfccc567031312e5f024f6c907e98c118c6b.tar.gz
eclipse.platform.ui-8c03dfccc567031312e5f024f6c907e98c118c6b.tar.xz
eclipse.platform.ui-8c03dfccc567031312e5f024f6c907e98c118c6b.zip
FIXED - bug 208332: [DataBinding] Accept element types in Observables factory methods
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208332
Diffstat (limited to 'bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/value')
-rw-r--r--bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/value/AbstractObservableValue.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/value/AbstractObservableValue.java b/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/value/AbstractObservableValue.java
index be67adc4f34..79068e06755 100644
--- a/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/value/AbstractObservableValue.java
+++ b/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/value/AbstractObservableValue.java
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* Brad Reynolds - bug 164653
+ * Matthew Hall - bug 208332
*******************************************************************************/
package org.eclipse.core.databinding.observable.value;
@@ -71,16 +72,21 @@ abstract public class AbstractObservableValue extends AbstractObservable impleme
}
public final Object getValue() {
- ObservableTracker.getterCalled(this);
+ getterCalled();
return doGetValue();
}
abstract protected Object doGetValue();
public boolean isStale() {
+ getterCalled();
return false;
}
+ private void getterCalled() {
+ ObservableTracker.getterCalled(this);
+ }
+
protected void fireChange() {
throw new RuntimeException(
"fireChange should not be called, use fireValueChange() instead"); //$NON-NLS-1$

Back to the top