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