|
|
Re: TreeViewer with a ViewerFilter and empty nodes with expand buttons [message #328541 is a reply to message #328493] |
Tue, 27 May 2008 13:43 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
exquisitus wrote:
> I have a TreeViewer with a ViewerFilter. When a parent node has some
> children but they are all filtered out, it still gets the plus
> expand/collapse button. Is this normal behavior or can I fix this somehow?
>
As it stands right now, you have to embed knowledge of the viewer
filters into the content provider - not ideal, but it does work. It
helps to make the implementation of the filters an abstraction above
both JFace interfaces (ViewerFilter and ITreeContentProvider) to make
the sharing a little easier.
Actually, now that I think about it, I suppose that if the content
provider knows about the filters, you don't need ViewerFilter at all...
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.03664 seconds