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.
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
>
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.
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.