Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:06 Go to next message
Rajeev Sudra is currently offline Rajeev SudraFriend
Messages: 30
Registered: July 2009
Member
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 13: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: Sat Apr 20 00:08:46 GMT 2024

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

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

Back to the top