Skip to main content



      Home
Home » Newcomers » Newcomers » TreeViewer refresh sometimes does not work
TreeViewer refresh sometimes does not work [message #229918] Wed, 29 August 2007 16:48 Go to next message
Eclipse UserFriend
Originally posted by: wjfang.gmail.com

Hi,

In my code, getViewer().refresh(treeNode) sometimes does not work, i.e., the
TreeViewer does not reflect the right content of the model objects. E.g.,
when a node is deleted, which triggers a refresh action on its parent node.
The refreshed parent node should not contain the deleted node. But sometimes
this does not happen.

It is interesting that the above code works fine for most of time. When it
does not work, I can not see exception recorded in the .metadata/.log file.
And it seems when refresh(object) does not work, refresh() still works.

Anyone knows the reason for this? Many thanks.

Cheers,

Weijian
Re: TreeViewer refresh sometimes does not work [message #229941 is a reply to message #229918] Wed, 29 August 2007 17:52 Go to previous message
Eclipse UserFriend
Post a snippet to reproduce and we'll try to track the problem down.

Tom

Weijian schrieb:
> Hi,
>
> In my code, getViewer().refresh(treeNode) sometimes does not work, i.e., the
> TreeViewer does not reflect the right content of the model objects. E.g.,
> when a node is deleted, which triggers a refresh action on its parent node.
> The refreshed parent node should not contain the deleted node. But sometimes
> this does not happen.
>
> It is interesting that the above code works fine for most of time. When it
> does not work, I can not see exception recorded in the .metadata/.log file.
> And it seems when refresh(object) does not work, refresh() still works.
>
> Anyone knows the reason for this? Many thanks.
>
> Cheers,
>
> Weijian
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:There is no Total (Aggregate) Functions
Next Topic:clear annotations on editor windows
Goto Forum:
  


Current Time: Tue Jun 03 20:17:26 EDT 2025

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

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

Back to the top