| [news.eclipse.platform.swt] Re: question re. TableTree-viewer's refresh behavior |
Hi,
first of all TableTreeViewer should have been deprecated in 3.2 and you should better use a TreeViewer instead.
If you only want to refresh a specific part of your tree then you could use refresh(Object,boolean) and not the whole tree gets refershed on the other hand TreeViewer tries to preserve the selection which doesn't work for you it seems.
I guess you are recreating *all* model elements from scratch everytime your content-providers getElements-method is called. If that's the case TreeViewer/TableTreeViewer is not able to preservet the selection and you need this your own.
Michael