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 07:05 Go to next message
Eclipse User
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 10:11 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika Irvine
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 10:13 Go to previous messageGo to next message
svic4ever is currently offline svic4ever
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 12:07 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
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: Sat Jul 26 05:25:29 EDT 2014

Powered by FUDForum. Page generated in 0.01980 seconds