SWT Tree refresh [message #17602] |
Sun, 28 June 2009 15:06  |
Eclipse User |
|
|
|
I have constructed a SWT Tree, using TreeItem objects for parent and
children. I want to refresh this tree when I re-create the children.
However, this tree's data always stays the same, regardless of whether I
set it to null & recreate it, or redraw() it. Nothing makes it redraw.
|
|
|
|
Re: SWT Tree refresh [message #17683 is a reply to message #17617] |
Tue, 30 June 2009 12:44  |
Eclipse User |
|
|
|
Hi,
To confirm, you're not using a TreeViewer, just SWT Tree and TreeItems,
right? If so then what you're describing sounds very strange, because
creating/destroying/modifying TreeItems should visually update immediately,
no workarounds required. I'm wondering if you're seeing a case of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=252471, especially if:
- you're running on 64-bit windows (it can happen on 32-bit windows too but
is less frequent there)
- you have an app running in the background that uses some windows global
hooks (some apps that are known to do this include LogiTech SetPoint,
Hydravision, UltraMon, nView Desktop Manager)
If this sounds like it could be your case then see if shutting down as many
apps as you can in your system tray helps. And if this proves to be the
case then please follow up here, I'm interested in knowing how common this
problem is.
Grant
"Igor Ganapolsky" <eazyigz@gmail.com> wrote in message
news:c134f67ce1b70f798aea1673e9612a30$1@www.eclipse.org...
> In case anybody is interested, I have a workaround for this problem:
> dynamically call setSelection() on my TabFolder, which allows the correct
> tab to be re-created and re-displayed (thus showing updated data in the
> Tree).
> This isn't the best workaround, but its the only one I could come up with
> for now.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02591 seconds