Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Quick find (Ctrl + F) does not work for virtual Table Viewer(Finding an element in a virtual table using 'Ctrl + F' does not work.)
Quick find (Ctrl + F) does not work for virtual Table Viewer [message #1077094] Thu, 01 August 2013 08:40 Go to next message
Uzma Pathan is currently offline Uzma PathanFriend
Messages: 3
Registered: February 2013
Junior Member
Our application is an RCP application and needs to display table of several thousands items. For this reason, we're setting SWT.VIRTUAL in our TableViewer's constructor. That works pretty well except for finding text using find text-box (Ctrl+F).

We're having following issue :

Our TableViewer support sorting and filtering. When we use a virtual tableviewer and try to find text in the table by either typing the text or by opening find text-box (by clicking Ctrl+F) at the lower-right corner and entering the text, the find text-box does not open to find the text.

Using a non virtual TableViewer, everything works fine.

Is this a known bug / issue?

Please suggest some pointers or alternative work around.

Thanks for the answers.
Re: Quick find (Ctrl + F) does not work for virtual Table Viewer [message #1077101 is a reply to message #1077094] Thu, 01 August 2013 08:45 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5467
Registered: July 2009
Senior Member
First of this is a feature only available on Linux and provided by GTK.
The problem is that a virtual viewer creates its TableItems on demand so
a text search can't work.

Tom

On 01.08.13 10:40, Uzma Pathan wrote:
> Our application is an RCP application and needs to display table of
> several thousands items. For this reason, we're setting SWT.VIRTUAL in
> our TableViewer's constructor. That works pretty well except for finding
> text using find text-box (Ctrl+F).
>
> We're having following issue :
>
> Our TableViewer support sorting and filtering. When we use a virtual
> tableviewer and try to find text in the table by either typing the text
> or by opening find text-box (by clicking Ctrl+F) at the lower-right
> corner and entering the text, the find text-box does not open to find
> the text.
> Using a non virtual TableViewer, everything works fine.
>
> Is this a known bug / issue?
>
> Please suggest some pointers or alternative work around.
>
> Thanks for the answers.
>
Re: Quick find (Ctrl + F) does not work for virtual Table Viewer [message #1077112 is a reply to message #1077101] Thu, 01 August 2013 09:02 Go to previous messageGo to next message
Uzma Pathan is currently offline Uzma PathanFriend
Messages: 3
Registered: February 2013
Junior Member
Hi Thomas,

Thanks for your reply.

Actually we cannot remove SWT.VIRTUAL option from the table viewer as there are more than hundred thousand elements (rows) in the table. Hence we need some fix for quick find to work in virtual Table.
Please suggest any pointer for the same.

Thanks for the answers.

[Updated on: Thu, 01 August 2013 09:03]

Report message to a moderator

Re: Quick find (Ctrl + F) does not work for virtual Table Viewer [message #1077113 is a reply to message #1077112] Thu, 01 August 2013 09:03 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5467
Registered: July 2009
Senior Member
You need to do the search yourself inside your domain elements,
calculate the index and then reveal this item.

Tom

On 01.08.13 11:02, Uzma Pathan wrote:
> Hi Thomas,
>
> Thanks for your reply.
>
> Actually we cannot remove SWT.VIRTUAL option from the table viewer as
> there are more than hundred thousand elements (rows) in the table. Hence
> we need some alternative for quick find to work in virtual Table.
> Please suggest any pointer for the same.
>
> Thanks for the answers.
Previous Topic:Simple Comboviewer databinding issue
Next Topic:TableViewer Sorting and MultiSelectionBinding
Goto Forum:
  


Current Time: Wed Nov 26 06:49:37 GMT 2014

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

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