Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » JFace Databinding firePropertyChange never ends
JFace Databinding firePropertyChange never ends [message #554885] Tue, 24 August 2010 15:44
Arash Missing name is currently offline Arash Missing nameFriend
Messages: 2
Registered: August 2010
Junior Member
Hi,

I have a problem with jFace Databiding (firePropertyChange).

By changing the property, I do the follows:

Quote:

public void setProp(VSDomainEntry prop) {
VSDomainEntry oldValue = this.prop;
this.prop= prop;
changeSupport.firePropertyChange("prop", oldValue, this.hspEigen);


changeSupport.firePropertyChange("prop2Items", null, null);
}


The problem is: It calls the function getProp2Items() more than once, sometimes over 4000 times.

This is the Binding of property prop2:
Quote:

comboViewer.setContentProvider(ArrayContentProvider.getInsta nce());
comboViewer.setLabelProvider(new LabelProvider()
{
@Override
public String getText(Object element)
{
return ((VSDomainEntry) element).getText();
}
});
comboViewer.setContentProvider(new ObservableListContentProvider());
comboViewer.setInput(BeansObservables.observeList(bean, prop2Items));
dbc.bindValue(ViewersObservables.observeSingleSelection(comb oViewer), BeansObservables.observeValue(bean, prop2), null, null);



Anyone an idea?
Previous Topic:treeviewer getchildren error sometimes
Next Topic:Databinding + TableViewer + nested lists of objects
Goto Forum:
  


Current Time: Fri Apr 26 19:19:51 GMT 2024

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

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

Back to the top