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

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

>

>]]>