sorting - Jface tableviewer multi sort columns -


I am implementing a table viewer who is capable of reducing the prices on their column order. Column 1-column 2-column X column 1, then column 2, sort the first rows on column values ​​....

So I want to use column wise saucers, especially " Int doCompare (Viewer Viewer, Object E1, Object E2); "

Under this method, I want to compare other tables based on cry / cell basis and the difficulty is that Jeff The table viewer is sorted in the view only, so i am so The "viewer.getElementAt (index)" function can be used inside "Docopara", while column viewer "Ask" "Column 1, Line 20"

for actual value, Inside the docompore, I have no reference in the position of object E1 and E2 Tableviewer.

How can I get it?

Best regards,

Post-text "itemprop =" text "> < P> You can repeat through all the objects in the table viewer and see exactly how the objects E1 and E2 are.

But ... and I hope I get your problem correctly I understand ... Why do you want to implement multisorting?

Assume that you have 3 columns:

  Col1 Col2 Col3 ------- ------------------ A2b1c4a1b2c1a2b1c3  

To get the sorting order call 1-call 2-call 3, you can click on user call 3, then call 2, and finally call 1:

  Col1 Col2 _Col3_ --------------------- ---- A1b2c1a2b1c3a2b1c4 call1 _Col2_ call3 __________ -------- ------------- A1b2c1a2b1c3a2b1c4  

This can not be the best example, but to get "multi sorting" the user just wants The column has to be sorted in reverse order


Comments