[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Observing EList size
|
- From: pierrefrancis@xxxxxx (Pierre Francis Roy)
- Date: Fri, 11 Sep 2009 17:40:49 +0000 (UTC)
- Newsgroups: eclipse.tools.emf
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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