how to select row number in JFace TableViewer [message #331180] |
Wed, 27 August 2008 12:35  |
Eclipse User |
|
|
|
org.eclipse.jface.viewers.TableViewer's super (StructuredViewer) has this
method: public void setSelection(ISelection selection, boolean reveal),
but all I want is to select the i-th row in the TableViewer. What is the
best way to do it? Why isn't there a method called setSelection(int row)?
Thanks!
|
|
|
|
|
|
Re: how to select row number in JFace TableViewer [message #331431 is a reply to message #331342] |
Fri, 05 September 2008 13:18  |
Eclipse User |
|
|
|
Thank you, that is a great idea! I tried hard to implement it, and it I
just can't get the elements to "materialize" as they say in the literature.
So I punted and used KTable from Sourceforge. It worked pretty well for
two reasons. It lets me manipulate rows based on index, i.e., it is
index-based instead of object-based. And it is always lazy loading, even
for small tables.
Still am wondering why I can't get it to materialize, but have to hit a
deadline. :( Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02921 seconds