DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page JFace ViewerFilter -- Hide parent when all children are filtered
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2009
Default JFace ViewerFilter -- Hide parent when all children are filtered - 07-07-2009, 06:10 PM

Given a TreeViewer and ViewerFilter, is there an easy way to hide nodes that have all their children filtered out?

For example:

nodeA
--subNode1
--subNode2
nodeB
--subNode3
---subsubx
---subsuby
---subsubz
--subNode4
--subNode5
If the user selects the ViewerFilter that filters out all "subsub*" children, the tree still displays "--subNode3".
Reply With Quote
Reply

Tags
eclipse, jface, treeviewer, viewerfilter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jface dialogs.. can we do anything outside? iwtb Eclipse 3 07-02-2009 01:40 PM
dragging an image with SWT/JFace bayval Eclipse 1 06-11-2009 01:20 AM
How to hide a sub menu ? oren.gurfinkel Eclipse 0 12-24-2008 10:57 AM
Tree column hide merovingian Eclipse 0 08-20-2008 12:35 AM
TableViewer and ViewerFilter matt.blye@gmail.com Eclipse 0 08-08-2008 02:01 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com