Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeItem not visible?
TreeItem not visible? [message #463445] Mon, 07 November 2005 12:05 Go to next message
Eclipse UserFriend
Originally posted by: OE_PROMOS.TERRA.ES

I am doing a filter for a tree.
I would like to put invisble some intems... Are there any one who knows a
way to do it? I can not do a dispose because then the item is destroyed.

Thanks
Re: TreeItem not visible? [message #463456 is a reply to message #463445] Mon, 07 November 2005 15:11 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
It is not possible to make a TreeItem invisible. You must dispose it to
remove it from the display.

However, your model and your Tree should be separate so this should not
destroy the data in your model. Have a look at the JFace ViewerSorter.

"Oscar Escudero" <OE_PROMOS@TERRA.ES> wrote in message
news:7968a2116b94d38d5fc7c6c2856674e9$1@www.eclipse.org...
>I am doing a filter for a tree.
> I would like to put invisble some intems... Are there any one who knows a
> way to do it? I can not do a dispose because then the item is destroyed.
>
> Thanks
>
Re: TreeItem not visible? [message #734351 is a reply to message #463456] Fri, 07 October 2011 14:13 Go to previous messageGo to next message
svic4ever is currently offline svic4everFriend
Messages: 7
Registered: October 2011
Junior Member
Another question regarding TreeItem: how do I know whether the TreeItem is visible to the user or not ? The TreeItem may be available in the TreeViewer but it is hidden as we scroll.
Re: TreeItem not visible? [message #735750 is a reply to message #734351] Wed, 12 October 2011 16:07 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
This can be done at the swt level, see
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet358.java
..

Grant


On 10/7/2011 10:13 AM, svic4ever wrote:
> Another question regarding TreeItem: how do I know whether the TreeItem
> is visible to the user or not ? The TreeItem may be available in the
> TreeViewer but it is hidden as we scroll.
Previous Topic:SWT Support for Windows CE 6.0 Core Images
Next Topic:SWT / Android
Goto Forum:
  


Current Time: Fri Nov 28 17:23:07 GMT 2014

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

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