Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Reset DeferredTreeContentManager(Is it possible to reset a DeferredTreeContentManager)
icon5.gif  Reset DeferredTreeContentManager [message #898401] Thu, 26 July 2012 10:31 Go to next message
Thomas Klöber is currently offline Thomas Klöber
Messages: 10
Registered: June 2012
Junior Member
I have a TreeViewer with a DeferredTreeContentManager which works quite nicely.
However, I need to implement a Reload Action that resets the loaded tree nodes and loads them again (from the backend) when I expand them.

Is that possible and if so how would I do it?

TIA,

Thomas
Re: Reset DeferredTreeContentManager [message #898423 is a reply to message #898401] Thu, 26 July 2012 11:20 Go to previous messageGo to next message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi Thomas,

treeViwer.refresh() doesn't work for that?
Re: Reset DeferredTreeContentManager [message #898440 is a reply to message #898423] Thu, 26 July 2012 11:48 Go to previous messageGo to next message
Thomas Klöber is currently offline Thomas Klöber
Messages: 10
Registered: June 2012
Junior Member
Hi Jab,

it only redraws the tree but it doesn't reload the nodes from the backend...

[Updated on: Thu, 26 July 2012 11:48]

Report message to a moderator

Re: Reset DeferredTreeContentManager [message #898475 is a reply to message #898440] Thu, 26 July 2012 12:52 Go to previous message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Are you sure? Refresh is about reloading all data from the input model.
I have just tried that an after calling refresh() the expanded parent elements get pending...

[Updated on: Thu, 26 July 2012 12:58]

Report message to a moderator

Previous Topic:New TreeItem is not updating in UI
Next Topic:TreeNodeContentProvider vs ITreePathContentProvider
Goto Forum:
  


Current Time: Wed Oct 22 00:23:12 GMT 2014

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

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