[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Observing EList size

Dear,

I have the following code used for observing EMF object attributes for binding with table TableViewer columns.

IObservableMap[] map = new IObservableMap[3];
map[0] = EMFProperties.value(DairyStudioQualityPackage.Literals.SAMPLE_SET__DATE_CREATION).observeDetail(set);
map[1] = EMFProperties.value(DairyStudioQualityPackage.Literals.SAMPLE_SET__TYPE).observeDetail(set);
map[2] = EMFProperties.value(DairyStudioQualityPackage.Literals.SAMPLE_SET__SAMPLES).observeDetail(set);


In the third properties I'm currently observing an EList<Sample> object. In this case what I want to do is to observ the size of that EList (EList.size()).

Any idea how this can be done?

Thanks for helping me getting a good start with databinding.

Pierre Francis