Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Selection of Checkbox Issue after sorting in Virtual Table
Selection of Checkbox Issue after sorting in Virtual Table [message #11959] Thu, 04 June 2009 20:20
PM  is currently offline PM Friend
Messages: 14
Registered: July 2009
Junior Member
Hi,


I am having some trouble with Virtual Table especially when i am taking
some action on rows. I have a virtual table(built using TableViewer) with
IStructuredContentProvider and ITableLabelProvider and have a Model object.

I have sorting defined on one of the columns (custom comparator class
extended ViewerComparator). The first column of every row has a checkbox
in it(I used CheckBoxCellEditor). The sorting both ascending and
descending works fine. The data displayed in viewer looks correct.

However when the sorting is done in descending order and the checkbox is
selected on any given row, the checkbox selection is taking place in
reverse order. For instance, when the rows are in descending order, if i
select the checkbox on 1st row, the checkbox on the last row gets checked.
It almost looks like the viewer cache and model that feeds the data into
tableviewer are out of sync.
Has it got anything to do with virtual table? I removed the VIRTUAL flag
from the TableViewer, the checkbox selection seemed to work fine. I am not
sure if there is anything wrong with my implementation. Has anyone
encountered this issue before? I can provide some code snippets if i didnt
make it very clear. I appreciate your feedback

Thanx
Priyanka
Previous Topic:CheckBoxTableViewer and BackgroundColor
Next Topic:How to customize context menus in text editor?
Goto Forum:
  


Current Time: Fri Sep 20 18:36:32 GMT 2024

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

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

Back to the top