|
Re: Problem with VIRTUAL TableViewer and selection [message #731990 is a reply to message #731982] |
Mon, 03 October 2011 15:39 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Julien,
if your code works in RCP, but not in RAP, is't probably a bug in RAP.
In this case please file a bugzilla with a snippet to reproduce it.
Which version of RAP are you using?
Thanks,
Ivan
On 10/3/2011 6:36 PM, julien.saulou wrote:
> Hi,
>
> Our application needs to display tables of several thousands items.
> For this reason, we're using SWT.VIRTUAL TableViewers. That works
> pretty well except for selection.
>
> We're having two issues :
>
> - Our tableviewers support sorting. When we use a virtual tableviewer,
> changing the selection does not preserve the current selected item but
> the row currently selected.
> This leads to another item being selected.
> Using a non virtual tableviewer, everything works fine.
>
> - We're setting a Comparer on the tableviewers to implement our own
> hashcode() and equals() methods to compare the items based on their
> ids. When we remove an item from the tableviewer, the selection should
> be empty but the item that was below the deleted one gets selected
> despite our comparer indicating they're not equal.
> Using a non virtual tableviewer, everything works fine.
>
> We tried to go into debug and found out that the cache from the
> AbstractTableViewer.virtualManager seems to be up to date with the model.
> Forcing the cache to be used in the
> AbstractTableViewer.virtualSetSelectionToWidget() seems to solve our
> problem.
>
> If there is someone with a deep knowledge of the JFace Viewers, it
> would be nice to get some insight on these issues. Is this a bug or
> are we doing something wrong ?
>
> Thanks fo the answers.
>
> Julien
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03201 seconds