Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableTreeViewer collapses after change in model
TableTreeViewer collapses after change in model [message #451206] Thu, 24 February 2005 10:06 Go to next message
Eclipse UserFriend
Dear all,

I have a TableTreeViewer which contains a model representing a tree.

If I have a root node with two children (A & B) & B as to children (C &
D), we would have a TableTree looking like:

[-]Root
A
[-]B
C
D

where Root and B are collapsable. If the model changes such that A now has
a child, for some reason all of the tree collapses. I think its because I
am calling tableTreeViewer.refresh() rather than some sort of targetted
refresh() after the model change has occured.

How do I leave the rest of the TableTrees expansion state intact while
only revealing the new child?

Thanks,
Raj
Re: TableTreeViewer collapses after change in model [message #451311 is a reply to message #451206] Fri, 25 February 2005 08:09 Go to previous message
Eclipse UserFriend
Originally posted by: hoeggerand.post.ch

Dear Raj
use the refresh(TreeTableItem A).
or set "TableTreeViewer.setExpandedState(TreeTableItem A, boolean
expanded);" .
Hope it helps...

Rajeev Sudra schrieb:
> Dear all,
>
> I have a TableTreeViewer which contains a model representing a tree.
>
> If I have a root node with two children (A & B) & B as to children (C &
> D), we would have a TableTree looking like:
>
> [-]Root
> A
> [-]B
> C
> D
>
> where Root and B are collapsable. If the model changes such that A now
> has a child, for some reason all of the tree collapses. I think its
> because I am calling tableTreeViewer.refresh() rather than some sort of
> targetted refresh() after the model change has occured.
>
> How do I leave the rest of the TableTrees expansion state intact while
> only revealing the new child?
>
> Thanks,
> Raj
>
>
Previous Topic:SWT display listener
Next Topic:Toggle Lists
Goto Forum:
  


Current Time: Wed Jul 23 08:30:39 EDT 2025

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

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

Back to the top