TreeViewer refresh sometimes does not work [message #229918] |
Wed, 29 August 2007 16:48  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
------------------------------------------------------------ --------
|
|
|
Powered by
FUDForum. Page generated in 0.07928 seconds