Skip to main content



      Home
Home » Eclipse Projects » JFace » SWT Tree refresh
SWT Tree refresh [message #17602] Sun, 28 June 2009 15:06 Go to next message
Eclipse UserFriend
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 #17617 is a reply to message #17602] Mon, 29 June 2009 12:14 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: SWT Tree refresh [message #17683 is a reply to message #17617] Tue, 30 June 2009 12:44 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:Hi, I would like to use my own expand and collapse icons in the TreeViewer. I h
Next Topic:IContentProposal
Goto Forum:
  


Current Time: Mon Apr 28 01:21:37 EDT 2025

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

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

Back to the top