Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » New Data binding: Missing event deregistration?
New Data binding: Missing event deregistration? [message #296317] Tue, 20 December 2005 09:25 Go to next message
Eclipse UserFriend
Hello,

I am just studying the new and very promising data binding
library. In org.eclipse.jface.databinding.internal.NestedUpdatableValue
I stumbled across the c'tor:

public NestedUpdatableValue(IDataBindingContext databindingContext,
final IUpdatableValue outerUpdatableValue,
Object feature, Class featureType) {
this.databindingContext = databindingContext;
this.feature = feature;
this.featureType = featureType;
updateInnerUpdatableValue(outerUpdatableValue);
IChangeListener outerChangeListener = new IChangeListener() {
public void handleChange(ChangeEvent changeEvent) {
Object oldValue = getValue();

updateInnerUpdatableValue(outerUpdatableValue);
fireChangeEvent(ChangeEvent.CHANGE, oldValue, getValue());
}
};
outerUpdatableValue.addChangeListener(outerChangeListener);
}

which registers an IChangeListener on its argument outerUpdatableValue.
According to usual resource management rules, the class
NestedUpdatableValue should ensure that removeChangeListener is
correctly envoked, but I could not find any corresponding
deregistration. Is this a bug or just my ignorance?

Greetings from Bremen,

Daniel Krügler
Re: New Data binding: Missing event deregistration? [message #296506 is a reply to message #296317] Thu, 22 December 2005 20:10 Go to previous message
Eclipse UserFriend
This looks like a bug. Thanks!

https://bugs.eclipse.org/bugs/show_bug.cgi?id=121946

Boris.

"Daniel Kr
Previous Topic:Customizing a product and preferenceCustomization -- do they work?
Next Topic:Saving some stuff concerning view
Goto Forum:
  


Current Time: Tue May 13 06:49:41 EDT 2025

Powered by FUDForum. Page generated in 0.02768 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top