Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] AbstractTableViewer virtualSetSelectionToWidget()

The method's signature is:

AbstractTableViewer.virtualSetSelectionToWidget(List elements, boolean reveal)

So we have a list of elements but need to set the selection in terms
of items, or item indices. If there are elements in the list for which
we cannot find an item using findItem(Object element), it means that
we have to look for those items by materializing them through the
content provider. Maybe I am missing something, but given the current
structure I don't think we have any other choice.

There is a  comment in virtualSetSelectionToWidget() that recommends
using getTable().setSelection(int[], boolean) instead, have you tried


On Fri, Oct 17, 2008 at 3:46 PM, Bryan Hunt <bhunt@xxxxxxx> wrote:
> Why does AbstractTableViewer.virtualSetSelectionToWidget() call doGetItem()?
>  This causes the table item to be loaded if it does not exist and seems to
> defeat the purpose of a virtual selection.  I figure I'm missing some
> important technical detail here.  We really need virtual selection to be
> virtual.
> Bryan
> _______________________________________________
> platform-ui-dev mailing list
> platform-ui-dev@xxxxxxxxxxx

Back to the top