Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Virtual tree viewer refresh bug(Virtual tree viewer contains wrong items after refresh)
Virtual tree viewer refresh bug [message #908921] Thu, 06 September 2012 08:27 Go to next message
Ken Wenzel is currently offline Ken Wenzel
Messages: 39
Registered: July 2009
Member
Hello,

RAP's virtual tree viewer implementation has a potential bug when refreshing elements.
I've created a simple application to demonstrate this.

The tree viewer starts with the following contents:
index.php/fa/11398/0/

Afterwards, when 'Test' is pressed, node '2' is moved below node '1' and treeviewer.refresh() is called.

This leads to the following representation:
index.php/fa/11399/0/

As can be seen, node '3' now contains the wrong child '2.1' which actually belongs to node '2'.
I've debugged this some time ago and I've seen that the underlying TreeItems really contain the wrong elements after some stage in the refresh process.

I would be glad if you could help me, since many of our tree viewers are based on ILazyTreeContentProvider's.

Best regards,
Ken
Re: Virtual tree viewer refresh bug [message #909065 is a reply to message #908921] Thu, 06 September 2012 13:19 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 383
Registered: July 2009
Senior Member
Hi.

I tested it against RAP 2.0M1 and SWT. Seems fine in SWT, while items
indeed contain the wrong text in RAP. It's not a rendering glitch
either, rather a bug in the RAP JFace implementation. Could you open a
bugzilla entry for this issue?

Greetings,
Tim

Am 06.09.2012 10:27, schrieb Ken Wenzel:
> Hello,
>
> RAP's virtual tree viewer implementation has a potential bug when refreshing elements.
> I've created a simple application to demonstrate this.
>
> The tree viewer starts with the following contents:
>
>
> Afterwards, when 'Test' is pressed, node '2' is moved below node '1' and treeviewer.refresh() is called.
>
> This leads to the following representation:
>
>
> As can be seen, node '3' now contains the wrong child '2.1' which actually belongs to node '2'.
> I've debugged this some time ago and I've seen that the underlying TreeItems really contain the wrong elements after some stage in the refresh process.
>
> I would be glad if you could help me, since many of our tree viewers are based on ILazyTreeContentProvider's.
>
> Best regards,
> Ken
>

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Virtual tree viewer refresh bug [message #909090 is a reply to message #909065] Thu, 06 September 2012 14:16 Go to previous message
Ken Wenzel is currently offline Ken Wenzel
Messages: 39
Registered: July 2009
Member
Thank you for investigating this.

I've opened a bugzilla entry:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=388950

Best regards,
Ken
Previous Topic:More on CSS Theming
Next Topic:RWT Exception after Refresh of the current page
Goto Forum:
  


Current Time: Wed Oct 01 08:19:20 GMT 2014

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

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