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

Dear Tom and Matthew,

Thanks for your interest in that problem. I think my situation is quite current. It applies in the case when you want to display the number of elements in master object in a master/details situation.

The solution of Matthew seem to me quite conveniant except for the fact that I'm not quite sure how to get an IObservableMap from that example instead of an IObservableValue.

Required by your solution:
IObservableValue listSize = new NotifyingListSizeProperty().observe(eList);


Required in my situation
IObservableMap[] map = new IObservableMap[3];
..
IEMFValueProperty prop = EMFProperties.value(DairyStudioQualityPackage.Literals.SAMPLE_SET__SAMPLES);
??? map[2] = new NotifyingListSizeProperty().observe(prop); ???


Thanks a lot guys