[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Does jface databinding support treeviewer?

Hi,

I have some questions regarding PersonGroupLabelProvider class implmentations:

1. For its constructor - PersonGroupLabelProvider(IObservableSet knownElements), what's the input - knownElements and how could I set it up? can it be a null. It looks like the class does not use it at all.

2. What does the following call of method BeansObservables.observeMaps() do to the argument - personPhoneKnownElements? I am trying to understand why we need to pass a new instance of WritableSet(). I guess it should be some kind of wrapper of the business model object - PersonPhoneGroups clas. Actually, it is not. Why? personPhoneKnownElements = new WritableSet();
IObservableMap[] maps = BeansObservables.observeMaps(
personPhoneKnownElements,
PersonPhone.class,
new String[] { "name", "email", "phone", "mobilePhone1", "mobilePhone2" } );


3. I have already implemented ITableLableProvider. Why do I need to implement PersonGroupLabelProvider instead, just use my original ITableLableProvider?

Using PersonGroupLabelProvider works for this test case. I just try convince myself that's the way I must do.

Thanks a lot for your help.