Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » CheckBoxTableViewer(problem In Ui refresh of CheckBoxTableViewer)
icon5.gif  CheckBoxTableViewer [message #538293] Mon, 07 June 2010 09:30 Go to next message
Amit  is currently offline Amit Friend
Messages: 1
Registered: June 2010
Junior Member
Hi there,

I am trying to implement a CheckBoxTreeViewer and facing this problem.
On expand of a CheckBoxTreeViewer node, getChildren() method of provided ITreeContentProvider is called only for the first time.After that if you again collapse and expand that node, this method is not getting called again.
I am making some changes to a node so that its chaildren are different now but on expand it is still showing the same children which are no more valid.
What should I do so that viewer again make the use of provided ITreeContentProvider to get the children nodes of that tree node ?

Any ideas?
Re: CheckBoxTableViewer [message #538331 is a reply to message #538293] Mon, 07 June 2010 11:52 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 07/06/10 3:00 PM, Amit wrote:
> Hi there,
>
> I am trying to implement a CheckBoxTreeViewer and facing this problem.
> On expand of a CheckBoxTreeViewer node, getChildren() method of provided
> ITreeContentProvider is called only for the first time.After that if you
> again collapse and expand that node, this method is not getting called
> again.
> I am making some changes to a node so that its chaildren are different
> now but on expand it is still showing the same children which are no
> more valid.
> What should I do so that viewer again make the use of provided
> ITreeContentProvider to get the children nodes of that tree node ?
>
> Any ideas?
>

Try calling refresh() with that node

- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Previous Topic:[Databinding] Table cells to bean properties
Next Topic:[Fwd: Removing columns from viewers]
Goto Forum:
  


Current Time: Wed Nov 26 15:37:31 GMT 2014

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

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