Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » TreeViewer with a ViewerFilter and empty nodes with expand buttons
TreeViewer with a ViewerFilter and empty nodes with expand buttons [message #328493] Mon, 26 May 2008 15:49 Go to next message
Eclipse UserFriend
Originally posted by: nn.nnn.com

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?
Re: TreeViewer with a ViewerFilter and empty nodes with expand buttons [message #328494 is a reply to message #328493] Mon, 26 May 2008 16:08 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=203950

exquisitus schrieb:
> 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?
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Plugins dowloader and manager
Next Topic:How to extend Eclipse Delete
Goto Forum:
  


Current Time: Fri Nov 08 22:04:30 GMT 2024

Powered by FUDForum. Page generated in 0.03664 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top